Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-149198

Anaconda does not properly register the system's hostname in rhsm / insights, instead showing 'localhost.localdomain'

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • anaconda
    • None
    • None
    • None
    • rhel-anaconda
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      When using both `network` and `rhsm` to install and register a system during installation, the system's hostname (as specified in `network`) is not properly recorded in rhsm / insights.

      The following kickstart can be used to reproduce:

      network  --hostname=<HOSTNAME> --bootproto=static --device=link --ip=<IP> --netmask=<NETMASK> --gateway=<GATEWAY> --nameserver=<DNS> --noipv6 --activate
      
      rhsm --organization=<ORG_ID> --activation-key=<ACT_KEY> --connect-to-insights
      

      After installation, the information in Insights (Hybrid Cloud Console) is not correct. While the "Host Name" and "Ansible hostname" fields likely will get populated on the next run of `insights-clients`, the "Display name" never does, and shows 'localhost.localdomain'.

      SImilarly, `subscription-manager identity` also shows 'localhost.localdomain' on the booted system:

      # subscription-manager identity
      system identity: <UUID>
      name: localhost.localdomain
      org name: <ORG_NAME>
      org ID: <ORG_ID> 

       

              anaconda-maint-list anaconda-maint-list
              rhn-support-jsantos Juan Santos
              anaconda-maint-list anaconda-maint-list
              Release Test Team Release Test Team
              Sagar Dubewar Sagar Dubewar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: