From d14c0165c75eeff07243d0286860b62cd91422fa Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 19 May 2017 15:40:19 -0400 Subject: [PATCH] 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 --- jjb/opendaylight-infra-stack.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.36.6