Commit 32946c5b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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.
parents 995f4ef2 ec17af65
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment