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:
parent
a98628453b
commit
6190411d19
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user