diff --git a/test/e2e/node/pods.go b/test/e2e/node/pods.go index 71bdfc90f48..f63fb7885c8 100644 --- a/test/e2e/node/pods.go +++ b/test/e2e/node/pods.go @@ -17,6 +17,7 @@ limitations under the License. package node import ( + "encoding/json" "net/http" "strconv" "time" @@ -108,6 +109,7 @@ var _ = SIGDescribe("Pods Extended", func() { ginkgo.By("verifying the kubelet observed the termination notice") + start := time.Now() err = wait.Poll(time.Second*5, time.Second*30, func() (bool, error) { podList, err := e2ekubelet.GetKubeletPods(f.ClientSet, pod.Spec.NodeName) if err != nil { @@ -122,6 +124,8 @@ var _ = SIGDescribe("Pods Extended", func() { framework.Logf("deletion has not yet been observed") return false, nil } + data, _ := json.Marshal(kubeletPod) + framework.Logf("start=%s, now=%s, kubelet pod: %s", start, time.Now(), string(data)) return false, nil } framework.Logf("no pod exists with the name we were looking for, assuming the termination request was observed and completed")