Bug 1996371

Summary: Bad inheritance of Architecture property is causing Grayed out media selections for child hostgroup in Satellite 6.10
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: Hosts - ContentAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: high    
Version: 6.10.0CC: inecas, jturel, kgaikwad, oezr, paji, zhunting
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.1.1.17-1,tfm-rubygem-katello-4.1.1.29-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sayan Das 2021-08-22 10:30:39 UTC
Description of problem:

The value selected in "Architecture" is not properly inherited by Child Hostgroup and results in grayed-out values for Media even if the correct OS\CV\LCE\Content_Source is selected.

Version-Release number of selected component (if applicable):
6.10 snap 13

How reproducible:
Always


Steps to Reproduce:
1. Sync RHEL 7.9 kickstart and RHEL 6.10 kickstart 
2. Create Host Group Called "Content" and set LCE\CV\Content Source on the same. In the operating system tab, Only select x86_64 architecture. 
3. Create another Host group called "RHEL" and then select "Content" as it's parent.
4. Go to Operating Systems tab and see the value for "Architecture" selected.
5. Select "RedHat 7.9" as the "Operating system" and observer the "Media Selection" and "Media" options\fields


Actual results:

Step 4 will show "Inherited Parent (x86_64)" for Architecture field.

Step 5 will result is Grayed out fields for "Media Selection" and "Media"


Now, if we click on "Architecture" field and then select "x86_64" manually and then re-select the OS as "RedHat 7.9", the "Synced Media" gets selected and "Media" field gets filled with kickstart repo info.


Expected results:

Satellite should be able to inherit the Architecture and use it inside a Nested Hostgroup while OS is being selected on the child group.


Additional info:

* This issue is not only noticed when we select "Architecture" on the parent group and the OS in the child group.

* If I select both Architecture and OS in the parent group, then

     * Inheritance of those properties will look fine in Child Group "RHEL" including "Synced Media" and "Media" Selections and I can safely submit the Child Group settings as well.

     * But as soon as I edit it back and try to change the OS to something else i.e. "RedHat 6.10" in the child group, It will result in Grayed out fields for "Media Selection" and "Media" again unless I select "x86_64" manually in the child group as the Arch.

Comment 2 Brad Buckingham 2021-08-23 13:46:48 UTC
Is this a regression from Satellite 6.9?

Comment 3 Sayan Das 2021-08-23 14:11:11 UTC
I thought I have never seen this behavior in Satellite 6.9 but I just now checked and the same issue is surprisingly present on 6.9 as well.

Comment 6 Partha Aji 2021-08-31 19:16:10 UTC
Connecting redmine issue https://projects.theforeman.org/issues/33385 from this bug

Comment 10 Partha Aji 2021-09-29 15:22:05 UTC
Connecting redmine issue https://projects.theforeman.org/issues/33581 from this bug

Comment 11 Brad Buckingham 2021-09-29 19:38:55 UTC
Moving to POST as the PR for the issue in comment 10 is now merged upstream.

Comment 21 errata-xmlrpc 2021-11-16 14:13:28 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 (Moderate: Satellite 6.10 Release), 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-2021:4702