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
pull/6/head
Kubernetes Submit Queue 2016-09-30 06:55:12 -07:00 committed by GitHub
commit a698d490b9
1 changed files with 3 additions and 1 deletions

View File

@ -264,8 +264,10 @@ until [[ "${ready}" -ge "${NUM_NODES}" ]]; do
echo "Got error while trying to list Nodes. Probably API server is down."
fi
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))
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")
exit 1
fi