Commit f398231603 for bind
commit f39823160321efa521b1f5874953ab7dc1daf4fc
Author: Nicki Křížek <nicki@isc.org>
Date: Mon Oct 19 08:54:23 2026 +0000
Request another rekey when the next key event check fails
"rndc dnssec -checkds" can race named's own DS check of the parent: if
the automatic check's rekey has already started, the rndc call moves
the DS time past that rekey's "now", and the keymgr defers the DS
transition by an hour. The rekey requested by the rndc call is dropped
because one is already in progress, so the expected next key event is
never logged.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py
index fae5c9e2cd..0003a324c0 100644
--- a/bin/tests/system/isctest/kasp.py
+++ b/bin/tests/system/isctest/kasp.py
@@ -1395,7 +1395,14 @@ def check_rollover_step(server, config, policy, step):
check_subdomain(server, zone, ksks, zsks, smooth=smooth)
def check_next_key_event():
- return next_key_event_equals(server, zone, nextev)
+ if next_key_event_equals(server, zone, nextev):
+ return True
+ # A rekey request that arrives while a rekey is in progress is
+ # lost, e.g. "rndc dnssec -checkds" racing named's own DS check.
+ # The next key event then reflects stale DS timing; request
+ # another rekey before retrying.
+ server.rndc(f"loadkeys {zone}")
+ return False
if nextev is not None:
# Larger than the inner watch_log timeout (10s) so slow logging of