mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
kata-deploy: improve debug message, longer cleanup timeout
I am seeing tests fail at times waiting for label cleanup. Let's improve the error message when this fails, and give the control plane a bit more time, to improve stability of this test. Fixes: #846 Signed-off-by: Eric Ernst <eric.ernst@intel.com>
This commit is contained in:
parent
6318f0a40b
commit
bbcffc32b5
@ -50,6 +50,8 @@ function waitForLabelRemoval() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo $(kubectl get pods,nodes --all-namespaces --show-labels)
|
||||||
|
|
||||||
echo "failed to cleanup"
|
echo "failed to cleanup"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
@ -149,9 +151,9 @@ function test_kata() {
|
|||||||
|
|
||||||
# The cleanup daemonset will run a single time, since it will clear the node-label. Thus, its difficult to
|
# The cleanup daemonset will run a single time, since it will clear the node-label. Thus, its difficult to
|
||||||
# check the daemonset's status for completion. instead, let's wait until the kata-runtime labels are removed
|
# check the daemonset's status for completion. instead, let's wait until the kata-runtime labels are removed
|
||||||
# from all of the worker nodes. If this doesn't happen in 45 seconds, let's fail
|
# from all of the worker nodes. If this doesn't happen after 2 minutes, let's fail
|
||||||
timeout=45
|
timeout=20
|
||||||
sleeptime=1
|
sleeptime=6
|
||||||
waitForLabelRemoval $timeout $sleeptime
|
waitForLabelRemoval $timeout $sleeptime
|
||||||
|
|
||||||
kubectl delete -f kata-cleanup.yaml
|
kubectl delete -f kata-cleanup.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user