From eccea9fa05c019fa9281858cdb5ce297fac21d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 17 Oct 2019 18:00:52 +0200 Subject: [PATCH] ci: more debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we give up on waiting for the pod to be running which describe it to see what's wrong. Signed-off-by: Sébastien Han --- tests/framework/utils/k8s_helper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/framework/utils/k8s_helper.go b/tests/framework/utils/k8s_helper.go index e33cb4b1a..84488d0b4 100644 --- a/tests/framework/utils/k8s_helper.go +++ b/tests/framework/utils/k8s_helper.go @@ -597,6 +597,8 @@ func (k8sh *K8sHelper) IsPodRunning(name string, namespace string) bool { logger.Infof("waiting for pod %s in namespace %s to be running", name, namespace) } + pod, _ := k8sh.Clientset.CoreV1().Pods(namespace).Get(name, getOpts) + k8sh.PrintPodDescribe(namespace, pod.Name) logger.Infof("Giving up waiting for pod %s in namespace %s to be running", name, namespace) return false }