Bug 1453137

Summary: OpenSCAP Capsule is not inherited from the parent hostgroup while creating a nested hostgroup.
Product: Red Hat Satellite Reporter: Deepannagaraj Nagarathinam <dnagarat>
Component: SCAP PluginAssignee: Ondřej Pražák <oprazak>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.9CC: bbuckingham, cwelton, jcallaha, mhulan, mverma, nitthoma, nkathole, oprazak, rmarti, sgraessl, szadok, tbrisker, vincent.vandecamp
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:40:04 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 Deepannagaraj Nagarathinam 2017-05-22 09:08:12 UTC
Description of problem:

- While creating a child/nested hostgroup the OpenSCAP Capsule value is not inherited from the Parent hostgroup. 

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

- Red Hat Satellite v 6.2.9

How reproducible:

- Always.

Steps to Reproduce:

- Create a parent hostgroup with OpenSCAP capsule.
- Create a child hostgroup with the above hostgroup as a parent.

Actual results:

- OpenSCAP capsule value is not inherited (Inherit parent (no value)).

Expected results:

- OpenSCAP capsule should be inherited from the parent hostgroup.

Additional info:

- Instead of creating a Nested hostgroup, if we try to create a new hostgroup and assign a parent hostgroup, at the time of hostgroup creation, the OpenSCAP capsule value is inherited.
- But, after creating the hostgroup, if you go to edit it the value is no value.

- And, it only doesn't show in the Satellite WebUI. If we create a new host, it will get the OpenSCAP capsule assigned.

Comment 2 Ondřej Pražák 2017-05-23 10:56:49 UTC
The issue exists for me when using the 'Nest' action on hostgroups index page.
Steps to reproduce:

1) Create new hostgroup (oscap_parent), assign openscap proxy and puppet environment to be able to see the different behavior of the two
2) choose 'Nest' from the actions menu for openscap_parent
3) the form has pre-filled puppet environment that is inherited from openscap_parent, but there is 'Inherit parent (no value)' for openscap proxy

Workaround:

Instead of using 'Nest', choose 'New Host Group' and select parent from the dropdown in the form. Openscap proxy field gets correctly populated. It was displayed correctly even after I saved and tried to edit the hostgroup.

Comment 3 Ondřej Pražák 2017-05-23 10:58:52 UTC
Created redmine issue http://projects.theforeman.org/issues/19629 from this bug

Comment 9 Satellite Program 2017-06-01 16:01:20 UTC
Upstream bug assigned to oprazak

Comment 10 Satellite Program 2017-06-01 16:01:25 UTC
Upstream bug assigned to oprazak

Comment 11 Ondřej Pražák 2017-06-14 07:23:36 UTC
*** Bug 1461204 has been marked as a duplicate of this bug. ***

Comment 12 Satellite Program 2017-06-16 10:01:20 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19629 has been resolved.

Comment 13 Nikhil Kathole 2017-08-22 10:02:16 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 10

steps:
1. Created parent_oscap hostgroup with oscap
2. Created child_oscap from parent_oscap
3. Successfully shows inherited oscap capsule ( Inherit parent (capsule_name)) while creating as well as after editing child_oscap

Comment 16 Bryan Kearney 2018-02-21 16:38:49 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, 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-2018:0336

Comment 17 Bryan Kearney 2018-02-21 16:40:04 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, 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-2018:0336

Comment 18 Satellite Program 2018-02-21 16:54:17 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, 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-2018:0336