From 3a0465f89a8a3a6bbb091bf631916d6be1fffc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Mon, 3 Oct 2022 16:49:27 +0200 Subject: [PATCH] [CI] Improve Cinder testing robustness Use the smallest images possible and always wait 5 minutes before declaring a failure. Change-Id: I1a5d623a86a27826b3e36dfe5fb4c55f3d46f3f2 --- tests/test-core-openstack.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-core-openstack.sh b/tests/test-core-openstack.sh index 96ad7dd7a3..d1a607c3fa 100755 --- a/tests/test-core-openstack.sh +++ b/tests/test-core-openstack.sh @@ -21,7 +21,7 @@ function create_a_volume { local attempt - openstack volume create --size 2 $volume_name + openstack volume create --size 1 $volume_name attempt=1 while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do echo "Volume $volume_name not available yet" @@ -41,17 +41,17 @@ function create_a_volume_from_image { local attempt - openstack volume create --image $image_name --size 2 $volume_name + openstack volume create --image $image_name --size 1 $volume_name attempt=1 while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do echo "Volume $volume_name not available yet" attempt=$((attempt+1)) - if [[ $attempt -eq 10 ]]; then + if [[ $attempt -eq 11 ]]; then echo "Volume $volume_name failed to become available" openstack volume show $volume_name return 1 fi - sleep 10 + sleep 30 done }