Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-22579

Provisioning rhel9 with a dedicated provisioning interface results in an extra host created on Satellite

XMLWordPrintable

    • Moderate
    • No

      Description of problem:

      Provisioning a RHEL9 system with a dedicated nic for provisioning and another as primary results in a duplicated host created on satellite, with the name defined on the provisioning interface.

      This happens because we're using the rhsm component of anaconda to register the system. At that point of the installation, the host is using the hostname that it got from the dhcp. Then it registers into Satellite with that name.

      Later, anaconda will update the name for the name of the primary interface, but at that point the extra host already exists on Satellite.

      Version-Release number of selected component (if applicable):

      Satellite 6.14

      How reproducible:

      Steps to Reproduce:
      1. Create a host with 2 nics. Define one as primary and other as provisioning
      2. Provision the host with RHEL9 and default templates
      3. Observe that you'll have 2 hosts created: one with the primary hostname and one with the provisioning hostname

      Actual results:
      Two hosts created on Satellite

      Expected results:
      Single host created on Satellite

      Additional info:
      A workaround is to add a %pre script that set the primary hostname into anaconda at an early stage, before rhsm step is executed:

      ~~~
      %pre
      hostnamectl set-hostname --static <%= @host.name %>
      %end
      ~~~

          There are no Sub-Tasks for this issue.

              rhn-engineering-lstejska Leos Stejskal
              rhn-support-jpasqual Joniel Pasqualetto
              Shubham Ganar Shubham Ganar
              Lena Ansorgová Lena Ansorgová
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: