Skip to content
Snippets Groups Projects
Commit 3a0465f8 authored by Radosław Piliszek's avatar Radosław Piliszek Committed by Dr. Jens Harbott
Browse files

[CI] Improve Cinder testing robustness

Use the smallest images possible and always wait 5 minutes before
declaring a failure.

Change-Id: I1a5d623a86a27826b3e36dfe5fb4c55f3d46f3f2
parent df73e3ab
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ function create_a_volume { ...@@ -21,7 +21,7 @@ function create_a_volume {
local attempt local attempt
openstack volume create --size 2 $volume_name openstack volume create --size 1 $volume_name
attempt=1 attempt=1
while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do
echo "Volume $volume_name not available yet" echo "Volume $volume_name not available yet"
...@@ -41,17 +41,17 @@ function create_a_volume_from_image { ...@@ -41,17 +41,17 @@ function create_a_volume_from_image {
local attempt local attempt
openstack volume create --image $image_name --size 2 $volume_name openstack volume create --image $image_name --size 1 $volume_name
attempt=1 attempt=1
while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do while [[ $(openstack volume show $volume_name -f value -c status) != "available" ]]; do
echo "Volume $volume_name not available yet" echo "Volume $volume_name not available yet"
attempt=$((attempt+1)) attempt=$((attempt+1))
if [[ $attempt -eq 10 ]]; then if [[ $attempt -eq 11 ]]; then
echo "Volume $volume_name failed to become available" echo "Volume $volume_name failed to become available"
openstack volume show $volume_name openstack volume show $volume_name
return 1 return 1
fi fi
sleep 10 sleep 30
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment