aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-02 16:47:18 +0000
committerGerrit Code Review <review@openstack.org>2016-02-02 16:47:18 +0000
commitcf232df77fc1285a9471f4255f3d031156c4eb9b (patch)
tree2c62f5ef3bed917205eba495068e44ff6300964f /tools
parente45196e678005e9bdd4881ca43ef8f11c3230882 (diff)
parent7ec170a9ff6efe58afecf4474efa006cf823e181 (diff)
downloadkolla-cf232df77fc1285a9471f4255f3d031156c4eb9b.tar.gz
kolla-cf232df77fc1285a9471f4255f3d031156c4eb9b.zip
Merge "Validate that all the containers are started"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/deploy_aio.sh20
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