Avoid getting to "(try 4 of 3)" tries to build the instance (#40)
This commit is contained in:
parent
454fd38526
commit
d47a1602f4
@ -34,10 +34,10 @@ fi
|
|||||||
|
|
||||||
TRIES=0
|
TRIES=0
|
||||||
while [[ $(openstack server list | grep $SERVER | grep ERROR) ]]; do
|
while [[ $(openstack server list | grep $SERVER | grep ERROR) ]]; do
|
||||||
|
TRIES=$(($TRIES + 1))
|
||||||
if test $TRIES -gt 3; then
|
if test $TRIES -gt 3; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
TRIES=$(($TRIES + 1))
|
|
||||||
echo "I ran into an issue launching an instance. Retrying ... (try $TRIES of 3)"
|
echo "I ran into an issue launching an instance. Retrying ... (try $TRIES of 3)"
|
||||||
openstack server delete $SERVER
|
openstack server delete $SERVER
|
||||||
openstack server create --flavor m1.tiny --image cirros --nic net-id=test --key-name microstack $SERVER
|
openstack server create --flavor m1.tiny --image cirros --nic net-id=test --key-name microstack $SERVER
|
||||||
|
Loading…
Reference in New Issue
Block a user