Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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: CLOSED ERRATA
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-11-08 14:19 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: 2023-11-08 14:19:36 UTC
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
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:19:47 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

Comment 14 errata-xmlrpc 2023-11-08 14:19:36 UTC
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


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