From: Dan Radez Date: Wed, 17 May 2017 20:29:11 +0000 (-0400) Subject: Add VBMC double check X-Git-Tag: opnfv-5.0.0~137^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=3dd07ba7905005ceb49c00cca9046853e8eebc2f;p=apex.git Add VBMC double check Sometimes the VBMC devices don't all start and stay started This checks that they are all running before starting a deployment Change-Id: I3c69d31549798a5837475d10b8a365bb0e5c9a3d Signed-off-by: Dan Radez --- diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh index 1c5e4d0a..52b2f783 100755 --- a/lib/overcloud-deploy-functions.sh +++ b/lib/overcloud-deploy-functions.sh @@ -330,8 +330,11 @@ EOI DEPLOY_OPTIONS+=" --control-flavor control --compute-flavor compute" if [[ "$virtual" == "TRUE" ]]; then DEPLOY_OPTIONS+=" -e virtual-environment.yaml" - # double check the status of the vbmc devices - # TODO add some validation logic here + echo 'Ensuring Virtual BMC device status' + for i in $(vbmc list | grep down | awk '{ print $2}'); do + vbmc start $i + sleep 5 + done vbmc list fi