Subject: | DHCP 4.2.4 test mode inconsistent with production mode |
Date: | Mon, 18 Jun 2012 15:43:18 +0100 |
To: | dhcp-bugs@isc.org |
From: | Niall O'Reilly <Niall.oReilly@ucd.ie> |
I have a failover peer specification to which no pool yet refers.
Test mode does not catch this as an error (RC==0), but production
mode does (RC==1).
As a consequence, I can't depend on validation using test mode to
protect against a configuration which will disable the service.
[noreilly@scarf dhcpd]$ /usr/local/sbin/dhcpd -q -v
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-4|-6] [-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[noreilly@scarf dhcpd]$ /usr/local/sbin/dhcpd -d -t -cf /etc/dhcpd.conf; echo $?
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
0
[noreilly@scarf dhcpd]$ sudo /usr/local/sbin/dhcpd -d -cf /etc/dhcpd.conf -user dhcpd -chroot /local/var/dhcpd/; echo $?
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 62 leases to leases file.
Listening on LPF/eth0/d8:d3:85:fb:7c:6a/bf-infra-server
Sending on LPF/eth0/d8:d3:85:fb:7c:6a/bf-infra-server
Sending on Socket/fallback/fallback-net
failover peer BF_TEST_FLOV: I move from recover to startup
failover peer declaration with no referring pools.
In order to use failover, you MUST refer to your main failover declaration
in each pool declaration. You MUST NOT use range declarations outside
of pool declarations.
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
1
[noreilly@scarf dhcpd]$