From 95165c5d4eef248c2bd34b5525b9c183868f7431 Mon Sep 17 00:00:00 2001 From: Joseph-Irving Date: Tue, 4 Dec 2018 14:28:17 +0000 Subject: [PATCH] fix WaitForAllNodesSchedulable so it logs when cluster size is small --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 970801a8bde..dcca34e3889 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2734,7 +2734,7 @@ func WaitForAllNodesSchedulable(c clientset.Interface, timeout time.Duration) er // However, we only allow non-ready nodes with some specific reasons. if len(notSchedulable) > 0 { // In large clusters, log them only every 10th pass. - if len(nodes.Items) >= largeClusterThreshold && attempt%10 == 0 { + if len(nodes.Items) < largeClusterThreshold || attempt%10 == 0 { Logf("Unschedulable nodes:") for i := range notSchedulable { Logf("-> %s Ready=%t Network=%t Taints=%v",