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

No strict host key for MR pipeline

parent 3ddfee95
No related branches found
No related tags found
1 merge request!56Feat check nfs mount
Pipeline #8036 failed with stages
in 21 minutes and 13 seconds
...@@ -149,8 +149,6 @@ test: ...@@ -149,8 +149,6 @@ test:
ssh-add "$SSH_PRIV_KEY" ssh-add "$SSH_PRIV_KEY"
mkdir ~/.ssh mkdir ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
ssh-keyscan $FLOATING_IP >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- OLD_INSTANCE_IP=$(openstack floating ip list --floating-ip-address $CHEAHA_IP -c "Fixed IP Address" -f value) - OLD_INSTANCE_IP=$(openstack floating ip list --floating-ip-address $CHEAHA_IP -c "Fixed IP Address" -f value)
- echo $OLD_INSTANCE_IP - echo $OLD_INSTANCE_IP
- | - |
...@@ -189,9 +187,14 @@ test: ...@@ -189,9 +187,14 @@ test:
- > - >
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
|| FAILED=true || FAILED=true
- > - |
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
|| FAILED=true ssh -o StrictHostKeyChecking=no acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' || FAILED=true
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' || FAILED=true
fi
- | - |
if [ $FAILED ]; then if [ $FAILED ]; then
openstack server delete $NEW_INSTANCE_ID openstack server delete $NEW_INSTANCE_ID
......
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