Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
Terraform Openstack
Commits
0bf01341
Commit
0bf01341
authored
1 year ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Improve Volume Naming in Staging Script
parent
d725aef6
No related branches found
No related tags found
3 merge requests
!47
Integration Testing: Sequential Merge and Validation of Four Feature Branches (PR #43,#44, #45,#46)
,
!43
feat: Add new data volume for XDMod queue data
,
!34
feat: Add new data volume for XDMod queue data
Pipeline
#9068
failed with stages
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
with
5 additions
and
5 deletions
.gitlab-ci.yml
+
5
−
5
View file @
0bf01341
...
@@ -155,11 +155,11 @@ production-deploy:
...
@@ -155,11 +155,11 @@ production-deploy:
-
openstack server stop $prod_instance_id
-
openstack server stop $prod_instance_id
# Exporting Staging Volume IDs
# Exporting Staging Volume IDs
-
export staging_volume
1
=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}' | awk 'NR==1')
-
export staging_volume=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}' | awk 'NR==1')
-
export staging_volume
2
=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}' | awk 'NR==2')
-
export staging_
queue_
volume=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}' | awk 'NR==2')
# Logging Information
# Logging Information
-
echo "Detaching staging_volume
1
_id=${staging_volume
1
} and staging_volume
2
_id=${staging_volume
2
} from staging_instance_id=${instance_id}"
-
echo "Detaching staging_volume_id=${staging_volume} and staging_
queue_
volume_id=${staging_
queue_
volume} from staging_instance_id=${instance_id}"
# Stopping MariaDB Service on Staging Instance
# Stopping MariaDB Service on Staging Instance
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$staging_floating_ip sudo systemctl stop mariadb
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$staging_floating_ip sudo systemctl stop mariadb
...
@@ -169,8 +169,8 @@ production-deploy:
...
@@ -169,8 +169,8 @@ production-deploy:
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$staging_floating_ip sudo umount /data/xdmod/queues && df -h
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$staging_floating_ip sudo umount /data/xdmod/queues && df -h
# Removing Volumes from Server
# Removing Volumes from Server
-
openstack server remove volume $instance_id $staging_volume
1
-
openstack server remove volume $instance_id $staging_volume
-
openstack server remove volume $instance_id $staging_volume
2
-
openstack server remove volume $instance_id $staging_
queue_
volume
-
echo "Attach prod volume $xdmod-prod-vol-$BUILD_DATE to staging instance $instance_id"
-
echo "Attach prod volume $xdmod-prod-vol-$BUILD_DATE to staging instance $instance_id"
-
openstack volume snapshot create --volume $prod_volume xdmod-prod-data-vol-snapshot-$BUILD_DATE
-
openstack volume snapshot create --volume $prod_volume xdmod-prod-data-vol-snapshot-$BUILD_DATE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment