Extend logging for kubemark failures debugging

pull/6/head
Wojciech Tyczynski 2016-09-30 08:31:33 +02:00
parent 448ceb3881
commit 3215e8535a
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