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

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

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.