[xenial] _get_systemd_service_status fails to parse systemd "failed" state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned |
Bug Description
During the MAAS startup process, due to a isc-dhcp.server bug, we got the service in a failed state (neither "active" nor "inactive").
Examining regiond's log, we got:
2016-01-20 10:35:43 [HTTPChannel,
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
return django_
File "/usr/lib/
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
raise self.value.
The code in _get_systemd_
root@autopkgtest:~# systemctl status maas-dhcpd
● maas-dhcpd.service - MAAS instance of ISC DHCP server for IPv4
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Wed 2016-01-20 10:35:43 EST; 26min ago
Docs: man:dhcpd(8)
Process: 13387 ExecStart=/bin/sh -ec INTERFACES=$(cat /var/lib/
Process: 13383 ExecStartPre=
Process: 13379 ExecStartPre=
Process: 13377 ExecStartPre=
Process: 13375 ExecStartPre=
Main PID: 13387 (code=exited, status=1/FAILURE)
Jan 20 10:35:43 autopkgtest dhcpd[13387]: If you think you have received this message due to a b...her
Jan 20 10:35:43 autopkgtest dhcpd[13387]: than a configuration issue please read the section on ...ing
Jan 20 10:35:43 autopkgtest dhcpd[13387]: bugs on either our web page at www.isc.org or in the R...ile
Jan 20 10:35:43 autopkgtest dhcpd[13387]: before submitting a bug. These pages explain the proper
Jan 20 10:35:43 autopkgtest dhcpd[13387]: process and the information we find helpful for debugging..
Jan 20 10:35:43 autopkgtest dhcpd[13387]:
Jan 20 10:35:43 autopkgtest dhcpd[13387]: exiting.
Jan 20 10:35:43 autopkgtest systemd[1]: maas-dhcpd.service: Main process exited, code=exited, s...LURE
Jan 20 10:35:43 autopkgtest systemd[1]: maas-dhcpd.service: Unit entered failed state.
Jan 20 10:35:43 autopkgtest systemd[1]: maas-dhcpd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
Related branches
- Blake Rouse (community): Approve
-
Diff: 65 lines (+27/-2)2 files modifiedsrc/provisioningserver/service_monitor.py (+11/-2)
src/provisioningserver/tests/test_service_monitor.py (+16/-0)
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | High → Critical |
Changed in maas: | |
assignee: | nobody → Ricardo Bánffy (rbanffy) |
Changed in maas: | |
assignee: | Ricardo Bánffy (rbanffy) → nobody |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |