[2.0] Interfaces with multiple IP address appear multiple times in dhcpd.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
I have a rack controller named "maas-1" it has two interfaces "eth0" and "eth1". Each have an IP address assigned to a different subnet. The host entries in dhcpd.conf is incorrect.
Observered:
host maas-1-eth0 {
hardware ethernet 00:16:3e:9c:8f:6f;
fixed-address 192.168.123.1;
}
host maas-1-eth0 {
hardware ethernet 00:16:3e:9c:8f:6f;
fixed-address 192.168.122.2;
}
host maas-2-eth0 {
hardware ethernet 00:16:3e:bc:d3:7e;
fixed-address 192.168.122.3;
}
host maas1-eth0 {
hardware ethernet 52:54:00:d6:1b:e0;
fixed-address 192.168.122.207;
}
Expected:
host maas-1-eth0 {
hardware ethernet 00:16:3e:9c:8f:6f;
fixed-address 192.168.122.2;
}
host maas-1-eth1 {
hardware ethernet 00:16:3e:9c:8f:7f;
fixed-address 192.168.123.1;
}
host maas-2-eth0 {
hardware ethernet 00:16:3e:bc:d3:7e;
fixed-address 192.168.122.3;
}
host maas1-eth0 {
hardware ethernet 52:54:00:d6:1b:e0;
fixed-address 192.168.122.207;
}
For some reason "eth0" shows up twice with the same MAC address but with two different IP addresses.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 161 lines (+59/-11)4 files modifiedsrc/maasserver/dhcp.py (+9/-5)
src/maasserver/tests/test_dhcp.py (+33/-5)
src/provisioningserver/utils/ps.py (+1/-1)
src/provisioningserver/utils/tests/test_ps.py (+16/-0)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Okay so this was a configuration issue as well as a bug. The configuration issue was I placed the 192.168.123.1 on "eth0" instead of "eth1". That did reveal a bug that only the first assigned address on an interface should get a host mapping. All other aliases should not show up in the dhcpd.conf.