Package: isc-dhcp-server
Version: 4.4.1-2
Severity: important

Hi,

I don't really have a good non-intrusive idea to fix this. I also don't see
other reports about this (for code that was supposedly added before stretch),
so I wonder what I'm missing. 

/etc/init.d/isc-dhcp-server tries to start both an IPv4 and an IPv6 server in
the default configuration (both INTERFACESv[46] empty). Or if you have both
set. If the IPv6 server does not start due to any reason (missing
configuration, typo in the configuration, misconfigured NIC) you end up with
some bad state.

root@opsvm:~# systemctl start isc-dhcp-server
Job for isc-dhcp-server.service failed because the control process exited with 
error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.

Apr 01 22:37:29 opsvm isc-dhcp-server[3057]: Launching IPv4 server only.
Apr 01 22:37:29 opsvm dhcpd[3066]: Internet Systems Consortium DHCP Server 4.4.1
Apr 01 22:37:29 opsvm dhcpd[3066]: Copyright 2004-2018 Internet Systems 
Consortium.
Apr 01 22:37:29 opsvm dhcpd[3066]: All rights reserved.
Apr 01 22:37:29 opsvm dhcpd[3066]: For info, please visit 
https://www.isc.org/software/dhcp/
Apr 01 22:37:30 opsvm dhcpd[3069]: Internet Systems Consortium DHCP Server 4.4.1
Apr 01 22:37:30 opsvm dhcpd[3069]: Copyright 2004-2018 Internet Systems 
Consortium.
Apr 01 22:37:30 opsvm dhcpd[3069]: All rights reserved.
Apr 01 22:37:30 opsvm dhcpd[3069]: For info, please visit 
https://www.isc.org/software/dhcp/
Apr 01 22:37:30 opsvm dhcpd[3069]: Wrote 0 group decls to leases file.
Apr 01 22:37:30 opsvm dhcpd[3069]: Wrote 0 deleted host decls to leases file.
Apr 01 22:37:30 opsvm dhcpd[3069]: Wrote 0 new dynamic host decls to leases 
file.
Apr 01 22:37:30 opsvm dhcpd[3069]: Wrote 136 leases to leases file.
Apr 01 22:37:30 opsvm dhcpd[3069]: Server starting service.
Apr 01 22:37:32 opsvm isc-dhcp-server[3057]: Starting ISC DHCPv4 server: dhcpd.
Apr 01 22:37:32 opsvm isc-dhcp-server[3057]: Launching IPv6 server only.
Apr 01 22:37:32 opsvm dhcpd[3076]: Wrote 0 NA, 0 TA, 0 PD leases to lease file.
Apr 01 22:37:32 opsvm dhcpd[3076]: 
Apr 01 22:37:32 opsvm dhcpd[3076]: No subnet6 declaration for ens18 
(2001:1b10:100:3::53aa:12a).
Apr 01 22:37:32 opsvm dhcpd[3076]: ** Ignoring requests on ens18.  If this is 
not what
Apr 01 22:37:32 opsvm dhcpd[3076]:    you want, please write a subnet6 
declaration
Apr 01 22:37:32 opsvm dhcpd[3076]:    in your dhcpd.conf file for the network 
segment
Apr 01 22:37:32 opsvm dhcpd[3076]:    to which interface ens18 is attached. **
Apr 01 22:37:32 opsvm dhcpd[3076]: 
Apr 01 22:37:32 opsvm dhcpd[3076]: 
Apr 01 22:37:32 opsvm dhcpd[3076]: Not configured to listen on any interfaces!
Apr 01 22:37:32 opsvm dhcpd[3076]: 
Apr 01 22:37:32 opsvm dhcpd[3076]: If you think you have received this message 
due to a bug rather
Apr 01 22:37:32 opsvm dhcpd[3076]: than a configuration issue please read the 
section on submitting
Apr 01 22:37:32 opsvm dhcpd[3076]: bugs on either our web page at www.isc.org 
or in the README file
Apr 01 22:37:32 opsvm dhcpd[3076]: before submitting a bug.  These pages 
explain the proper
Apr 01 22:37:32 opsvm dhcpd[3076]: process and the information we find helpful 
for debugging.
Apr 01 22:37:32 opsvm dhcpd[3076]: 
Apr 01 22:37:32 opsvm dhcpd[3076]: exiting.
Apr 01 22:37:34 opsvm isc-dhcp-server[3057]: Starting ISC DHCPv6 server: 
dhcpd6check syslog for diagnostics. ... failed!
Apr 01 22:37:34 opsvm isc-dhcp-server[3057]:  failed!


root@opsvm:~# systemctl status isc-dhcp-server
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
   Active: failed (Result: exit-code) since Mon 2019-04-01 22:37:34 UTC; 9s ago

root      3069  0.0  0.2  13632  9376 ?        Ss   22:37   0:00 
/usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf ens18 moni123 mgmt100

So there is the IPv4 daemon running, but systemd thinks the whole service has
failed.

This leads to various weird things. You cannot stop the daemon using systemctl

root@opsvm:~# systemctl stop isc-dhcp-server
root@opsvm:~# systemctl status isc-dhcp-server
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
   Active: failed (Result: exit-code) since Mon 2019-04-01 22:37:34 UTC; 2min 
35s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3057 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, 
status=1/FAILURE)
    Tasks: 1 (limit: 4696)
   Memory: 6.5M
   CGroup: /system.slice/isc-dhcp-server.service
           └─3069 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf ens18 moni123 
mgmt100

root      3069  0.0  0.2  13632  8860 ?        Ss   22:37   0:00 
/usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf ens18 moni123 mgmt100

You cannot start or restart it, because it would then just try starting the
daemon again

Apr 01 22:40:54 opsvm isc-dhcp-server[3599]: Starting ISC DHCPv4 server: 
dhcpddhcpd service already running (pid file /var/run/dhcpd.pid currenty 
exists) ... failed!

And even after manually killing the untracked dhcpd the pidfile still exists
and blocks restarting the daemon (Bug#868240).

Bernhard

Reply via email to