mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Extend logging for debugging kubemark problems
This commit is contained in:
parent
6b1565d275
commit
086f7df09a
@ -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
|
||||
if "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node &> /dev/null; then
|
||||
echo "Found only ${ready} ready Nodes while waiting for ${NUM_NODES}."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Got error while trying to list Nodes. Probably API server is down."
|
||||
fi
|
||||
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
|
||||
fi
|
||||
nodes=$("${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node) || true
|
||||
|
Loading…
Reference in New Issue
Block a user