Browse Source

Avoid getting to "(try 4 of 3)" tries to build the instance (#40)

configure-hook
Chris Morgan 3 years ago
committed by Pete Vander Giessen
parent
commit
d47a1602f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/launch/launch.sh

+ 1
- 1
src/launch/launch.sh View File

@ -34,10 +34,10 @@ fi
TRIES=0
while [[ $(openstack server list | grep $SERVER | grep ERROR) ]]; do
TRIES=$(($TRIES + 1))
if test $TRIES -gt 3; then
break
fi
TRIES=$(($TRIES + 1))
echo "I ran into an issue launching an instance. Retrying ... (try $TRIES of 3)"
openstack server delete $SERVER
openstack server create --flavor m1.tiny --image cirros --nic net-id=test --key-name microstack $SERVER


Loading…
Cancel
Save