DHCPd keeps reassigning IP addresses / breaks IPMI power control
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
New
|
Undecided
|
Unassigned |
Bug Description
This bug is probably related to https:/
** Effect
After some time (typically 24h) after commissioning a machine, it reports the following error:
'''
Failed to query node's BMC - Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
'''
** Cause
The DHCPd reassigns a new IP number to an existing MAC address, yet Maas doesn't keep track of this. This is likely due to a broken maas-helper script. An example of it is below (this is from dhcpd.leases):
'''
lease 192.168.29.237 {
starts 2 2023/11/07 18:44:44;
ends 2 2023/11/07 18:46:44;
tstp 2 2023/11/07 18:44:20;
tsfp 2 2023/11/07 18:49:20;
atsfp 2 2023/11/07 18:49:20;
cltt 2 2023/11/07 18:44:44;
binding state free;
hardware ethernet ac:1f:6b:b6:a4:a4;
set vendor-
client-hostname "disk-27.
on expiry {
set clhw =
set clip =
execute ("/usr/
"--mac", clhw, "--ip-family", "ipv4", "--ip", clip, "--socket", "/var/lib/
}
on release {
set clhw =
'''
After the initial (correct assignment to 192.168.29.237) later on the machine is assigned a new IP address as follows:
'''
}
lease 192.168.30.169 {
starts 3 2023/11/08 19:45:03;
ends 3 2023/11/08 19:55:03;
tstp 5 2023/10/06 02:33:42;
tsfp 3 2023/11/08 20:00:03;
atsfp 3 2023/11/08 20:00:03;
binding state active;
next binding state expired;
hardware ethernet ac:1f:6b:b6:a4:a4;
}
'''
Note that we're in a subnet 255.255.252.0 with 1024 IP numbers, hence 192.168.29.237 and 192.168.30.169 are in the same subnet for what Maas is concerned. I posted on https:/