From 1b9a3fd5f89e7f776bd1e2b35a985937b340f9bb Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Mon, 29 Feb 2016 12:19:00 -0800 Subject: [PATCH] Log container logs for failed containers if failedCount > max --- test/e2e/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/util.go b/test/e2e/util.go index fb1dce4207..ff7b8fe7e1 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -1833,6 +1833,8 @@ func (config *RCConfig) start() error { if failedContainers > maxContainerFailures { dumpNodeDebugInfo(config.Client, containerRestartNodes.List()) + // Get the logs from the failed containers to help diagnose what caused them to fail + logFailedContainers(config.Namespace) return fmt.Errorf("%d containers failed which is more than allowed %d", failedContainers, maxContainerFailures) } if len(pods) < len(oldPods) || len(pods) > config.Replicas {