From 7531678a2fc9f0ac28ad8a71bb0047683a02add3 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 7 Dec 2022 14:15:00 +0000 Subject: [PATCH 1/2] Dump server console on failure Dump the console from the server on failure to SSH into the instance. This might give us a breadcrumb to figure out what's going on. Signed-off-by: Stephen Finucane --- server.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.sh b/server.sh index 600b8cc..623b1ed 100755 --- a/server.sh +++ b/server.sh @@ -248,7 +248,9 @@ for driver in "${!drivers[@]}"; do echo "Testing connectivity from the instance ${name}" sleep 20 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 - From 9b184ecbd514937a77c43c003ce441601b0ab3fd Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 7 Dec 2022 14:15:49 +0000 Subject: [PATCH 2/2] Increase timeout What's another 40 seconds between friends? Signed-off-by: Stephen Finucane --- server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.sh b/server.sh index 623b1ed..d035eca 100755 --- a/server.sh +++ b/server.sh @@ -246,7 +246,7 @@ 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. Dumping instance console..." openstack console log show "$name" || true