aboutsummaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorAdheli Tavares <adheli.tavares@est.tech>2024-08-06 12:57:02 +0000
committerGerrit Code Review <gerrit@onap.org>2024-08-06 12:57:02 +0000
commited78bda8e9f46b3f8d86e5beaf810903781fa9d5 (patch)
tree37bc56704659388acd661331a6545892f0014909 /csit
parentf11e6d9815fd739f2241464612fd0b48736f06af (diff)
parent7c61607739278e9a2ad54de073405c90a81855b1 (diff)
Merge "Print the deployment status during timeout in csit"
Diffstat (limited to 'csit')
-rwxr-xr-xcsit/run-k8s-csit.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/csit/run-k8s-csit.sh b/csit/run-k8s-csit.sh
index 6502c348..d8ce6f9d 100755
--- a/csit/run-k8s-csit.sh
+++ b/csit/run-k8s-csit.sh
@@ -366,7 +366,15 @@ wait_for_pods_running() {
elapsed_time=$((current_time - start_time))
if [ "$elapsed_time" -ge "$timeout_seconds" ]; then
- echo "Timed out waiting for all pods to reach 'Running' state."
+ echo "Timed out waiting for the pods to reach 'Running' state."
+ echo "Printing the current status of the deployment before exiting.."
+ kubectl describe pods;
+ echo "------------------------------------------------------------"
+ for pod in "${pending_pods[@]}"; do
+ echo "Logs of the pod $pod"
+ kubectl logs $pod
+ echo "---------------------------------------------------------"
+ done
exit 1
fi