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

upload image to glance and then create vol from that image

parent a992f031
No related branches found
No related tags found
1 merge request!44WIP: Feat vol download from s3
......@@ -40,7 +40,10 @@ prep-deploy:
- apt-get install -y awscli
- s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://xdmod-vol/ /tmp
- ls -l /tmp
- openstack volume create --size 20 --image /tmp/xdmod-dev-volume-snap.raw xdmod-ci-volume
- 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
- |
if [ "$TARGET_ENV" = "dev" ]; then
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