Problem:
Hi,
i have a small problem setting up unattended installation for my network setup.
Our servers have all one network interface. On this interface are public ip is assigned, which is the primary, and a private ip as secondary for management purposes.
# The primary network interface
auto eno1
iface eno1 inet static
address 194.xxx.xxx.250
netmask 255.255.255.128
network 194.xxx.xxx.128
broadcast 194.xxx.xxx.255
gateway 194.xxx.xxx.129
dns-nameservers 127.0.0.1
auto eno1:0
iface eno1:0 inet static
address 10.xx.xx.196
netmask 255.255.255.0
The private network is completely out of routing. It has no gateway, it’s just for internal communication.
I want the unattended installation to work over that private interface.
I configured this in foreman:
The problem now is that the dhcp server(isc-dhcp) doesn’t get configured properly.
This is what foreman configures in the dhcpd.leases file:
host test.aternos.org {
dynamic;
hardware ethernet ea:b5:4e:2e:1d:72;
fixed-address 194.xxx.xxx.250;
supersede host-name = "test.xxxxxxx.org";
}
I get the same result if I enter the correct mac address into eth0:1.
It only writes the correct config into the leases file if:
- I assign primary and provisioning to eth0 (However I have the wrong ip configured in dhcpd)
- I enter different mac address at eth0:1 (However I have the wrong mac address configured then in dhcpd)
So I assume the problem is that foreman tries to do the correct configuration however because of that the mac address field is empty (bcs. it’s a virtual interface) it does this misconfig.
I don’t know if it is a bug or feature, but I assume if Foreman would correctly use the mac address of it’s physical interface for the virtual interface it should get the correct result:
Expected outcome:
A correct dhcpd configuration from the smart proxy:
host test.node.consul {
dynamic;
hardware ethernet ea:b5:4e:2e:1d:73;
fixed-address 10.xx.xx.16;
supersede server.filename = "pxelinux.0";
supersede server.next-server = 0a:xx:xx:44;
supersede host-name = "test.node.consul";
}
Foreman and Proxy versions:
Foreman: 1.20.0
Proxy: 1.20.0
Foreman and Proxy plugin versions:
No plugins installed.