X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fpackaging%2Fopenstack-k8s-create-with-template.sh;h=291baa4ca1d79369648423c915f10721dc5abce8;hb=9ea56d64081fbdc43541133069cd83f5c6f4b914;hp=b066750a230a6da73fa699eb1b43373a1bf99506;hpb=d4f78d7dde85ec395ac51d7d83fd663ecaff424e;p=releng%2Fbuilder.git diff --git a/jjb/packaging/openstack-k8s-create-with-template.sh b/jjb/packaging/openstack-k8s-create-with-template.sh index b066750a2..291baa4ca 100644 --- a/jjb/packaging/openstack-k8s-create-with-template.sh +++ b/jjb/packaging/openstack-k8s-create-with-template.sh @@ -12,11 +12,17 @@ echo "---> Create K8S cluster with pre-existing template" set -eux -o pipefail + # shellcheck disable=SC1090 -source ~/lf-env.sh -lf-activate-venv python-openstackclient python-magnumclient +. ~/lf-env.sh + +lf-activate-venv --python python3 \ + python-heatclient \ + python-openstackclient \ + urllib3~=1.26.15 \ + yq -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 +82,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}"