-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
0
-
Rocket
-
-
-
To Do
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
~~~
QE Tracker for https://issues.redhat.com/browse/SAT-22579
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2259206