Merge pull request #38820 from jszczepkowski/e2e-not-ready-nodes

Automatic merge from submit-queue (batch tested with PRs 38818, 38813, 38820)

E2E test lib: improved logging of not ready nodes.
This commit is contained in:
Kubernetes Submit Queue 2016-12-15 11:04:21 -08:00 committed by GitHub
commit 32946c5bd0

View File

@ -4010,7 +4010,11 @@ func AllNodesReady(c clientset.Interface, timeout time.Duration) error {
}
if len(notReady) > TestContext.AllowedNotReadyNodes || !allowedNotReadyReasons(notReady) {
return fmt.Errorf("Not ready nodes: %#v", notReady)
msg := ""
for _, node := range notReady {
msg = fmt.Sprintf("%s, %s", msg, node.Name)
}
return fmt.Errorf("Not ready nodes: %#v", msg)
}
return nil
}