From 79c96beaf351d01cbf45f4c33881d516fe40f846 Mon Sep 17 00:00:00 2001 From: Alejandro Gullon Date: Wed, 2 Sep 2026 12:51:14 +0200 Subject: [PATCH 1/2] NO-ISSUE: Restart openvswitch after OVN cleanup in microshift-cleanup-data The cleanup script stops ovsdb-server but does not restart the openvswitch service, leaving ovs-vswitchd running without its database. This stale OVS state prevents OVN from reinitializing when MicroShift is restarted, causing all pods to get stuck in FailedCreatePodSandBox. Co-Authored-By: Claude Opus 4.6 (1M context) pre-commit.check-secrets: ENABLED --- scripts/microshift-cleanup-data.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/microshift-cleanup-data.sh b/scripts/microshift-cleanup-data.sh index 2144d0e87c..72b546fcb4 100755 --- a/scripts/microshift-cleanup-data.sh +++ b/scripts/microshift-cleanup-data.sh @@ -107,6 +107,11 @@ function clean_processes() { for pname in conmon pause ovn-controller ovn-northd ; do pkill -9 --exact ${pname} || true done + # OVS must be restarted to clear stale flow state left by the + # stopped ovsdb-server, otherwise OVN cannot reinitialize on + # the next MicroShift start. + echo Restarting openvswitch service + systemctl restart openvswitch.service 2>/dev/null || true fi } From fd398bb9f0bb659584f413483b1ed06e590333da Mon Sep 17 00:00:00 2001 From: Alejandro Gullon Date: Wed, 2 Sep 2026 12:51:33 +0200 Subject: [PATCH 2/2] NO-ISSUE: Use .example TLD instead of .local in hostname test The .local TLD is reserved for mDNS (RFC 6762) and can cause DNS interference with OVN initialization on systems with Avahi or systemd-resolved, contributing to healthcheck timeouts after hostname changes. Co-Authored-By: Claude Opus 4.6 (1M context) pre-commit.check-secrets: ENABLED --- test/suites/standard1/hostname.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/suites/standard1/hostname.robot b/test/suites/standard1/hostname.robot index 661341dabe..2cb792b4e8 100644 --- a/test/suites/standard1/hostname.robot +++ b/test/suites/standard1/hostname.robot @@ -13,7 +13,7 @@ Test Tags restart slow *** Variables *** -${NEW_HOSTNAME} microshift.local +${NEW_HOSTNAME} microshift-test.example ${OLD_HOSTNAME} ${EMPTY} @@ -29,7 +29,7 @@ Verify Local Host Name Should Contain ${hostname} standard Verify Local Host Name Resolution - [Documentation] Verify correct host name resolution through mDNS + [Documentation] Verify MicroShift restarts correctly after a hostname change [Setup] Configure New Hostname Named Deployment Should Be Available router-default timeout=${DEFAULT_WAIT_TIMEOUT} ns=openshift-ingress