From 34c90a40141e6a1e1e918891d11deced7e6a779f Mon Sep 17 00:00:00 2001 From: ZhangKe10140699 Date: Tue, 1 Mar 2022 18:20:47 +0800 Subject: [PATCH] Add pod status info log for e2e creating pods --- test/e2e/framework/pod/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/pod/resource.go b/test/e2e/framework/pod/resource.go index 083d0590300..f38766ef6e8 100644 --- a/test/e2e/framework/pod/resource.go +++ b/test/e2e/framework/pod/resource.go @@ -193,7 +193,7 @@ func podRunningAndReady(c clientset.Interface, podName, namespace string) wait.C } switch pod.Status.Phase { case v1.PodFailed, v1.PodSucceeded: - e2elog.Logf("The status of Pod %s is %s which is unexpected", podName, pod.Status.Phase) + e2elog.Logf("The status of Pod %s is %s which is unexpected, pod status: %#v", podName, pod.Status.Phase, pod.Status) return false, errPodCompleted case v1.PodRunning: e2elog.Logf("The status of Pod %s is %s (Ready = %v)", podName, pod.Status.Phase, podutils.IsPodReady(pod))