Skip to content
Snippets Groups Projects
Commit d725aef6 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Refactor code to unmount and detach the 2 volumes

parent 07b0ad42
No related branches found
No related tags found
3 merge requests!47Integration Testing: Sequential Merge and Validation of Four Feature Branches (PR #43,#44, #45,#46),!43feat: Add new data volume for XDMod queue data,!34feat: Add new data volume for XDMod queue data
Pipeline #9067 failed with stages
in 31 seconds
...@@ -149,7 +149,9 @@ production-deploy: ...@@ -149,7 +149,9 @@ production-deploy:
chmod 700 ~/.ssh chmod 700 ~/.ssh
- ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo systemctl stop mariadb - ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo systemctl stop mariadb
- ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo umount /var/lib/mysql && df -h - ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo umount /var/lib/mysql && df -h
- openstack server remove volume $prod_instance_id $prod_volume - ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo umount /data/xdmod/queues && df -h
- openstack server remove volume $prod_instance_id $prod_volumes[0]
- openstack server remove volume $prod_instance_id $prod_volumes[1]
- openstack server stop $prod_instance_id - openstack server stop $prod_instance_id
# Exporting Staging Volume IDs # Exporting Staging Volume IDs
......
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