Added updated mysql tarball, and updated tests.
Updated the mysql tarball, which has the localhost -> 10.20.20.1 update. Test for pinging Internet was failing due to not waiting long enough, so added a proper retry strategy.
This commit is contained in:
parent
6eaf44bbfa
commit
34f962dd97
Binary file not shown.
|
@ -29,18 +29,23 @@ MAX_PINGS=20
|
||||||
until multipass exec $MACHINE -- ping -c 1 $IP &>/dev/null; do
|
until multipass exec $MACHINE -- ping -c 1 $IP &>/dev/null; do
|
||||||
PINGS=$(($PINGS + 1));
|
PINGS=$(($PINGS + 1));
|
||||||
if test $PINGS -gt $MAX_PINGS; then
|
if test $PINGS -gt $MAX_PINGS; then
|
||||||
break
|
echo "Unable to ping machine!";
|
||||||
|
exit 1;
|
||||||
fi
|
fi
|
||||||
done;
|
done;
|
||||||
|
|
||||||
# Verify that we can ping the machine, and ping from the machine to
|
ATTEMPTS=1
|
||||||
# canonical.com (91.189.94.250).
|
MAX_ATTEMPTS=20
|
||||||
# TODO no longer hard code canonical.com's IP address.
|
until multipass exec $MACHINE -- \
|
||||||
multipass exec $MACHINE -- ping -c 1 $IP;
|
|
||||||
sleep 5; # Sometimes the machine is still not quite ready. TODO better wait.
|
|
||||||
multipass exec $MACHINE -- \
|
|
||||||
ssh -oStrictHostKeyChecking=no -i .ssh/id_microstack cirros@$IP -- \
|
ssh -oStrictHostKeyChecking=no -i .ssh/id_microstack cirros@$IP -- \
|
||||||
ping -c 1 91.189.94.250
|
ping -c 1 91.189.94.250; do
|
||||||
|
ATTEMPTS=$(($ATTEMPTS + 1));
|
||||||
|
if test $ATTEMPTS -gt $MAX_ATTEMPTS; then
|
||||||
|
echo "Unable to access Internet from machine!";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
sleep 5
|
||||||
|
done;
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
unset IP
|
unset IP
|
||||||
|
|
Loading…
Reference in New Issue