Skip to content

Commit

Permalink
Wait some until the cluster is queued
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Oct 20, 2023
1 parent 8ba76e4 commit 5868887
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hack/run-functional-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ openstack coe cluster create \
--node-count ${NODE_COUNT} \
k8s-cluster

# Wait for cluster creation to be queued
for i in {1..5}; do
output=$(openstack coe cluster show k8s-cluster 2>&1)
exit_status=$?
if [ $exit_status -eq 0 ]; then
break
else
echo "Error: $output"
sleep 1
fi
done

# Wait for cluster to be "CREATE_COMPLETE".
for i in {1..240}; do
CLUSTER_STATUS=$(openstack coe cluster show k8s-cluster -c status -f value)
Expand Down

0 comments on commit 5868887

Please sign in to comment.