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

test-volume create without snapshot

parent 967f80e8
No related branches found
No related tags found
1 merge request!44WIP: Feat vol download from s3
......@@ -42,12 +42,11 @@ prep-deploy:
- ls -l /tmp
- 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)
- 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
TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE"
openstack volume create --snapshot xdmod-dev-volume-snap --size 20 $TF_VAR_data_volume
openstack volume create --size 20 --image $IMAGE_ID $TF_VAR_data_volume
elif [ "$TARGET_ENV" = "staging" ]; then
TF_VAR_data_volume="xdmod-staging-volume-$BUILD_DATE"
openstack volume create --snapshot xdmod-staging-vol-snapshot --size 150 $TF_VAR_data_volume
......
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