MAAS dhcp fails to parse leases written to /var/lib/maas/dhcpd.leases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo | ||
1.9 |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
It looks like whatever format the DHCP lease file is being written in may be broken. I see the following in the log after DHCP is killed and restarts, after running MAAS for awhile.
As seen in /var/log/syslog:
Dec 2 23:25:15 maastest-1404 kernel: [22937.729185] init: maas-dhcpd main process (31355) killed by TERM signal
Dec 2 23:25:15 maastest-1404 dhcpd: /var/lib/
Dec 2 23:25:15 maastest-1404 dhcpd: host 52:
Dec 2 23:25:15 maastest-1404 dhcpd: ^
Dec 2 23:25:15 maastest-1404 dhcpd: /var/lib/
Dec 2 23:25:15 maastest-1404 dhcpd: host 52:
Dec 2 23:25:15 maastest-1404 dhcpd: ^
Dec 2 23:25:15 maastest-1404 dhcpd: /var/lib/
Dec 2 23:25:15 maastest-1404 dhcpd: host 52:
Dec 2 23:25:15 maastest-1404 dhcpd: ^
When I check /var/lib/
Captured here in pastebin as well:
http://
Related branches
- Mike Pontillo (community): Approve
-
Diff: 93 lines (+17/-10)3 files modifiedsrc/provisioningserver/dhcp/omshell.py (+5/-2)
src/provisioningserver/dhcp/tests/test_omshell.py (+2/-2)
src/provisioningserver/rpc/dhcp.py (+10/-6)
- Blake Rouse (community): Approve
-
Diff: 93 lines (+17/-10)3 files modifiedsrc/provisioningserver/dhcp/omshell.py (+5/-2)
src/provisioningserver/dhcp/tests/test_omshell.py (+2/-2)
src/provisioningserver/rpc/dhcp.py (+10/-6)
description: | updated |
MAAS currently does not touch the dhcpd.leases file to write to it. We only read the file at the moment. Now that will change in MAAS 2.0, but currently this issue has nothing to do with MAAS.