Commit a698d490 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33832 from wojtek-t/better_kubemark_debugging

Automatic merge from submit-queue Extend logging for kubemark failures debugging Ref https://github.com/kubernetes/kubernetes/issues/33723
parents 91faaa80 3215e853
...@@ -264,8 +264,10 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do ...@@ -264,8 +264,10 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do
echo "Got error while trying to list Nodes. Probably API server is down." echo "Got error while trying to list Nodes. Probably API server is down."
fi fi
pods=$("${KUBECTL}" get pods --namespace=kubemark) || true pods=$("${KUBECTL}" get pods --namespace=kubemark) || true
running=$(($(echo "${pods}" | grep "Running" | wc -l)))
echo "${running} HollowNode pods are reported as 'Running'"
not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1)) not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
echo "${not_running} HollowNode pods are reported as not running" echo "${not_running} HollowNode pods are reported as NOT 'Running'"
echo $(echo "${pods}" | grep -v "Running") echo $(echo "${pods}" | grep -v "Running")
exit 1 exit 1
fi fi
......
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