Bug 1929398

Summary: Hostgroup attribute inheritance breaks silently on the web UI, produces no installation media available
Product: Red Hat Satellite Reporter: Pablo Hess <phess>
Component: Host GroupAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: inecas, kgaikwad, oezr, paul.porcelli, vijsingh
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-06 17:10:05 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 Pablo Hess 2021-02-16 19:30:55 UTC
Description of problem:
When creating a nested hostgroup on the Satellite 6.8.2 web UI and inheriting the architecture and operating system from the parent hostgroup, if I select a different Operating System than the inherited one then no installation media will ever be available again.

This affects Satellite 6.7.5 as well, possibly earlier versions as well.


Version-Release number of selected component (if applicable):
satellite-6.8.2-1.el7sat.noarch
foreman-2.1.2.23-1.el7sat.noarch

  and also

satellite-6.7.5-1.el7sat.noarch
foreman-1.24.1.32-1.el7sat.noarch



How reproducible:
100% of attempts.

Steps to Reproduce:
1. Create a host group named Parent that sets Lifecycle Env, Content View, Content Source, Architecture, Operating System, Installation Media.

2. Create a new host group named Child nested under Parent. On the Child host group, on the Operating System tab it will show:
   Architecture: inherit parent (x86_64)
   Operating system: inherit parent (RHEL Server 7.9)
   Media Selection: Synced Content  (I have the appropriate kickstart repo synced)
   Installation Media: Red_Hat_Enterprise...Kickstart...7_9

3. Click the Operating system drop-down list and select something else, e.g. RHEL 7.8 or RHEL 8.3 (both of which are synced to Satellite as well.)

Actual results:
Media Selection will immediately set to All Media despite the appropriate kickstart repo (for RHEL 7.8 or RHEL 8.3 in this example) being synced correctly.
Media will show No options available for selected Operating System.
If I go to the drop-down list again and try to select 'Inherit parent RHEL Server 7.9)' like it was at first, still no media will show up and Media Selection will stay set to All Media instead of Synced Content.
The only way to select an OS other than the inherited one is to do away with all inheritance under the Operating System tab i.e. hard select Architecture=x86_64, Operating system=RHEL Server <whatever>, Media Selection=Synced Content, then Synced Content=Red_Hat_...Kickstart...7_8.


Expected results:
Any individual item in the Operating System tab should be overridable without affecting other inherited attributes. E.g. one should be able to inherit x86_64 as the architecture and still override the Operating System to a different RHEL version (major or minor).

Additional info:
N/A

Comment 1 Ondřej Ezr 2021-06-24 09:10:21 UTC
Created redmine issue https://projects.theforeman.org/issues/32877 from this bug

Comment 2 Brad Buckingham 2023-03-06 11:37:55 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 3 Brad Buckingham 2023-04-06 17:10:05 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.