From a780544f58cc6ccb15cdaaa3cadd07ada2d368bc Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Wed, 15 Mar 2023 22:36:36 +0800 Subject: [PATCH 1/2] add log for kubemark start --- test/kubemark/start-kubemark.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/kubemark/start-kubemark.sh b/test/kubemark/start-kubemark.sh index 275f869efd2..57d4566f04d 100755 --- a/test/kubemark/start-kubemark.sh +++ b/test/kubemark/start-kubemark.sh @@ -183,6 +183,7 @@ function wait-for-hollow-nodes-to-run-or-timeout { # Fail it if it already took more than 30 minutes. if [ $((now - start)) -gt 1800 ]; then echo "" + "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node -o yaml # shellcheck disable=SC2154 # Color defined in sourced script echo -e "${color_red} Timeout waiting for all hollow-nodes to become Running. ${color_norm}" # Try listing nodes again - if it fails it means that API server is not responding From a2cf4e734591903e87195b2ce9f0052db5090992 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Tue, 21 Mar 2023 14:57:12 +0800 Subject: [PATCH 2/2] use describe node to print node events as well --- test/kubemark/start-kubemark.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/kubemark/start-kubemark.sh b/test/kubemark/start-kubemark.sh index 57d4566f04d..273effaf3eb 100755 --- a/test/kubemark/start-kubemark.sh +++ b/test/kubemark/start-kubemark.sh @@ -183,7 +183,7 @@ function wait-for-hollow-nodes-to-run-or-timeout { # Fail it if it already took more than 30 minutes. if [ $((now - start)) -gt 1800 ]; then echo "" - "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" get node -o yaml + "${KUBECTL}" --kubeconfig="${LOCAL_KUBECONFIG}" describe node # shellcheck disable=SC2154 # Color defined in sourced script echo -e "${color_red} Timeout waiting for all hollow-nodes to become Running. ${color_norm}" # Try listing nodes again - if it fails it means that API server is not responding