Fix: Increase cluster creation timeout to 20 89/99189/1
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 5 Jan 2022 02:56:56 +0000 (12:56 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 5 Jan 2022 02:56:56 +0000 (12:56 +1000)
Also increase the interval between create status checks
to 90 seconds to allow enough time before polling
openstack on the health status.

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-3644
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ic30c68bc620122261e06852ac3ae53ff452ddcf0

jjb/packaging/openstack-k8s-create-with-template.sh

index b066750a230a6da73fa699eb1b43373a1bf99506..7513c9f5e59de9804b3bd9509bf27909c070b5c0 100644 (file)
@@ -16,7 +16,7 @@ set -eux -o pipefail
 source ~/lf-env.sh
 lf-activate-venv python-openstackclient python-magnumclient
 
-OS_TIMEOUT=12       # Wait time in minutes for OpenStack cluster to come up.
+OS_TIMEOUT=20       # Wait time in minutes for OpenStack cluster to come up.
 CLUSTER_RETRIES=3   # Number of times to retry creating a cluster.
 CLUSTER_SUCCESSFUL=false
 
@@ -76,7 +76,8 @@ helm_client_url="${helm_client_url}" \
 
     echo "INFO $try: Wait until ${OS_TIMEOUT} (in minutes) to rollout ${cluster_name}."
     for i in $(seq $OS_TIMEOUT); do
-        sleep 60
+        sleep 90
+
         CLUSTER_STATUS=$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)
         echo "$i: ${CLUSTER_STATUS}"