Project

General

Profile

Bug #33581

Edit hosts page not reflecting correct selections.

Added by Partha Aji 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Related to Katello - Bug #33591: Wrong kickstart repo shown in Edit Host pageClosed

Associated revisions

Revision 403b0cd1 (diff)
Added by Partha Aji 8 months ago

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.

History

#1 Updated by Partha Aji 8 months ago

  • Bugzilla link set to 1685708

#2 Updated by The Foreman Bot 8 months 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 8 months ago

  • Bugzilla link changed from 1685708 to 1996371

#4 Updated by Partha Aji 8 months ago

Part 2 of this bug will be addressed by https://projects.theforeman.org/issues/33591

#5 Updated by Partha Aji 8 months ago

  • Related to Bug #33591: Wrong kickstart repo shown in Edit Host page added

#6 Updated by James Jeffers 8 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.2.1

#7 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases Katello 4.3.0 added

#8 Updated by Partha Aji 8 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF