"addzone" system test fails consistently for non-LMDB builds
S:addzone:Tue Apr 7 12:48:01 CEST 2020
T:addzone:1:A
A:addzone:System test addzone
...
I:addzone:check that named restarts with multiple added zones (56)
I:addzone:Couldn't start server /tmp/bind9/bin/named/named -D addzone-ns3 -X named.lock -m record,size,mctx -c named.conf -d 99 -g -U 4 >>named.run 2>&1 & echo $! (pid=24490)
I:addzone:failed
kill: sending signal to 24490 failed: No such process
I:addzone:failed
I:addzone:exit status: 1
R:addzone:FAIL
E:addzone:Tue Apr 7 12:48:37 CEST 2020
The offending test code line is:
$RNDCCMD 10.53.0.3 addzone '"test\".baz"' '{ type master; check-names ignore; file "e.db"; };' > /dev/null 2>&1 || ret=1
(introduced in ad030332 - part of !3150 (merged))
The last line in the relevant _default.nzf
file prevents named
from
starting up:
$ cat bin/tests/system/addzone/ns3/_default.nzf
# New zone file for view: _default
# This file contains configuration for zones added by
# the 'rndc addzone' command. DO NOT EDIT BY HAND.
zone "test1.baz" { type master; file "e.db"; };
zone "test4.baz" { type master; file "e.db"; };
zone "test5.baz" { type master; file "e.db"; };
zone "test/.baz" { type master; check-names ignore; file "e.db"; };
zone "test".baz" { type master; check-names ignore; file "e.db"; };
$ tail bin/tests/system/addzone/ns3/named.run
07-Apr-2020 12:48:12.255 unable to open GeoIP2 database '/usr/share/GeoIP/GeoIP2-Domain.mmdb' (status 1)
07-Apr-2020 12:48:12.255 using default UDP/IPv4 port range: [32768, 60999]
07-Apr-2020 12:48:12.255 using default UDP/IPv6 port range: [32768, 60999]
07-Apr-2020 12:48:12.255 listening on IPv4 interface lo, 10.53.0.3#5300
07-Apr-2020 12:48:12.255 generating session key for dynamic DNS
07-Apr-2020 12:48:12.255 _default.nzf:8: '{' expected near '"'
07-Apr-2020 12:48:12.255 Error parsing NZF file '_default.nzf': unexpected token
07-Apr-2020 12:48:12.265 load_configuration: unexpected token
07-Apr-2020 12:48:12.288 loading configuration: unexpected token
07-Apr-2020 12:48:12.288 exiting (due to fatal error)
Pinging @marka based on git blame
. Also @each as he reviewed the MR
and is in an arguably more convenient time zone.
We will need to get this fixed before tagging the April releases as it
is causing the addzone
system test to consistently fail on Windows
(which does not have LMDB available).