Bug 2214578
Summary: | Can't add hostgroup to new host | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jeremy Lenz <jlenz> |
Component: | Hosts - Content | Assignee: | Jeremy Lenz <jlenz> |
Status: | CLOSED ERRATA | QA Contact: | Lucy Fu <lufu> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.14.0 | CC: | lufu, pcreech |
Target Milestone: | 6.14.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-katello-4.9.0.1-1,rubygem-katello-4.9.0.1-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-08 14:19:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeremy Lenz
2023-06-13 13:13:44 UTC
Created from redmine issue https://projects.theforeman.org/issues/36462 Upstream bug assigned to None 1. Create a hostgroup with CV and LCE 2. create a host: hammer host subscription register --name 'hp5yexlksv' --organization-id 1 --content-view-id 1 --lifecycle-environment-id 1 3. remove host's content_facet In rails console, remove the host's content facet (verify that myhost.content_facet returns nil) [13] pry(main)> host.update(content_facet: nil) 4. Edit Host to add hostgroup 5. Edit Host to remove hostgroup Add/remove hostgroup successfully. Check audited_changes in the log messages. 2023-07-06T16:06:38 [I|app|1574065a] Processing by Api::V2::AuditsController#index as JSON 2023-07-06T16:06:38 [I|app|1574065a] Parameters: {"search"=>"host=hp5yexlksv", "per_page"=>"3", "apiv"=>"v2"} 2023-07-06T16:06:38 [D|app|1574065a] Rendering layout api/v2/layouts/index_layout.json.erb 2023-07-06T16:06:38 [D|app|1574065a] Rendering api/v2/audits/index.json.rabl within api/v2/layouts/index_layout 2023-07-06T16:06:38 [I|app|1574065a] Rendered api/v2/audits/index.json.rabl within api/v2/layouts/index_layout (Duration: 74.1ms | Allocations: 20014) 2023-07-06T16:06:38 [I|app|1574065a] Rendered layout api/v2/layouts/index_layout.json.erb (Duration: 78.8ms | Allocations: 21506) 2023-07-06T16:06:38 [D|app|1574065a] Body: { 1574065a | "total": 293, 1574065a | "subtotal": 3, 1574065a | "page": 1, 1574065a | "per_page": 3, 1574065a | "search": "host=hp5yexlksv", 1574065a | "sort": { 1574065a | "by": null, 1574065a | "order": null 1574065a | }, 1574065a | "results": [{"user_id":4,"user_type":null,"user_name":"admin","version":3,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"192.168.122.1","associated_name":null,"created_at":"2023-07-06 12:06:36 -0400","request_uuid":"97c13c8c-8616-4be6-8e48-573b002b636f","id":293,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"update","audited_changes":{"hostgroup_id":[1,null]},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]},{"user_id":4,"user_type":null,"user_name":"admin","version":2,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"192.168.122.1","associated_name":null,"created_at":"2023-07-06 12:04:04 -0400","request_uuid":"ef7a36ff-0d64-4bef-85a3-06f22cc3e3c9","id":290,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"update","audited_changes":{"comment":[null,""],"hostgroup_id":[null,1]},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]},{"user_id":4,"user_type":null,"user_name":"admin","version":1,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"::1","associated_name":null,"created_at":"2023-06-29 15:11:08 -0400","request_uuid":"b5b1c457-8a2a-41ec-b01b-443dbd63f544","id":175,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"create","audited_changes":{"name":"hp5yexlksv","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"ptable_id":null,"medium_id":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":4,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":null,"uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":null,"image_id":null,"organization_id":1,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":null,"grub_pass":null,"pxe_loader":null,"initiated_at":null,"build_errors":null,"creator_id":4},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]}] 2023-07-06T16:10:38 [I|app|e185646c] Processing by Api::V2::AuditsController#index as JSON 2023-07-06T16:10:38 [I|app|e185646c] Parameters: {"search"=>"host=hp5yexlksv", "per_page"=>"3", "apiv"=>"v2"} 2023-07-06T16:10:39 [D|app|e185646c] Rendering layout api/v2/layouts/index_layout.json.erb 2023-07-06T16:10:39 [D|app|e185646c] Rendering api/v2/audits/index.json.rabl within api/v2/layouts/index_layout 2023-07-06T16:10:39 [I|app|e185646c] Rendered api/v2/audits/index.json.rabl within api/v2/layouts/index_layout (Duration: 79.5ms | Allocations: 19851) 2023-07-06T16:10:39 [I|app|e185646c] Rendered layout api/v2/layouts/index_layout.json.erb (Duration: 84.9ms | Allocations: 21343) 2023-07-06T16:10:39 [D|app|e185646c] Body: { e185646c | "total": 294, e185646c | "subtotal": 4, e185646c | "page": 1, e185646c | "per_page": 3, e185646c | "search": "host=hp5yexlksv", e185646c | "sort": { e185646c | "by": null, e185646c | "order": null e185646c | }, e185646c | "results": [{"user_id":4,"user_type":null,"user_name":"admin","version":4,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"192.168.122.1","associated_name":null,"created_at":"2023-07-06 12:10:37 -0400","request_uuid":"e0a54a87-0c90-4df5-a5d9-0e3a8d65740f","id":294,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"update","audited_changes":{"hostgroup_id":[null,1]},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]},{"user_id":4,"user_type":null,"user_name":"admin","version":3,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"192.168.122.1","associated_name":null,"created_at":"2023-07-06 12:06:36 -0400","request_uuid":"97c13c8c-8616-4be6-8e48-573b002b636f","id":293,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"update","audited_changes":{"hostgroup_id":[1,null]},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]},{"user_id":4,"user_type":null,"user_name":"admin","version":2,"comment":null,"associated_id":null,"associated_type":null,"remote_address":"192.168.122.1","associated_name":null,"created_at":"2023-07-06 12:04:04 -0400","request_uuid":"ef7a36ff-0d64-4bef-85a3-06f22cc3e3c9","id":290,"auditable_id":5,"auditable_name":"hp5yexlksv","auditable_type":"Host::Base","action":"update","audited_changes":{"comment":[null,""],"hostgroup_id":[null,1]},"locations":[{"id":2,"name":"Default Location","title":"Default Location","description":null}],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]}] Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6818 |