From 3dd07ba7905005ceb49c00cca9046853e8eebc2f Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Wed, 17 May 2017 16:29:11 -0400 Subject: 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 --- lib/overcloud-deploy-functions.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- cgit 1.2.3-korg