Skip to content
Snippets Groups Projects
Commit 5a68d67e authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'fix-race-condition' into 'main'

Fix race condition

Closes #99

See merge request rc/packer-openstack-hpc-image!85
parents 2e113628 e4206723
No related branches found
No related tags found
1 merge request!85Fix race condition
Pipeline #10564 passed with stages
in 1 hour, 45 minutes, and 19 seconds
...@@ -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
- | - |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment