Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-15060

(ActiveModel::UnknownAttributeError): unknown attribute 'project' for ForemanGoogle::GCE.

XMLWordPrintable

    • Important
    • Yes

      Description of problem: With 6.13 project and email attributes removed, when using key_path and zones API still fails to create a CR.

      Version-Release number of selected component (if applicable):
      6.13 snap 7

      How reproducible: 100%

      Steps to Reproduce:
      1. Try to create a GCE-CR with API/CLI.

      2023-01-23T09:10:44 [I|app|7099078d] Completed 200 OK in 361ms (Views: 171.2ms | ActiveRecord: 25.8ms | Allocations: 77953)
      2023-01-23T09:10:57 [I|app|a3d0d9f3] Started POST "/api/v2/compute_resources" for 10.74.18.33 at 2023-01-23 09:10:57 -0500
      2023-01-23T09:10:57 [I|app|a3d0d9f3] Processing by Api::V2::ComputeResourcesController#create as JSON
      2023-01-23T09:10:57 [I|app|a3d0d9f3] Parameters: {"compute_resource"=>

      {"name"=>"GemYveByvx", "provider"=>"GCE", "key_path"=>"/usr/share/foreman/test_key.json", "project"=>"test-automation", "zone"=>"test_zone", "url"=>"ftp://CCakwLNSJu.biz", "email"=>"θ―°ιšπ›€δ˜΄ηžšγ‚€δΈ«π’ƒ°π˜‡†ε­£μ‘§γ–ζ€πŽ€π’‡’ζ¬…ο΄«λ»ƒδΎ£", "location_ids"=>[34], "organization_ids"=>[33]}

      , "apiv"=>"v2"}
      2023-01-23T09:10:57 [I|app|a3d0d9f3] Authorized user admin(Admin User)
      2023-01-23T09:10:57 [W|app|a3d0d9f3] Action failed
      2023-01-23T09:10:57 [I|app|a3d0d9f3] Backtrace for 'Action failed' error (ActiveModel::UnknownAttributeError): unknown attribute 'project' for ForemanGoogle::GCE.

      Actual results:

      Expected results:

      Additional info:
      Tried removing :project & :email from https://github.com/theforeman/foreman_google/blob/develop/app/controllers/concerns/foreman/controller/parameters/compute_resource_extension.rb#L10 works to create a gce cr.

            sat-lstejska Leos Stejskal (Inactive)
            jira-bugzilla-migration RH Bugzilla Integration
            Adarsh Dubey Adarsh Dubey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: