Bug 2264216

Summary: Host content view environment is reset on any host edit when hostgroup assigns a CVE
Product: Red Hat Satellite Reporter: Jeremy Lenz <jlenz>
Component: Hosts - ContentAssignee: Quinn James <qjames>
Status: CLOSED MIGRATED QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: arunas.z.vaznevicius, gformisa, jlenz, jpasqual, qjames, rlavi, vsedmik, zhunting
Target Milestone: streamKeywords: MigratedToJIRA, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-06 17:03:05 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 2024-02-14 15:42:15 UTC
If I have a hostgroup that assigns a CV/LCE to my host, I am able to change the host's content view & lifecycle environment thru the web UI without issue. However, if I then go into the host Edit screen and edit any field, and click Submit, the host's CV/LCE is reset to that assigned to the hostgroup.

The same behavior is not observed with other fields inherited from the hostgroup.

see https://community.theforeman.org/t/lifecycle-environment-must-be-specified-error-when-editing-a-host/35604/3

Comment 1 Jeremy Lenz 2024-02-14 15:42:19 UTC
Created from redmine issue https://projects.theforeman.org/issues/36897

Comment 2 Jeremy Lenz 2024-02-14 15:42:20 UTC
Upstream bug assigned to None

Comment 3 Vladimír Sedmík 2024-03-21 14:21:12 UTC
Verified in Stream snap 50.0

Steps:
1. Have two (or more) LCEs and two (or more) CVs promoted to one of the LCE.
2. Have two (or more) host groups (nested or not) that assign one of the LCE and CV.
3. Create a host using the HG, check it inherits the LCE/CV from the HG.
4. Change the CV assignment of the host to another LCE/CV (via "Edit content view assignment" dialog or "Change content source" page).
5. Edit the host, change some parameter and Submit.

Results:
1. The LCE/CV stays the stays the same after host edit independently from the HG settings.
2. No 'activerecord' nor 'nomethod' errors in log.

Comment 7 Eric Helms 2024-06-06 17:03:05 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 8 Red Hat Bugzilla 2024-11-10 04:25:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days