From a5d9c5ce2d988124616ef8fb2691f69c31aec671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Mon, 9 Mar 2026 18:05:27 +0000 Subject: [PATCH] ci: cdrouter: flush DNS relay cache on loopback instance as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the unbound upstep from 1.22 to 1.24.1 (commit d453d848c05f), DNS resolution now also uses a loopback unbound instance. The existing DUT init script only flushed the "lan" DNS relay cache, causing stale negative DNS entries on the "lo" instance to persist. This led to USP agent (obuspa) STOMP connection failures during CDRouter-Wireless tests, as controller.cdroutertest.com could not be resolved. Flush the "lo" DNS relay cache before "lan" to ensure both instances have clean state before CDRouter tests start. Fixes: PPW-1629 Signed-off-by: Petr Štetiar --- .gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh b/.gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh index a5ce0f64ac..2660bb9c23 100755 --- a/.gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh +++ b/.gitlab/scripts/dut-init/cdrouter-dut-flush-dns-relay-cache.sh @@ -1,4 +1,5 @@ #!/bin/bash ssh "root@$TARGET_LAN_IP" "ubus -t 180 wait_for DNS.Relay.Config.1" +ssh "root@$TARGET_LAN_IP" "ba-cli 'DNS.Relay.Config.[Alias==\"lo\"].FlushCache()'" ssh "root@$TARGET_LAN_IP" "ba-cli 'DNS.Relay.Config.[Alias==\"lan\"].FlushCache()'"