From: Thanh Ha Date: Fri, 19 May 2017 19:40:19 +0000 (-0400) Subject: DO NOT exit on unexpected stack status X-Git-Tag: release/carbon~19 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=commitdiff_plain;h=d14c0165c75eeff07243d0286860b62cd91422fa DO NOT exit on unexpected stack status 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 --- diff --git a/jjb/opendaylight-infra-stack.sh b/jjb/opendaylight-infra-stack.sh index 45eaae9f4..18766ea46 100644 --- a/jjb/opendaylight-infra-stack.sh +++ b/jjb/opendaylight-infra-stack.sh @@ -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