mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 08:17:01 +00:00
tests: increase debug messages for kata-deploy
When the timeout happens we can't tell much information about the nodes. Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
parent
c99ba42d62
commit
3e8b4806b8
@ -72,7 +72,18 @@ setup() {
|
||||
fi
|
||||
|
||||
local cmd="kubectl -n kube-system get -l name=kata-deploy pod 2>/dev/null | grep '\<Running\>'"
|
||||
waitForProcess 240 10 "$cmd"
|
||||
|
||||
if ! waitForProcess 240 10 "$cmd"; then
|
||||
echo "Kata-deploy pod is not running. Printing pod details for debugging:"
|
||||
kubectl -n kube-system get pods -o wide
|
||||
kubectl -n kube-system get pods -l name=kata-deploy -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | while read -r pod; do
|
||||
echo "Describing pod: $pod"
|
||||
kubectl -n kube-system describe pod "$pod"
|
||||
done
|
||||
echo "ERROR: kata-deploy pod is not running, tests will not be execute."
|
||||
echo "ERROR: setup() aborting tests..."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Give some time for the pod to finish what's doing and have the
|
||||
# runtimeclasses properly created
|
||||
|
Loading…
Reference in New Issue
Block a user