addzone system test failed: check whether all "rndc status" commands succeeded
Job #1783453 failed for edd0fe1d:
D:addzone:# Check whether all "rndc status" commands succeeded.
D:addzone:> assert server_is_responsive
D:addzone:E assert False
D:addzone:
D:addzone:tests_rndc_deadlock.py:89: AssertionError
Full log
S:addzone:2021-06-09T14:06:47+0000
T:addzone:1:A
A:addzone:System test addzone
I:addzone:PORTRANGE:5500 - 5599
I:addzone:starting servers
I:addzone:checking normally loaded zone (0)
I:addzone:checking previously added zone (1)
I:addzone:checking that existing NZF file was renamed after migration (2)
I:addzone:adding new zone (3)
I:addzone:checking addzone errors are logged correctly
I:addzone:checking modzone errors are logged correctly
I:addzone:adding a zone that requires quotes (6)
I:addzone:adding a zone with a quote in the name (7)
I:addzone:adding new zone with missing file (8)
I:addzone:checking rndc showzone with previously added zone (9)
I:addzone:checking zone is present in NZD (10)
I:addzone:deleting previously added zone (10)
I:addzone:checking zone was deleted from NZD (11)
I:addzone:deleting newly added zone added.example (11)
I:addzone:deleting newly added zone with escaped quote (12)
I:addzone:checking rndc showzone with a normally-loaded zone (13)
I:addzone:checking rndc showzone with a normally-loaded zone with trailing dot (14)
I:addzone:checking rndc showzone with a normally-loaded redirect zone (15)
I:addzone:checking rndc zonestatus with a normally-loaded redirect zone (16)
I:addzone:checking rndc reload with a normally-loaded redirect zone (17)
I:addzone:delete a normally-loaded zone (18)
I:addzone:attempting to add primary zone with inline signing (19)
I:addzone:attempting to add primary zone with inline signing and missing file (20)
I:addzone:attempting to add secondary zone with inline signing (21)
I:addzone:attempting to delete secondary zone with inline signing (22)
I:addzone:restoring secondary zone with inline signing (23)
I:addzone:deleting secondary zone with automatic zone file removal (24)
I:addzone:modifying zone configuration (25)
I:addzone:ns2 zone 'mod.example' reconfigured.
I:addzone:check that adding a 'stub' zone works (26)
I:addzone:check that adding a 'static-stub' zone works (27)
I:addzone:check that adding a 'primary redirect' zone works (28)
I:addzone:check that reloading a added 'primary redirect' zone works (29)
I:addzone:check that retransfer of a added 'primary redirect' zone fails (30)
I:addzone:check that deleting a 'primary redirect' zone works (31)
I:addzone:check that adding a 'secondary redirect' zone works (32)
I:addzone:check that retransfering a added 'secondary redirect' zone works (33)
I:addzone:check that deleting a 'secondary redirect' zone works (34)
I:addzone:check that zone type 'hint' is properly rejected (35)
I:addzone:check that zone type 'forward' is properly rejected (36)
I:addzone:check that zone type 'delegation-only' is properly rejected (37)
I:addzone:check that 'in-view' zones are properly rejected (38)
I:addzone:reconfiguring server with multiple views
I:addzone:
I:addzone:adding new zone to external view (39)
I:addzone:verifying added.example in external view created an external.nzd DB (40)
I:addzone:checking rndc reload causes named to reload the external view's new zone config (41)
I:addzone:ns2 server reload successful
I:addzone:checking rndc showzone with newly added zone (42)
I:addzone:deleting newly added zone (43)
I:addzone:attempting to add zone to internal view (44)
I:addzone:attempting to delete a policy zone (45)
I:addzone:adding new zone again to external view (46)
I:addzone:reconfiguring server with multiple views and new-zones-directory
I:addzone:
I:addzone:checking new zone is still loaded after dir change (47)
I:addzone:deleting newly added zone from external (48)
I:addzone:adding new zone to directory view (49)
I:addzone:checking NZD file was created in new-zones-directory (50)
I:addzone:deleting newly added zone from directory (51)
I:addzone:ensure the configuration context is cleaned up correctly (52)
I:addzone:
I:addzone:check delzone after reconfig failure (53)
I:addzone:ns3 rndc: 'reconfig' failed: not found
I:addzone:check that named restarts with multiple added zones (54)
I:addzone:exit status: 0
I:addzone:stopping servers
I:addzone:starting servers
D:addzone:============================= test session starts ==============================
D:addzone:platform freebsd12 -- Python 3.7.10, pytest-4.5.0, py-1.9.0, pluggy-0.13.1 -- /usr/local/bin/python3.7
D:addzone:rootdir: /builds/isc-projects/bind9/bin/tests/system/addzone
D:addzone:collecting ... collected 1 item
D:addzone:
D:addzone:tests_rndc_deadlock.py::test_rndc_deadlock FAILED [100%]
D:addzone:
D:addzone:=================================== FAILURES ===================================
D:addzone:______________________________ test_rndc_deadlock ______________________________
D:addzone:
D:addzone:def test_rndc_deadlock():
D:addzone:'''
D:addzone:Test whether running "rndc addzone", "rndc modzone", and "rndc delzone"
D:addzone:commands concurrently does not trigger a deadlock
D:addzone:'''
D:addzone:test_state = {'finished': False}
D:addzone:
D:addzone:# Create 4 worker threads running "rndc" commands in a loop.
D:addzone:with concurrent.futures.ThreadPoolExecutor() as executor:
D:addzone:for i in range(1, 5):
D:addzone:domain = 'example%d' % i
D:addzone:executor.submit(rndc_loop, test_state, domain)
D:addzone:
D:addzone:# Run "rndc status" in 1-second intervals for a maximum of 10 seconds.
D:addzone:# If any "rndc status" command fails, the loop will be interrupted.
D:addzone:server_is_responsive = True
D:addzone:attempts = 10
D:addzone:while server_is_responsive and attempts > 0:
D:addzone:server_is_responsive = check_if_server_is_responsive()
D:addzone:attempts -= 1
D:addzone:time.sleep(1)
D:addzone:
D:addzone:# Signal worker threads that the test is finished.
D:addzone:test_state['finished'] = True
D:addzone:
D:addzone:# Check whether all "rndc status" commands succeeded.
D:addzone:> assert server_is_responsive
D:addzone:E assert False
D:addzone:
D:addzone:tests_rndc_deadlock.py:89: AssertionError
D:addzone:========================== 1 failed in 10.99 seconds ===========================
I:system:FAILED
I:addzone:stopping servers
R:addzone:FAIL
E:addzone:2021-06-09T14:07:13+0000
Edited by Petr Špaček