Skip to content

Commit b74e14f

Browse files
Merge pull request #197 from shiftstack/failing-liveliness-checks
Dump console on liveliness check failure
2 parents 44526f3 + 9b184ec commit b74e14f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ for driver in "${!drivers[@]}"; do
246246

247247
if [ "$os_user" != '' ]; then
248248
echo "Testing connectivity from the instance ${name}"
249-
sleep 20
249+
sleep 60
250250
if ! ssh -o ConnectTimeout=30 -o StrictHostKeyChecking=no "$os_user"@"$fip_address" ping -c 1 1.1.1.1; then
251-
echo "Error when running a ping from the instance..."
251+
echo "Error when running a ping from the instance. Dumping instance console..."
252+
openstack console log show "$name" || true
253+
echo "Done"
252254
exit 1
253255
fi
254256
fi
@@ -265,4 +267,3 @@ else
265267
read pause
266268
fi
267269
fi
268-

0 commit comments

Comments
 (0)