Improve ansible deployment failure reporting

Change-Id: I73395afa2a2d8f3dc835e010e3b1959ec725da2a
Closes-Bug: #1525102
Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
This commit is contained in:
Martin André 2015-12-11 16:41:57 +09:00
parent a98628453b
commit 6190411d19

View File

@ -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
}