Allow stack 15 minutes to spawn before giving up 41/50641/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 18 Jan 2017 20:22:39 +0000 (15:22 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 18 Jan 2017 20:22:52 +0000 (15:22 -0500)
Change-Id: I09be14d48fd4c86773866786455638dbbeca5ceb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/opendaylight-infra-stack.sh

index a5418f5c934ea57d82dba8947a5cd41c6cdc9efb..52d450a7162786651ec17d1b84fae711f495c21e 100644 (file)
@@ -9,7 +9,7 @@ cd /builder/openstack-hot
 
 JOB_SUM=`echo $JOB_NAME | sum | awk '{{ print $1 }}'`
 VM_NAME="$JOB_SUM-$BUILD_NUMBER"
-openstack --os-cloud rackspace stack create --wait -t {stack-template} -e $WORKSPACE/opendaylight-infra-environment.yaml --parameter "job_name=$VM_NAME" --parameter "silo=$SILO" $STACK_NAME
+openstack --os-cloud rackspace stack create --wait --timeout 15 -t {stack-template} -e $WORKSPACE/opendaylight-infra-environment.yaml --parameter "job_name=$VM_NAME" --parameter "silo=$SILO" $STACK_NAME
 OS_STATUS=`openstack --os-cloud rackspace stack show -f json -c stack_status $STACK_NAME | jq -r '.stack_status'`
 if [ "$OS_STATUS" != "CREATE_COMPLETE" ]; then
     echo "Failed to initialize infrastructure. Quitting..."