added connection timeout

This commit is contained in:
pokeeffe-molecula 2022-01-04 21:30:06 -06:00
parent f5b669508b
commit 6c8e309e70

View file

@ -23,7 +23,7 @@ echo "using node ${NODE}"
echo "Waiting for cluster to become available..."
for i in {0..24}
do
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o "StrictHostKeyChecking no" ec2-user@${BASTION} "curl -s http://${NODE}:10101/status"
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o ConnectTimeout=10 -o StrictHostKeyChecking=no ec2-user@${BASTION} "curl -s http://${NODE}:10101/status"
if [ $? -eq 0 ]
then
break
@ -35,7 +35,7 @@ done
# verify featurebase running
echo "Verifying featurebase cluster running..."
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o "StrictHostKeyChecking no" ec2-user@${BASTION} "curl -s http://${NODE}:10101/status"
ssh -A -i ~/.ssh/gitlab-featurebase-ci.pem -o StrictHostKeyChecking=no ec2-user@${BASTION} "curl -s http://${NODE}:10101/status"
if (( $? != 0 ))
then
echo "Featurebase cluster not running"