-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
False
-
-
False
-
CLOSED
-
foreman-3.9.1.12
-
950
-
Rocket
-
-
-
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
~~~
- clones
-
SAT-22579 Provisioning rhel9 with a dedicated provisioning interface results in an extra host created on Satellite
- Closed
- impacts account
-
SAT-29286 [QE] Provisioning rhel9 with a dedicated provisioning interface results in an extra host created on Satellite
- Closed
- external trackers
- links to
-
RHSA-2024:143599 Satellite 6.15.5 Async Update