DO NOT exit on unexpected stack status 73/57573/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 19 May 2017 19:40:19 +0000 (15:40 -0400)
committerLuis Gomez <ecelgp@gmail.com>
Fri, 19 May 2017 20:54:22 +0000 (13:54 -0700)
Rackspace seems to be returning NULL status lately on some calls to get
the stack status before returning a valid status in the next call. If we
exit the script it will fail the build too soon.

Change-Id: Ia18938d27a316712e0c20d0703405f4163fe295b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/opendaylight-infra-stack.sh

index 45eaae9f4c5b13ea623af4584aed9b6f568ef597..18766ea46c27ce506db3e83c10af25a7a68356aa 100644 (file)
@@ -78,7 +78,10 @@ for try in $(seq $STACK_RETRIES); do
             ;;
             *)
                 echo "Unexpected status: $OS_STATUS"
-                exit 1
+                # DO NOT exit on unexpected status. Rackspace sometimes returns unexpected status
+                # before returning an expected status. Just print the message and loop until we have
+                # a confirmed state or timeout.
+                # exit 1
             ;;
         esac
     done