labs: wait for neutron to start

If we don't wait for neutron to start before creating networks, said
creation may fail.

Change-Id: I8d09a89d9f728f377987806d49eec37986641721
Implements: blueprint openstack-training-labs
This commit is contained in:
Roger Luethi 2014-08-23 18:13:46 +02:00
parent 52c763d507
commit b44f293fa5
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,11 @@ indicate_current_auto
# Create the external network and a subnet on it.
#------------------------------------------------------------------------------
echo "Waiting for neutron to start."
until neutron net-list >/dev/null 2>&1; do
sleep 1
done
echo "Creating the external network."
neutron net-create ext-net --shared --router:external=True

View File

@ -12,6 +12,11 @@ indicate_current_auto
#
#------------------------------------------------------------------------------
echo "Waiting for neutron to start."
until neutron net-list >/dev/null 2>&1; do
sleep 1
done
echo "Creating the tenant network."
neutron net-create demo-net