Fix wait loop for when stack delete failes 47/23047/1
authorGary Wu <gary.i.wu@huawei.com>
Thu, 9 Nov 2017 23:44:38 +0000 (15:44 -0800)
committerGary Wu <gary.i.wu@huawei.com>
Thu, 9 Nov 2017 23:44:38 +0000 (15:44 -0800)
Change-Id: Ie564579d9ebf269553c88da5308abb9d28a6b50c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
test/ete/scripts/deploy-onap.sh

index 5c46785..90393cf 100755 (executable)
@@ -13,7 +13,7 @@ if [ ! -z "${STACKS}" ]; then
     echo "Deleting Stacks ${STACKS}"
     openstack stack delete -y $STACKS
     for STACK in ${STACKS}; do
-        until ! openstack stack show -c stack_status -f value $STACK; do
+        until [ "DELETE_IN_PROGRESS" != "$(openstack stack show -c stack_status -f value $STACK)" ]; do
             sleep 30
         done
     done