Skip to content
Snippets Groups Projects

Fix race condition

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -288,7 +288,6 @@ test_ood_image:
@@ -288,7 +288,6 @@ test_ood_image:
--wait
--wait
$OOD_INSTANCE_NAME)
$OOD_INSTANCE_NAME)
- echo NEW_INSTANCE_ID=$NEW_INSTANCE_ID | tee -a instance.env
- echo NEW_INSTANCE_ID=$NEW_INSTANCE_ID | tee -a instance.env
- sleep 20
- openstack server add floating ip $NEW_INSTANCE_ID $FLOATING_IP
- openstack server add floating ip $NEW_INSTANCE_ID $FLOATING_IP
- >
- >
curl --retry 10 --retry-delay 20 --retry-connrefused https://knightly.rc.uab.edu/Shibboleth.sso/Metadata --resolve knightly.rc.uab.edu:443:$FLOATING_IP -kf
curl --retry 10 --retry-delay 20 --retry-connrefused https://knightly.rc.uab.edu/Shibboleth.sso/Metadata --resolve knightly.rc.uab.edu:443:$FLOATING_IP -kf
@@ -299,6 +298,7 @@ test_ood_image:
@@ -299,6 +298,7 @@ test_ood_image:
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
 
until ssh acctsvc@$FLOATING_IP hostname; do sleep 5; done;
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "etc/auto" | wc -l) -eq 6 ]' || FAILED=true
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "etc/auto" | wc -l) -eq 6 ]' || FAILED=true
fi
fi
- |
- |
Loading