Registered content host appears with a different hostname in Red Hat Satellite WebUI.
Environment
- Red Hat Satellite 6.x
Issue
-
Registered content host appears with a different hostname in Red Hat Satellite 6 WebUI under the following path.
Red Hat Satellite WebUI → Hosts → Content Hosts
Resolution
-
Check in /etc/rhsm/facts/katello.facts,
network.hostname-overrideshould be mentioned ashostname -fof the host. -
Ensure that the hostname entry is correct in
/etc/hostsfile.# hostname -f # cat /etc/hosts -
Login to Satellite web UI >> Administer >> Settings >> Content>> search for
Subscription managerand then editSubscription manager name registration factand set value withnetwork.hostname-override
Root Cause
- The registered content host has incorrect hostname entry in
/etc/hostsfile.
Diagnostic Steps
-
The hostname entry in
/etc/hostsfile and the output of followingnslookupcommand is different# nslookup `hostname -i` x.x.168.192.in-addr.arpa name = client1.example.com # vi /etc/hosts 192.168.x.x client2.example.com client2Note: The above two entries should be same.
-
The
hostname -fcommand output should match with thehostnamepresent in the katello.facts file# cat /etc/rhsm/facts/katello.facts {"network.hostname-override":"client2.example.com"} # hostname -f client1.example.com
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments