Bug 1141828

Summary: Default Puppet organisation/location should always be set and validated
Product: Red Hat Satellite Reporter: Dominic Cleal <dcleal>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: dcleal, omaciel, riehecky, rjerrido, ypismerov
Target Milestone: UnspecifiedKeywords: PrioBumpQA, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/4992
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:33:40 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:
Bug Depends On:    
Bug Blocks: 1139268    

Description Dominic Cleal 2014-09-15 14:30:59 UTC
Description of problem:
When a Puppet agent is configured to report into Satellite as a previously unknown client, the host that's created has its org set by the default_organization/location settings or the organization/location_fact if defined.

In a default org-enabled installation, these settings aren't initialised, so hosts won't get an org/location.  This can be seen on the host page in the left pane.

The design should be changed so that as long as one organisation exists, the hosts will be created with an org+location - probably by designating one of them with some attribute.

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

How reproducible:
Always

Steps to Reproduce:
1. install Puppet on another host
2. set "server = satellite.example.com" in /etc/puppet/puppet.conf
3. run "puppet agent -t" and sign the certificate via the smart proxies certificates UI
4. view the host via the list, check if Organisation/location are set

Actual results:
Blank

Expected results:
They're set to a known org/loc

Comment 2 Dominic Cleal 2014-10-20 07:46:06 UTC
*** Bug 1154386 has been marked as a duplicate of this bug. ***

Comment 3 Bryan Kearney 2015-08-25 18:07:41 UTC
Upstream bug component is Multi Org

Comment 4 Peter Ondrejka 2017-02-10 16:41:15 UTC
Hi Dominic, do you happen to know if this issue still persists in 6.2? Thank you!

Comment 5 Bryan Kearney 2017-08-01 20:33:40 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 6 Red Hat Bugzilla 2023-09-14 02:47:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days