took a while to figure out why all your tests fail

Dennis Clarke dclarke at blastwave.org
Fri May 7 18:01:48 UTC 2021


On 5/6/21 19:03, Mark Andrews wrote:
> First of all the user running the tests needs to be able to write to bin/tests/system. See the permission denied from tee. 
> 

I tried that and a pile of *other* things fail :


dude at nix$ ifconfig -a
lo0:6: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
        inet 127.0.0.1 netmask ff000000
bge2:6: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 172.16.1.202 netmask ffffff00 broadcast 172.16.1.255
bge2:7: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.1 netmask ff000000 broadcast 10.255.255.255
bge2:8: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.2 netmask ff000000 broadcast 10.255.255.255
bge2:9: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.3 netmask ff000000 broadcast 10.255.255.255
bge2:10: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.4 netmask ff000000 broadcast 10.255.255.255
bge2:11: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.5 netmask ff000000 broadcast 10.255.255.255
bge2:12: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.6 netmask ff000000 broadcast 10.255.255.255
bge2:13: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.7 netmask ff000000 broadcast 10.255.255.255
bge2:14: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.8 netmask ff000000 broadcast 10.255.255.255
bge2:15: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.9 netmask ff000000 broadcast 10.255.255.255
bge2:16: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.0.10 netmask ff000000 broadcast 10.255.255.255
bge2:17: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.1.1 netmask ff000000 broadcast 10.255.255.255
bge2:18: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.1.2 netmask ff000000 broadcast 10.255.255.255
bge2:19: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.2.1 netmask ff000000 broadcast 10.255.255.255
bge2:20: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.53.2.2 netmask ff000000 broadcast 10.255.255.255
lo0:6: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
        inet6 ::1/128
bge2:1: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::1/128
bge2:2: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::2/128
bge2:3: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::3/128
bge2:4: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::4/128
bge2:5: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::5/128
bge2:6: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::6/128
bge2:7: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::7/128
bge2:8: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::8/128
bge2:9: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::9/128
bge2:10: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ffff::10/128
bge2:11: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:99ff::1/128
bge2:12: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:99ff::2/128
bge2:13: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ff::1/128
bge2:14: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fd92:7065:b8e:ff::2/128
bge2:15: flags=2000801<UP,MULTICAST,IPv6> mtu 1500 index 4
        inet6 fe80::203:baff:fe13:3c25/10
dude at nix$
dude at nix$ ./runall.sh -n
+ SYSTEMTESTTOP=.
+ . ./conf.sh
++ TOP=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005
++ DEFAULT_ALGORITHM=RSASHA256
++ DEFAULT_ALGORITHM_NUMBER=8
++ DEFAULT_BITS=1280
++ TMPDIR=/tmp
++ ALTERNATIVE_ALGORITHM=RSASHA1
++ ALTERNATIVE_ALGORITHM_NUMBER=5
++ ALTERNATIVE_BITS=1280
++ DISABLED_ALGORITHM=ECDSAP384SHA384
++ DISABLED_ALGORITHM_NUMBER=14
++ DISABLED_BITS=384
++ NAMED=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named
++
LWRESD='/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named -l'
++ DIG=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dig/dig
++ DELV=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/delv/delv
++ RNDC=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/rndc/rndc
++
NSUPDATE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/nsupdate/nsupdate
++
DDNSCONFGEN=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/confgen/ddns-confgen
++
TSIGKEYGEN=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/confgen/tsig-keygen
++
RNDCCONFGEN=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/confgen/rndc-confgen
++
KEYGEN=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-keygen
++
KEYFRLAB=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-keyfromlabel
++
SIGNER=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-signzone
++
REVOKE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-revoke
++
SETTIME=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-settime
++
DSFROMKEY=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-dsfromkey
++ HOST=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dig/host
++
IMPORTKEY=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-importkey
++
CHECKDS=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/python/dnssec-checkds
++
COVERAGE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/python/dnssec-coverage
++
KEYMGR=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/python/dnssec-keymgr
++
CHECKZONE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/check/named-checkzone
++
CHECKCONF=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/check/named-checkconf
++
PK11GEN='/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/pkcs11/pkcs11-keygen
-q -s 0 -p 1234'
++
PK11LIST='/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/pkcs11/pkcs11-list
-s 0 -p 1234'
++
PK11DEL='/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/pkcs11/pkcs11-destroy
-s 0 -p 1234 -w 0'
++
JOURNALPRINT=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/named-journalprint
++
VERIFY=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dnssec/dnssec-verify
++
ARPANAME=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/arpaname
++
RESOLVE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/lib/samples/resolve
++
RRCHECKER=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/named-rrchecker
++
GENRANDOM=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/genrandom
++
NSLOOKUP=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/dig/nslookup
++
DNSTAPREAD=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/dnstap-read
++ MDIG=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/mdig
++
NZD2NZF=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tools/named-nzd2nzf
++ FSTRM_CAPTURE=
++
FEATURETEST=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/feature-test
++
RANDFILE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/random.data
++
BIGKEY=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/rsabigexponent/bigkey
++
GENCHECK=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/rndc/gencheck
++
KEYCREATE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/tkey/keycreate
++
KEYDELETE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/tkey/keydelete
++
LWTEST=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/lwresd/lwtest
++
MAKEJOURNAL=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/makejournal
++
PIPEQUERIES=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/pipelined/pipequeries
++
SAMPLEUPDATE=/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/lib/samples/sample-update
++ KRB5_CONFIG=/dev/null
++ RANDOMSIZE=4096
++ SEQUENTIALDIRS='ecdsa eddsa gost lwresd  tkey'
++ PARALLELDIRS='dnssec rpzrecurse      acl additional addzone
allow-query auth autosign        builtin cacheclean case catz chain
 checkconf checknames checkzone          cookie database digdelv dlv dlz
dlzexternal     dns64  dscp dsdigest dyndb      ednscompliance
emptyzones       fetchlimit filter-aaaa formerr forward  geoip geoip2
glue idna inline integrity ixfr    legacy limits logfileconfig
masterfile masterformat metadata mkeys  names notify nslookup nsupdate
nzd2nzf  pending pipelined       reclimit redirect resolver rndc
rootkeysentinel rpz     rrchecker rrl rrsetorder rsabigexponent runtime
        sfcache smartsign sortlist      spf staticstub statistics
statschannel stub     tcp tsig tsiggss        unknown upforwd verify
views wildcard   xfer xferquota zero zonechecks'
++ SUBDIRS='ecdsa eddsa gost lwresd  tkey dnssec rpzrecurse     acl
additional addzone allow-query auth autosign        builtin cacheclean
case catz chain      checkconf checknames checkzone          cookie
database digdelv dlv dlz dlzexternal     dns64  dscp dsdigest dyndb
 ednscompliance emptyzones       fetchlimit filter-aaaa formerr forward
 geoip geoip2 glue idna inline integrity ixfr    legacy limits
logfileconfig     masterfile masterformat metadata mkeys  names notify
nslookup nsupdate nzd2nzf  pending pipelined       reclimit redirect
resolver rndc rootkeysentinel rpz     rrchecker rrl rrsetorder
rsabigexponent runtime         sfcache smartsign sortlist      spf
staticstub statistics statschannel stub     tcp tsig tsiggss
unknown upforwd verify views wildcard   xfer xferquota zero zonechecks'
++ KILL=kill
++ DIFF=diff
++ DOS2UNIX=true
++ TP=.
++ SHELL=/opt/bw/bin/bash
++ CURL=/opt/bw/bin/curl
++ XMLLINT=/opt/bw/bin/xmllint
++ XSLTPROC=/bin/xsltproc
++ PERL=/opt/bw/bin/perl
++ PSSUSPEND=
++ PYTHON=
++ CHECK_DSA=0
++ HAVEXMLSTATS=1
++ HAVEJSONSTATS=
++ ZLIB=1
++ NZD=
++ . /opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/version
+++ PRODUCT=BIND
+++ DESCRIPTION='(Extended Support Version)'
+++ MAJORVER=9
+++ MINORVER=11
+++ PATCHVER=31
+++ RELEASETYPE=
+++ RELEASEVER=
+++ EXTENSIONS=
++ '[' 0 -eq 1 ']'
++ test -t 1
++ type tput
++ tput setaf 7
++ COLOR_END=
++ COLOR_FAIL=
++ COLOR_INFO=
++ COLOR_NONE=
++ COLOR_PASS=
++ COLOR_START=
++ COLOR_WARN=
+++ basename
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system
++ SYSTESTDIR=system
++ type printf
++ export ARPANAME
++ export BIGKEY
++ export CHECKZONE
++ export CYGWIN
++ export DESCRIPTION
++ export DIG
++ export FEATURETEST
++ export FSTRM_CAPTURE
++ export GENCHECK
++ export JOURNALPRINT
++ export KEYCREATE
++ export KEYDELETE
++ export KEYFRLAB
++ export KEYGEN
++ export KEYSETTOOL
++ export KEYSIGNER
++ export KRB5_CONFIG
++ export LWRESD
++ export LWTEST
++ export MAKEJOURNAL
++ export MDIG
++ export NAMED
++ export NSLOOKUP
++ export NSUPDATE
++ export NZD2NZF
++ export PERL
++ export PIPEQUERIES
++ export PK11DEL
++ export PK11GEN
++ export PK11LIST
++ export PSSUSPEND
++ export PYTHON
++ export RANDFILE
++ export RESOLVE
++ export RNDC
++ export RRCHECKER
++ export SAMPLEUPDATE
++ export SIGNER
++ export SUBDIRS
++ export TMPDIR
+ usage='Usage: ./runall.sh [-c] [-n] [numprocesses]'
+ SYSTEMTEST_FORCE_COLOR=0
+ SYSTEMTEST_NO_CLEAN=0
+ getopts cn flag
+ case "$flag" in
+ SYSTEMTEST_NO_CLEAN=1
+ getopts cn flag
+ export NOCLEAN
++ expr 2 - 1
+ shift 1
+ '[' 0 -eq 0 ']'
+ numproc=1
+ export SYSTEMTEST_FORCE_COLOR
+ export SYSTEMTEST_NO_CLEAN
+ status=0
+ '[' '' = '' ']'
+ '[' '' = '' ']'
+ make -j 1 check
make: Warning: Ignoring DistributedMake -j option
/opt/bw/bin/bash parallel.sh > parallel.mk
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/dlzexternal
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/dyndb
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/dyndb/driver
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/lwresd
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/pipelined
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/rndc
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/rsabigexponent
make: Warning: Ignoring DistributedMake -j option
making all in
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/tests/system/tkey
make: Warning: Ignoring DistributedMake -j option
make: Warning: Ignoring DistributedMake -j option
S:dnssec:Fri May  7 17:55:31 GMT 2021
T:dnssec:1:A
A:dnssec:System test dnssec
I:dnssec:PORTRANGE:5000 - 5099
I:dnssec:This test requires Python and the dnspython module.
I:dnssec:Prerequisites missing, skipping test.
R:dnssec:UNTESTED
E:dnssec:Fri May  7 17:55:32 GMT 2021
S:rpzrecurse:Fri May  7 17:55:32 GMT 2021
T:rpzrecurse:1:A
A:rpzrecurse:System test rpzrecurse
I:rpzrecurse:PORTRANGE:5100 - 5199
I:rpzrecurse:This test requires support for cryptography
I:rpzrecurse:configure with --with-openssl, or --enable-native-pkcs11
--with-pkcs11
I:rpzrecurse:Prerequisites missing, skipping test.
R:rpzrecurse:SKIPPED
E:rpzrecurse:Fri May  7 17:55:32 GMT 2021
S:acl:Fri May  7 17:55:32 GMT 2021
T:acl:1:A
A:acl:System test acl
I:acl:PORTRANGE:5200 - 5299
setup.sh: line 15: ns2/example.db: Permission denied
setup.sh: line 16: ns2/tsigzone.db: Permission denied
../conf.sh: line 588: ns2/named.conf: Permission denied
../conf.sh: line 588: ns3/named.conf: Permission denied
../conf.sh: line 588: ns4/named.conf: Permission denied
sh: named.run: cannot create
I:acl:Couldn't start server
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named -D
acl-ns2 -X named.lock -m record,size,mctx -T clienttest -c named.conf -d
99 -g -U 4 >named.run 2>&1 & echo $! (pid=16752)
I:acl:failed
kill: 16752: no such process
R:acl:FAIL
E:acl:Fri May  7 17:55:48 GMT 2021
S:additional:Fri May  7 17:55:48 GMT 2021
T:additional:1:A
A:additional:System test additional
I:additional:PORTRANGE:5300 - 5399
../conf.sh: line 588: ns1/named.conf: Permission denied
../conf.sh: line 588: ns3/named.conf: Permission denied
sh: named.run: cannot create
I:additional:Couldn't start server
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named -m
record,size,mctx -c named.conf -d 99 -D additional-ns1 -X named.lock -g
-T clienttest -n 1 >named.run 2>&1 & echo $! (pid=16795)
I:additional:failed
kill: 16795: no such process
R:additional:FAIL
E:additional:Fri May  7 17:56:04 GMT 2021
S:addzone:Fri May  7 17:56:04 GMT 2021
T:addzone:1:A
A:addzone:System test addzone
I:addzone:PORTRANGE:5400 - 5499
../conf.sh: line 588: ns1/named.conf: Permission denied
../conf.sh: line 588: ns2/named.conf: Permission denied
cp: cannot create ns2/3bf305731dd26307.nzf: Permission denied
../conf.sh: line 588: ns3/named.conf: Permission denied
sh: named.run: cannot create
I:addzone:Couldn't start server
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named -D
addzone-ns1 -X named.lock -m record,size,mctx -T clienttest -c
named.conf -d 99 -g -U 4 >named.run 2>&1 & echo $! (pid=16853)
I:addzone:failed
kill: 16853: no such process
R:addzone:FAIL
E:addzone:Fri May  7 17:56:19 GMT 2021
S:allow-query:Fri May  7 17:56:19 GMT 2021
T:allow-query:1:A
A:allow-query:System test allow-query
I:allow-query:PORTRANGE:5500 - 5599
../conf.sh: line 588: ns2/controls.conf: Permission denied
../conf.sh: line 588: ns1/named.conf: Permission denied
../conf.sh: line 588: ns2/named.conf: Permission denied
../conf.sh: line 588: ns3/named.conf: Permission denied
sh: named.run: cannot create
I:allow-query:Couldn't start server
/opt/bw/build/bind-9.11.31_sunos5.10_sparcv9.005/bin/named/named -D
allow-query-ns1 -X named.lock -m record,size,mctx -T clienttest -c
named.conf -d 99 -g -U 4 >named.run 2>&1 & echo $! (pid=16899)
I:allow-query:failed
kill: 16899: no such process
R:allow-query:FAIL
E:allow-query:Fri May  7 17:56:35 GMT 2021
S:auth:Fri May  7 17:56:35 GMT 2021
T:auth:1:A
A:auth:System test auth
I:auth:PORTRANGE:5600 - 5699
../conf.sh: line 588: ns1/named.conf: Permission denied
../conf.sh: line 588: ns2/named.conf: Permission denied
sh: named.run: cannot create
^Cdude at nix$
dude at nix$

The username "dude" is in the group "devl" wherein the tests directory
is chmod 775 so I think perhaps a lot of other stuff may need to also
be writable.

I may try to slice along through this or just give "dude" write
access to everything in the build pile.  Could work?

Dennis



More information about the bind-users mailing list