labs: wait for cinder to start
If we don't wait for cinder to start before trying to create a test volume, we risk getting error messages back. Change-Id: I554e97498bcc2ecbbd65ff19b798f8109a275357 Implements: blueprint openstack-training-labs
This commit is contained in:
@@ -104,6 +104,11 @@ sudo service cinder-api restart
|
|||||||
# Verify the Block Storage installation
|
# Verify the Block Storage installation
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
echo "Waiting for cinder to start."
|
||||||
|
until cinder list >/dev/null 2>&1; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
echo "cinder create --display-name labsVolume 1"
|
echo "cinder create --display-name labsVolume 1"
|
||||||
cinder create --display-name labsVolume 1
|
cinder create --display-name labsVolume 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user