Skip to content

Commit

Permalink
Ignore errors during cluster requeue check
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Oct 23, 2023
1 parent 3eb88aa commit cc04113
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/run-functional-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,18 @@ openstack coe cluster create \
k8s-cluster

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

# Wait for cluster to be "CREATE_COMPLETE".
for i in {1..240}; do
Expand Down

0 comments on commit cc04113

Please sign in to comment.