We recently upgraded from Foreman 1.7 to 1.8.
With the new interface, we have noticed that many of our physical machines
running CentOS6 have two interfaces with the identifier of 'eth0', with
different mac addresses. In this case, MAC 00:aa:bb:d1:ee:7e is LAN0 on the
motherboard, and 00:aa:bb:d1:ee:7f is LAN1 (the second interface).
foreman $ hammer host interface list --host host1.example.org
----|------------|--------------------------------|-------------------|---------------|--------------------
ID | IDENTIFIER | TYPE | MAC ADDRESS | IP
ADDRESS | DNS NAME |
---|---|
16 | eth0 |
192.168.8.9 | |
222 | eth0 |
10.55.8.9 | host1.example.org |
8 | |
10.56.8.9 | host1-bmc |
---- | ------------ |
I'm not entirely sure how this happened, but we may have renamed the ethN
interfaces after provisioning. in pre-1.8 releases, Foreman used one
interface for both provisioning and as the primary interface, which isn't
how we operate.
In the WebUI, I cannot change 'eth0' to another name. The 'Identifier'
field is greyed out.
I cannot delete interface ID 222 from the WebUI or from HammerCLI:
$ hammer host interface delete --host host1.example.org --id 222
Could not delete the interface:
Primary can't delete primary interface of managed host
Provision can't delete provision interface of managed host
I cannot remove the primary or the provision flag using the WebUI (I'm not
sure how to do that using Hammer).
How can I delete or rename the interface with ID = 222?
Thanks,
-= Stefan