Add VBMC double check 11/34911/2
authorDan Radez <dradez@redhat.com>
Wed, 17 May 2017 20:29:11 +0000 (16:29 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 17 May 2017 20:41:10 +0000 (16:41 -0400)
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 <dradez@redhat.com>
lib/overcloud-deploy-functions.sh

index 1c5e4d0..52b2f78 100755 (executable)
@@ -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