Skip to content

Commit

Permalink
Merge pull request #64 from huikang/check-container-status
Browse files Browse the repository at this point in the history
Check container status after deployment
  • Loading branch information
mestery authored Jul 12, 2016
2 parents 11e7241 + 932d5af commit 70cf02e
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 70cf02e

Please sign in to comment.