Commit 4ac6948a authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #21068 from wojtek-t/fix_kubemark_deadlock

Auto commit by PR queue bot
parents 611a3b9d 519021b9
......@@ -216,10 +216,17 @@ kubectl create -f "${KUBE_ROOT}"/test/kubemark/hollow-node.json --namespace="kub
rm "${KUBECONFIG_SECRET}"
echo "Waiting for all HollowNodes to become Running..."
echo "This can loop forever if something crashed."
start=$(date +%s)
until [[ "$(kubectl --kubeconfig="${KUBE_ROOT}"/test/kubemark/kubeconfig.loc get node | grep Ready | wc -l)" == "${NUM_NODES}" ]]; do
echo -n .
sleep 1
now=$(date +%s)
# Fail it if it already took more than 15 minutes.
if [ $((now - start)) -gt 900 ]; then
echo ""
echo "Timeout waiting for all HollowNodes to become Running"
exit 1
fi
done
echo ""
echo "Password to kubemark master: ${password}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment