Add pod status info log for e2e creating pods

This commit is contained in:
ZhangKe10140699 2022-03-01 18:20:47 +08:00
parent 77f6476d34
commit 34c90a4014

View File

@ -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))