keactrl.start_all_servers_no_verbose_test fail
name: Bug report
about: Create a report to help us improve
If you believe your bug report is a security issue (e.g. a packet that can kill the server), DO NOT REPORT IT HERE. Please use https://www.isc.org/community/report-bug/ instead or send mail to security-office(at)isc(dot)org.
Describe the bug
I'm not sure if it's the same reason as #1986 (closed). I also encountered this problem on the ARM machine (debian). I checked the 1986 issue, and it didn't seem to solve the problem.
To Reproduce
cd src/bin/keactrl/tests
make check
The error message is as follows:
Making check in .
make[1]: Entering directory '/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests'
make check-local
make[2]: Entering directory '/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests'
for shtest in keactrl_tests.sh ; do \
echo Running test: $shtest ; \
chmod +x /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/$shtest ; \
export KEA_LOCKFILE_DIR=/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src; \
export KEACTRL_BUILD_DIR=/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src; \
export KEA_PIDFILE_DIR=/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src; \
export KEACTRL_CONF=/home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/keactrl_test.conf; \
/bin/bash /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/$shtest || exit ; \
done
Running test: keactrl_tests.sh
START TEST keactrl.version
PASSED keactrl.version
START TEST keactrl.version-command
Creating keactrl configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/keactrl_test.conf.
PASSED keactrl.version-command
START TEST keactrl.start_all_servers_no_verbose_test
Creating Dhcp4 configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/dhcp4_test_config.json.
Creating Dhcp6 configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/dhcp6_test_config.json.
Creating D2 configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/d2_test_config.json.
Creating Ca configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/ca_test_config.json.
Creating Nc configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/nc_test_config.json.
Creating keactrl configuration file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/keactrl_test.conf.
Kea log will be stored in /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/test.log.
Starting Kea: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/keactrl start -c /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/keactrl_test.conf -s all
INFO/keactrl: kea-dhcp4 appears to be running, see: PID 16511, PID file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/dhcp4_test_config.kea-dhcp4.pid.
INFO/keactrl: kea-dhcp6 appears to be running, see: PID 16520, PID file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/dhcp6_test_config.kea-dhcp6.pid.
INFO/keactrl: kea-dhcp-ddns appears to be running, see: PID 16532, PID file: /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/d2_test_config.kea-dhcp-ddns.pid.
INFO/keactrl: Starting /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/agent/kea-ctrl-agent -c /home/stage/root/spack-stage-kea-1.6.2-56c7wz23h4dqfzoh65fb2wsnakggxzdw/spack-src/src/bin/keactrl/tests/ca_test_config.json
INFO/test_lib: wait_for_message DHCP6_CONFIG_COMPLETE: .2022-05-16 15:46:10.642 FATAL [kea-ctrl-agent.dctl/31077] DCTL_CONFIG_FILE_LOAD_FAIL Control-agent reason: unable to setup TCP acceptor for listening to the incoming HTTP requests: bind: Address already in use
Service failed: Could Not load configuration file: unable to setup TCP acceptor for listening to the incoming HTTP requests: bind: Address already in use
....................
Assertion failure: 1 != 0, for val1=1, val2=0
Timeout waiting for kea-dhcp6 to start. Expected wait_for_message return 1, returned 0.
Log file dump:
2022-05-16 15:46:10.641 INFO [kea-ctrl-agent.dctl/31077] DCTL_STARTING Control-agent starting, pid: 31077, version: 1.6.2
2022-05-16 15:46:10.642 ERROR [kea-ctrl-agent.dctl/31077] DCTL_PARSER_FAIL : unable to setup TCP acceptor for listening to the incoming HTTP requests: bind: Address already in use
FAILED keactrl.start_all_servers_no_verbose_test
Expected behavior A clear and concise description of what you expected to happen: The server is supposed to send back packet A with address B assigned.
Environment:
- Kea version: which release? 1.6.2
- OS: [e.g. Ubuntu 16.04 x64] 18.04.5 ARM
- Which features were compiled in (in particular which backends)
- If/which hooks where loaded in