From 460935236db9f98bc60c35cb556f200db295adad Mon Sep 17 00:00:00 2001 From: gmarek Date: Mon, 6 Jul 2015 18:26:33 +0200 Subject: [PATCH] Add additional loging to max_pods e2e test --- test/e2e/max_pods.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/e2e/max_pods.go b/test/e2e/max_pods.go index 2ce8ba299d3..ace5dc9f7b3 100644 --- a/test/e2e/max_pods.go +++ b/test/e2e/max_pods.go @@ -100,6 +100,13 @@ var _ = Describe("MaxPods", func() { By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster and trying to start a new one", podsNeededForSaturation)) expectNoError(RunRC(config)) + // Log the amount of pods running in the cluster. + // TODO: remove when test is fixed. + pods, err = c.Pods(api.NamespaceAll).List(labels.Everything(), fields.Set{ + "status.phase": "Running", + }.AsSelector()) + Logf("Observed %v running Pods. Need %v to fully saturate the cluster.", len(pods.Items), totalPodCapacity) + _, err = c.Pods(ns).Create(&api.Pod{ TypeMeta: api.TypeMeta{ Kind: "Pod",