diff --git a/server.sh b/server.sh index 600b8cc..d035eca 100755 --- a/server.sh +++ b/server.sh @@ -246,9 +246,11 @@ for driver in "${!drivers[@]}"; do if [ "$os_user" != '' ]; then echo "Testing connectivity from the instance ${name}" - sleep 20 + sleep 60 if ! ssh -o ConnectTimeout=30 -o StrictHostKeyChecking=no "$os_user"@"$fip_address" ping -c 1 1.1.1.1; then - echo "Error when running a ping from the instance..." + echo "Error when running a ping from the instance. Dumping instance console..." + openstack console log show "$name" || true + echo "Done" exit 1 fi fi @@ -265,4 +267,3 @@ else read pause fi fi -