Merge pull request #36995 from wojtek-t/extend_logging_for_schedulable_nodes

Automatic merge from submit-queue

Extend logging for unschedulable nodes
This commit is contained in:
Kubernetes Submit Queue 2016-11-18 06:53:55 -08:00 committed by GitHub
commit 4f69d7eda8

View File

@ -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
}