From 68cc80f611a6330c049d8aa3648e4a98f47c180f Mon Sep 17 00:00:00 2001 From: CoreOS Bot Date: Wed, 18 Aug 2021 21:41:46 +0000 Subject: [PATCH] tree: import changes from testing-devel at 837c91fad5409bfae59aacb22bd729fe951d0049 --- tests/kola/misc-ign-ro/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kola/misc-ign-ro/test.sh b/tests/kola/misc-ign-ro/test.sh index 24728c720c..3713c864ea 100755 --- a/tests/kola/misc-ign-ro/test.sh +++ b/tests/kola/misc-ign-ro/test.sh @@ -49,6 +49,12 @@ ok "kube-watch.path successfully activated" touch /etc/kubernetes/kubeconfig ok "successfully created /etc/kubernetes/kubeconfig" +# If we check the status too soon it could still be activating.. +# Sleep in a loop until it's done "activating" +while [ "$(systemctl is-active kube-watch.service)" == "activating" ]; do + echo "kube-watch is activating. sleeping for 1 second" + sleep 1 +done if [ "$(systemctl is-active kube-watch.service)" != "active" ]; then fatal "kube-watch.service did not successfully activate" fi