Skip to content
Snippets Groups Projects
Commit 058fd01e authored by Christian Boettcher's avatar Christian Boettcher
Browse files

remove volume from old before adding to new

parent 70aaf0e9
Branches
Tags
No related merge requests found
Pipeline #95808 passed
...@@ -91,6 +91,7 @@ full-deploy-production: ...@@ -91,6 +91,7 @@ full-deploy-production:
- if [ "$server_exists" = true ] ; then - if [ "$server_exists" = true ] ; then
openstack server set --name $OLD_PROD_NAME $OLD_ID; openstack server set --name $OLD_PROD_NAME $OLD_ID;
fi fi
- openstack server remove volume $OLD_ID $VOLUME_ID
- INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group www --security-group https $PRODUCTION_NAME` - INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group www --security-group https $PRODUCTION_NAME`
- while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done # wait until an address is available to attach the floating ip - while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done # wait until an address is available to attach the floating ip
- openstack server add floating ip $INSTANCE_ID $PRODUCTION_IP - openstack server add floating ip $INSTANCE_ID $PRODUCTION_IP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment