Bug 1325056

Summary: Non provisioned hosts do not inherit organization or location
Product: Red Hat Satellite Reporter: Anand Vaddarapu <avaddara>
Component: WebUIAssignee: satellite6-bugs <satellite6-bugs>
WebUI sub component: Foreman QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: high    
Priority: high CC: bkearney, inecas
Version: 6.2.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-15 15:28:32 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:

Description Anand Vaddarapu 2016-04-08 05:44:29 UTC
Description of problem:
After adding a host to a Configured host group with all parameters/Life-cycle/CV and Puppet Environment, the host is not inheriting the correct Puppet Environment/Location/Org.

The hostgroup I created from GUI, and recreated again from CLI as follows:

hammer hostgroup create --architecture x86_64 --subnet Provisioning_Net --environment-id=35 --content-source-id 1 --content-view My-GA-Combined-6 --domain hostname.intranet --lifecycle-environment TEST --locations 'BNE' --name RHEL6_POD --organizations "MyOrg" --puppet-ca-proxy hostname.intranet --puppet-proxy hostname.intranet --partition-table 'My-PartTable-RHEL6' --operatingsystem 'RHEL Server 6.7' --puppet-classes "accounts" --puppet-classes "resolvconf"

then Adding to Host Group:

hammer host update --name hostname.intranet --hostgroup RHEL6_POD

At this Point, the host was not given the correct Puppet Environment , but defaulted to another one. If I log in GUI and go to host (I have to select any location and any org so I can see the list) -> Edit > reset the puppet env to match the content view "will eventually pick the correct one that "Should" have been inherited.

host should get (configured ) with the host group parameters with the above steps even if its provisioned or non-provisioned.

Comment 2 Ivan Necas 2016-04-15 15:28:32 UTC

*** This bug has been marked as a duplicate of bug 1268101 ***