From d549ece3b2926061aeaafa9636228f53f0715373 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Thu, 17 Nov 2016 16:09:10 +0100 Subject: [PATCH] Extend logging for unschedulable nodes --- test/e2e/framework/util.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index a950abd34d0..61a67b30205 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2456,6 +2456,15 @@ func WaitForAllNodesSchedulable(c clientset.Interface, timeout time.Duration) er // won't install correctly), so we can't expect them to be ready at any point. // // However, we only allow non-ready nodes with some specific reasons. + if len(notSchedulable) > 0 { + Logf("Unschedulable nodes:") + for i := range notSchedulable { + Logf("-> %s Ready=%t Network=%t", + notSchedulable[i].Name, + IsNodeConditionSetAsExpected(notSchedulable[i], api.NodeReady, true), + IsNodeConditionSetAsExpected(notSchedulable[i], api.NodeNetworkUnavailable, false)) + } + } if len(notSchedulable) > TestContext.AllowedNotReadyNodes { return false, nil }