diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-02 16:47:18 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-02 16:47:18 +0000 |
| commit | cf232df77fc1285a9471f4255f3d031156c4eb9b (patch) | |
| tree | 2c62f5ef3bed917205eba495068e44ff6300964f | |
| parent | e45196e678005e9bdd4881ca43ef8f11c3230882 (diff) | |
| parent | 7ec170a9ff6efe58afecf4474efa006cf823e181 (diff) | |
| download | kolla-cf232df77fc1285a9471f4255f3d031156c4eb9b.tar.gz kolla-cf232df77fc1285a9471f4255f3d031156c4eb9b.zip | |
Merge "Validate that all the containers are started"
| -rwxr-xr-x | tools/deploy_aio.sh | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh index 9ca10164b..63b841fd6 100755 --- a/tools/deploy_aio.sh +++ b/tools/deploy_aio.sh @@ -5,13 +5,18 @@ set -o errexit export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -function print_failure { +function check_failure { docker ps -a - for failed in $(docker ps -a --format "{{.Names}}" --filter status=exited); do - docker logs --tail=all $failed + failed_containers=$(docker ps -a --format "{{.Names}}" --filter status=exited) + + for failed in ${failed_containers}; do + docker logs --tail all ${failed} done - echo "FAILED" - exit 1 + + if [[ -n ${failed_containers} ]]; then + echo 'FAILED' + exit 1 + fi } # Populate globals.yml @@ -29,9 +34,8 @@ EOF ip l a fake_interface type dummy # Actually do the deployment -tools/kolla-ansible deploy || print_failure +tools/kolla-ansible deploy -# TODO(SamYaple): Actually validate that all containers are started -docker ps -a +check_failure # TODO(SamYaple): Actually do functional testing of OpenStack |
