Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Krish Moodbidri
Terraform Openstack
Commits
2f00c042
Commit
2f00c042
authored
1 year ago
by
Eesaan Atluri
Browse files
Options
Downloads
Patches
Plain Diff
Remove references to staging in production-deploy job
parent
94d662fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-8
8 additions, 8 deletions
.gitlab-ci.yml
with
8 additions
and
8 deletions
.gitlab-ci.yml
+
8
−
8
View file @
2f00c042
...
@@ -140,20 +140,20 @@ production-deploy:
...
@@ -140,20 +140,20 @@ production-deploy:
-
openstack server remove volume $prod_instance_id $prod_volume
-
openstack server remove volume $prod_instance_id $prod_volume
-
openstack server stop $prod_instance_id
-
openstack server stop $prod_instance_id
-
export sta
ging
_volume=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}')
-
export
in
sta
nce
_volume=$(openstack server show $instance_id -c volumes_attached -f value | awk -F"'" '{print $4}')
-
echo "Detaching sta
ging
_volume_id=${sta
ging
_volume} from
staging_
instance
_id
=${instance_id}"
-
echo "Detaching
in
sta
nce
_volume_id=${
in
sta
nce
_volume} from
new
instance=${instance_id}"
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$sta
ging
_floating_ip sudo systemctl stop mariadb
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$
in
sta
nce
_floating_ip sudo systemctl stop mariadb
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$sta
ging
_floating_ip sudo umount /var/lib/mysql && df -h
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$
in
sta
nce
_floating_ip sudo umount /var/lib/mysql && df -h
-
openstack server remove volume $instance_id $sta
ging
_volume
-
openstack server remove volume $instance_id $
in
sta
nce
_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
newly deployed
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
-
openstack volume create --snapshot xdmod-prod-data-vol-snapshot-$BUILD_DATE --size 150 xdmod-prod-vol-$BUILD_DATE
-
openstack volume create --snapshot xdmod-prod-data-vol-snapshot-$BUILD_DATE --size 150 xdmod-prod-vol-$BUILD_DATE
-
openstack server add volume $instance_id xdmod-prod-vol-$BUILD_DATE --device /dev/vdb
-
openstack server add volume $instance_id xdmod-prod-vol-$BUILD_DATE --device /dev/vdb
-
echo "swap the floating IP between prod and
staging
instances"
-
echo "swap the floating IP between prod and
newly deployed
instances"
-
openstack server remove floating ip $prod_instance_id $prod_floating_ip
-
openstack server remove floating ip $prod_instance_id $prod_floating_ip
-
openstack server remove floating ip $instance_id $sta
ging
_floating_ip
-
openstack server remove floating ip $instance_id $
in
sta
nce
_floating_ip
-
openstack server add floating ip $instance_id $prod_floating_ip
-
openstack server add floating ip $instance_id $prod_floating_ip
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo mount /dev/vdb1 /var/lib/mysql
-
ssh -o StrictHostKeyChecking=no $SSH_USERNAME@$prod_floating_ip sudo mount /dev/vdb1 /var/lib/mysql
...
...
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