Bug 1414914

Summary: When defining hostgroup, content host should inherit Puppet Environment from it.
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: Host GroupAssignee: Kavita <kgaikwad>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.6CC: ahuchcha, bbuckingham, inecas, jcallaha, kbidarka, kgaikwad, oshtaier, vgunasek
Target Milestone: UnspecifiedKeywords: Triaged
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: 2018-02-21 16:54:37 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 Waldirio M Pinheiro 2017-01-19 17:33:46 UTC
Description of problem:
When defining hostgroup on one specific content host, we should be able to see the hostgroup and puppet environment defined *puppet environment via inherit*. Actually to manager content hosts and point to one specific host group, we need to do two steps, the first one is define the host group, the second one is define the puppet environment, imho if we define the puppet env on hostgroup, this should be inherit automatically.

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

How reproducible:
100

Steps to Reproduce:
1. Define the hostgroup with the puppet environment information.
2. Hosts - All hosts - Select the content host - Select Action - Change Group - Select the host group


Actual results:
The puppet environment is not defined, so the client will not be able yet to receive puppet modules

Expected results:
define puppet environment and everything work like a charm.

Additional info:
Adding the link to sample video.

Comment 3 Satellite Program 2017-02-13 15:06:40 UTC
Upstream bug assigned to kgaikwad

Comment 5 Satellite Program 2017-02-15 05:06:50 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18478 has been resolved.

Comment 6 Brad Buckingham 2017-03-17 12:02:38 UTC
*** Bug 1421832 has been marked as a duplicate of this bug. ***

Comment 10 Kedar Bidarkar 2017-09-04 15:19:01 UTC
1) Added puppet environment "production" to hostgroup "rhel7grp"
2) Assign this hostgroup to host "rhel7host"
3) observe that the puppet environment is "production" 
4) Now changed the puppet environment to "kbidarka" in the hostgroup
5) Edited host and clicked the inherit button next to puppet environment
6) submitted form
7) Now from the UI it shows the puppet environment as "kbidarka"

VERIFIED with Sat630-snap14.0

Comment 13 Kavita 2017-10-26 10:02:20 UTC
As mentioned above, behaviour of inheriting puppet env from hostgroup will be available in 6.3.
For sat 6.2, I think the only way is to explicitly update correct puppet env for host. 
If it is not working as expected, please feel free to add your observations.

Comment 14 Satellite Program 2018-02-21 16:54:37 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