-
Bug
-
Resolution: Done-Errata
-
Major
-
6.13.0
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"=>
, "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.