From 6190411d199b8c2e03c3a8d684a219ea99782737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Fri, 11 Dec 2015 16:41:57 +0900 Subject: [PATCH] Improve ansible deployment failure reporting Change-Id: I73395afa2a2d8f3dc835e010e3b1959ec725da2a Closes-Bug: #1525102 Co-Authored-By: Paul Bourke --- tests/deploy_aio.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/deploy_aio.sh b/tests/deploy_aio.sh index 2d76aca8d0..e82bb5233c 100755 --- a/tests/deploy_aio.sh +++ b/tests/deploy_aio.sh @@ -7,7 +7,9 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" function print_failure { docker ps -a - docker logs bootstrap_keystone + for failed in $(docker ps -a --format "{{.Names}}" --filter status=exited); do + docker logs --tail=all $failed + done echo "FAILED" exit 1 }