Skip to content
Snippets Groups Projects
Commit e4693e8d authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Wait for cinder volume to become available in CI"

parents 33a92b9f e956cd87
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,17 @@ function test_openstack_logged {
if [[ $ACTION = "ceph" ]] || [[ $ACTION == "cinder-lvm" ]]; then
echo "TESTING: Cinder volume attachment"
openstack volume create --size 2 test_volume
attempt=1
while [[ $(openstack volume show test_volume -f value -c status) != "available" ]]; do
echo "Volume not available yet"
attempt=$((attempt+1))
if [[ $attempt -eq 10 ]]; then
echo "Volume failed to become available"
openstack volume show test_volume
return 1
fi
sleep 10
done
openstack server add volume kolla_boot_test test_volume --device /dev/vdb
attempt=1
while [[ $(openstack volume show test_volume -f value -c status) != "in-use" ]]; do
......
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