From f837b6166d8fb0a684906d64cca0dea93b71caaf Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Tue, 13 Oct 2015 13:38:08 +0200 Subject: [PATCH] Extend logging for #15540 --- test/e2e/util.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index 185e2972ad..8c1c98b747 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -1400,9 +1400,11 @@ func RunRC(config RCConfig) error { } if oldRunning != config.Replicas { - if pods, err := config.Client.Pods(api.NamespaceAll).List(labels.Everything(), fields.Everything()); err == nil { + // List only pods from a given replication controller. + if pods, err := config.Client.Pods(api.NamespaceAll).List(label, fields.Everything()); err == nil { + for _, pod := range pods.Items { - Logf("Pod %s\t%s\t%s\t%s", pod.Namespace, pod.Name, pod.Spec.NodeName, pod.DeletionTimestamp) + Logf("Pod %s\t%s\t%s\t%s", pod.Name, pod.Spec.NodeName, pod.Status.Phase, pod.DeletionTimestamp) } } else { Logf("Can't list pod debug info: %v", err)