]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Wait for the "fast-expire" zone to be transferred
authorMichał Kępień <michal@isc.org>
Thu, 5 Nov 2020 06:53:43 +0000 (07:53 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 5 Nov 2020 06:53:43 +0000 (07:53 +0100)
In order for a "fast-expire/IN: response-policy zone expired" message to
be logged in ns3/named.run, the "fast-expire" zone must first be
transferred in by that server.  However, with unfavorable timing, ns3
may be stopped before it manages to fetch the "fast-expire" zone from
ns5 and after the latter has been reconfigured to no longer serve that
zone.  In such a case, the "rpz" system test will report a false
positive for the relevant check.  Prevent that from happening by
ensuring ns3 manages to transfer the "fast-expire" zone before getting
shut down.

bin/tests/system/rpz/tests.sh

index a151a3af977b0e93e52c172e4d923dbb1d0dd9c9..c888289db41cb48392a0cbdc3ce3080aaa38cd98 100644 (file)
@@ -781,7 +781,10 @@ EOF
     done
   fi
 
-  # reconfigure the ns5 primary server without the fast-exire zone, so
+  # Ensure ns3 manages to transfer the fast-expire zone before shutdown.
+  wait_for_log 20 "zone fast-expire/IN: transferred serial 1" ns3/named.run
+
+  # reconfigure the ns5 primary server without the fast-expire zone, so
   # it can't be refreshed on ns3, and will expire in 5 seconds.
   cat /dev/null > ns5/expire.conf
   rndc_reconfig ns5 10.53.0.5