Registered content host appears with a different hostname in Red Hat Satellite WebUI.

Solution Verified - Updated -

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-override should be mentioned as hostname -f of the host.

  • Ensure that the hostname entry is correct in /etc/hosts file.

    # hostname -f
    # cat /etc/hosts
    
  • Login to Satellite web UI >> Administer >> Settings >> Content>> search for Subscription manager and then edit Subscription manager name registration fact and set value with network.hostname-override

Root Cause

  • The registered content host has incorrect hostname entry in /etc/hosts file.

Diagnostic Steps

  • The hostname entry in /etc/hosts file and the output of following nslookup command 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 client2
    

    Note: The above two entries should be same.

  • The hostname -f command output should match with the hostname present 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