nixos/rancher: wait for all nodes to be ready in multi node test

Without waiting, the rollout of the test daemonset may succeed
pre-maturely because only nodes that are ready are considered for
rollout.
This commit is contained in:
Robert Rose
2026-05-06 10:17:07 +02:00
parent 4c3f30e735
commit ec5b233eb9
+5
View File
@@ -222,6 +222,11 @@ in
# Also wait for our service account to show up; it takes a sec
server.wait_until_succeeds("kubectl get serviceaccount default")
# Wait for all nodes to be ready
server.succeed("kubectl wait --timeout=-1s --for=condition=Ready node/server")
server.succeed("kubectl wait --timeout=-1s --for=condition=Ready node/server2")
server.succeed("kubectl wait --timeout=-1s --for=condition=Ready node/agent")
# Now create a pod on each node via a daemonset and verify they can talk to each other.
server.succeed("kubectl apply -f ${networkTestDaemonset}")
server.wait_until_succeeds("kubectl rollout status daemonset test")