Bug 1428499
Summary: | add setting to change host name setting between fqdn and shortname | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Justin Sherrill <jsherril> | ||||||
Component: | Hosts - Content | Assignee: | Justin Sherrill <jsherril> | ||||||
Status: | CLOSED ERRATA | QA Contact: | jcallaha | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.2.0 | CC: | bkearney, jcallaha | ||||||
Target Milestone: | Unspecified | ||||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-03-06 08:38:05 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Justin Sherrill
2017-03-02 17:00:45 UTC
Created from redmine issue http://projects.theforeman.org/issues/17102 Upstream bug assigned to jsherril This adds a new setting 'register_hostname_fact' under Administer > Settings > Content that allows the user to specify which subscription manager fact to use for generating the name of the host (in the form of 'network.hostname') Verified in Satellite 6.2.8 Snap 4 You can now set the "Subscription manager name registration fact" in Administer -> Settings -> Katello. To register a host with the fqdn, use the fact "network.fqdn". To register a host with a short name, use the fact "network.hostname". (see attached) Steps: 1. Set the registration fact to network.fqdn 2. Changed the hostname on the first system to a short name [root@cloud-qe-21 ~]# hostname cloud-qe-21.idmqe.lab.eng.bos.redhat.com [root@cloud-qe-21 ~]# hostname cloud-qe-21 [root@cloud-qe-21 ~]# hostname cloud-qe-21 [root@cloud-qe-21 ~]# hostname -f cloud-qe-21.idmqe.lab.eng.bos.redhat.com 3. Registered the system to Satellite. 4. Set the registration fact to network.hostname 5. Changed the hostname on the second system to a short name [root@yttrium ~]# hostname yttrium.idmqe.lab.eng.bos.redhat.com [root@yttrium ~]# hostnamectl set-hostname yttrium [root@yttrium ~]# hostname yttrium [root@yttrium ~]# hostname -f yttrium.idmqe.lab.eng.bos.redhat.com 6. Registered the system Results: The first system was correctly registered with its fqdn, and the second system was correctly registered with its short hostname. I put them in a host collection to be more easily seen. (see attached) Created attachment 1259539 [details]
new setting
Created attachment 1259540 [details]
verification screenshot
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/RHBA-2017:0447 |