Bug #33581
Edit hosts page not reflecting correct selections.
Description
1. Create a CV called RHEL7 with only a RHEL 7.9 kickstart repository and promote to an Environment called CYCLE-A
2. Create a CV called RHEL8 with only a RHEL 8.3 BaseOS\Appstream kickstart repository and Promote to and environment called CYCLE-B.
3. Create a hostgroup called "Blank" with * NO * CV\LCE\Content Source\OS selected. You can add puppet modules and select puppet\ansible related stuff in this hostgroup.
4. Create a hostgroup called "RHEL" which is child of "Blank" and have "RHEL7" selected as CV and CYCLE-A selected as LCE, content source selected as Satellite, in OS page, correct media selection/synced media/OS/arch selected for RHEL 7.9.
5. Now create a host with the "RHEL" hostgroup but manually change the CV\LCE to RHEL8\CYCLE-B and in OS tab, manually select correct media selection/synced media/OS/arch for RHEL8. Submit the changes and now the host should be in build mode.
6. Edit back the host,
Expected:
I should see the Rhel 8 cv.
Actual:
- On the first page, The CV has switched back to RHEL7 whereas we had selected RHEL8 CV at step 5. And the same goes for LCE i.e. it got switched back to CYCLE-B.
- Go to OS tab and we will see that,
--> OS itself is selected the same we had set at Step 5 during host creating. So this part is still good But,
--> Media Selection is moved to "All Media" and is greyed out .
--> No "Synced Media" Selected.
Related issues
Associated revisions
History
#1
Updated by Partha Aji over 1 year ago
- Bugzilla link set to 1685708
#2
Updated by The Foreman Bot over 1 year ago
- Assignee set to Partha Aji
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/9678 added
#3
Updated by Partha Aji over 1 year ago
- Bugzilla link changed from 1685708 to 1996371
#4
Updated by Partha Aji over 1 year ago
Part 2 of this bug will be addressed by https://projects.theforeman.org/issues/33591
#5
Updated by Partha Aji over 1 year ago
- Related to Bug #33591: Wrong kickstart repo shown in Edit Host page added
#6
Updated by James Jeffers over 1 year ago
- Triaged changed from No to Yes
- Target version set to Katello 4.2.1
#7
Updated by The Foreman Bot over 1 year ago
- Fixed in Releases Katello 4.3.0 added
#8
Updated by Partha Aji over 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|403b0cd1051632d563f61ba72f329f028005adff.
Fixes #33581 - Correctly sets the host attributes on Edit Host (#9678)
Prior to this commit `Edit Host` would give a preference to the values
of the associated hostgroup (this was only in display.)
This meant if you created a host with a hostgroup and changed things
like LCE/CV/kickstart repository id etc those overrides
would not correctly get reflected when Editing the host. It would only
show what was in the hostgroup attached to the host.
This fix magically solves that issue by making it corrently look at
the host and hostgroup.