Skip to content

Commit

Permalink
Check container status after deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Hui Kang <kangh@us.ibm.com>
  • Loading branch information
Hui Kang committed Jul 8, 2016
1 parent 11e7241 commit 932d5af
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ci/scale-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ source ovn-scale.conf
OVS_REPO=$1
OVS_BRANCH=$2

function check_container_failure {
sleep 5

docker ps -a
failed_containers=$(docker ps -a --format "{{.Names}}" --filter status=exited)

if [ "$failed_containers" ]; then
for failed in ${failed_containers}; do
docker logs --tail all ${failed}
done
exit 1
fi
}

# Build the docker containers
pushd $OVN_SCALE_TOP
cd ansible/docker
Expand All @@ -31,7 +45,9 @@ fi
popd

# Verify the containers are running
# TODO(mestery): Actually verify everything is connected
check_container_failure

# TODO(mestery): Verifying everything is connected
$OVNSUDO docker exec ovn-south-database ovn-sbctl show

# Create the rally deployment
Expand Down

0 comments on commit 932d5af

Please sign in to comment.