Commit ec17af65 authored by Jerzy Szczepkowski's avatar Jerzy Szczepkowski

E2E test lib: improved logging of not ready nodes.

E2E test lib: improved logging of not ready nodes.
parent bb41d770
......@@ -4011,7 +4011,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