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

create vol snapshot

parent 96df7bab
No related branches found
No related tags found
No related merge requests found
Pipeline #9711 failed with stages
in 6 minutes and 5 seconds
...@@ -43,7 +43,7 @@ prep-deploy: ...@@ -43,7 +43,7 @@ prep-deploy:
- openstack image create --container-format bare --disk-format raw --file /tmp/xdmod-dev-volume-snap.raw xdmod-snapshot-image - openstack image create --container-format bare --disk-format raw --file /tmp/xdmod-dev-volume-snap.raw xdmod-snapshot-image
- IMAGE_ID=$(openstack image show -f value -c id xdmod-snapshot-image) - IMAGE_ID=$(openstack image show -f value -c id xdmod-snapshot-image)
- openstack volume create --size 20 --image $IMAGE_ID xdmod-ci-volume - openstack volume create --size 20 --image $IMAGE_ID xdmod-ci-volume
- openstack volume snapshot create --force --volume xdmod-ci-volume xdmod-dev-volume-snap
- | - |
if [ "$TARGET_ENV" = "dev" ]; then if [ "$TARGET_ENV" = "dev" ]; then
TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE" TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE"
......
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