Bug 2213804 - Editing a host results in an error "content_view_id and lifecycle_environment_id must be provided together"
Summary: Editing a host results in an error "content_view_id and lifecycle_environment...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.14.0
Assignee: Jeremy Lenz
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-09 12:53 UTC by Jeremy Lenz
Modified: 2023-07-17 09:34 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36498 0 High New Editing a host results in an error "content_view_id and lifecycle_environment_id must be provided together" 2023-06-09 12:53:25 UTC
Red Hat Issue Tracker SAT-18256 0 None None None 2023-06-09 12:57:03 UTC

Description Jeremy Lenz 2023-06-09 12:53:24 UTC
https://community.theforeman.org/t/editing-host-results-in-content-view-id-and-lifecycle-environment-id-must-be-provided-together/33831

If a hostgroup exists which has a CV or LCE assigned, but not both, you are unable to edit hosts assigned to this hostgroup. Attempting to update the host results in an error "content_view_id and lifecycle_environment_id must be provided together"

Comment 1 Jeremy Lenz 2023-06-09 12:53:27 UTC
Created from redmine issue https://projects.theforeman.org/issues/36498

Comment 2 Jeremy Lenz 2023-06-09 12:53:29 UTC
Upstream bug assigned to None

Comment 3 Jeremy Lenz 2023-06-09 12:56:19 UTC
The issue doesn't seem to happen if the host's hostgroup has both CV and LCE assigned, or if the host is not assigned to a hostgroup.

Comment 4 Bryan Kearney 2023-06-09 20:03:34 UTC
Upstream bug assigned to jlenz

Comment 5 Bryan Kearney 2023-06-09 20:03:36 UTC
Upstream bug assigned to jlenz

Comment 8 Brad Buckingham 2023-06-16 17:04:37 UTC
Moving to POST as PR merged upstream.

Comment 11 Sam Bible 2023-07-13 14:07:15 UTC
Tested on: 6.14 - Snap 5

Steps to test:
1. Register a host.
2. Create a Hostgroup, Content View and Lifecycle Environment
3. Edit the Hostgroup by choosing a CV and LCE, and then clicking the x on the LCE box. 
4. Save, and assign the host to this Hostgroup.

Expected Results:
There are no errors, and the Host is successfully assigned to the Hostgroup

Actual Results:
There are no errors, and the Host is successfully assigned to the Hostgroup


Note You need to log in before you can comment on or make changes to this bug.