Commit 00a203df authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32765 from wojtek-t/extend_kubemark_logs

Automatic merge from submit-queue Extend logging for debugging kubemark problems Ref #32441
parents 6910d403 086f7df0
...@@ -268,9 +268,13 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do ...@@ -268,9 +268,13 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do
# Try listing nodes again - if it fails it means that API server is not responding # Try listing nodes again - if it fails it means that API server is not responding
if "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node &> /dev/null; then if "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node &> /dev/null; then
echo "Found only ${ready} ready Nodes while waiting for ${NUM_NODES}." echo "Found only ${ready} ready Nodes while waiting for ${NUM_NODES}."
exit 1 else
echo "Got error while trying to list Nodes. Probably API server is down."
fi fi
echo "Got error while trying to list Nodes. Probably API server is down." pods=$("${KUBECTL}" get pods --namespace=kubemark) || true
not_running=$(($(echo "${pods}" | grep -v "Running" | wc -l) - 1))
echo "${not_running} HollowNode pods are reported as not running"
echo $(echo "${pods}" | grep -v "Running")
exit 1 exit 1
fi fi
nodes=$("${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node) || true nodes=$("${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node) || true
......
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