[2.0] Interfaces with multiple IP address appear multiple times in dhcpd.conf

Bug #1552727 reported by Blake Rouse
6
This bug affects 1 person
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

Revision history for this message
Blake Rouse (blake-rouse) wrote :

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.

summary: - [2.0] Hosts in dhcpd.conf is incorrect and repeats
+ [2.0] Interfaces with multiple IP address appear multiple times in
+ dhcpd.conf
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.