Merge "CI: increase timeout during server resize"

This commit is contained in:
Zuul 2024-09-27 16:49:50 +00:00 committed by Gerrit Code Review
commit f8459c5076

View File

@ -191,16 +191,17 @@ function resize_instance {
# Confirming the resize operation is not instantaneous. Wait for change to # Confirming the resize operation is not instantaneous. Wait for change to
# be reflected in server status. # be reflected in server status.
local attempt
attempt=1 attempt=1
while [[ $(openstack server show ${name} -f value -c status) != "ACTIVE" ]]; do while [[ $(openstack server show ${name} -f value -c status) != "ACTIVE" ]]; do
echo "Instance is not active yet" echo "Instance is not active yet"
attempt=$((attempt+1)) attempt=$((attempt+1))
if [[ $attempt -eq 5 ]]; then if [[ $attempt -eq 10 ]]; then
echo "FAILED: Instance failed to become active after resize confirm" echo "FAILED: Instance failed to become active after resize confirm"
openstack --debug server show ${name} openstack --debug server show ${name}
return 1 return 1
fi fi
sleep 2 sleep 10
done done
} }