omni/cinder
Pratik Shah 59af73e47b [AWS] Added a support to create volume from image and volume from volume
Description:
- Changes in 'glance/glance_store/_drivers/aws.py' are required because
when glanceclient tries to retrieve image details, it expects 2 values.
But in the current case, it was yielding a tuple which was throwing
exception as it was getting only 1 value when 'get()' was called

- Added a function "clone_image()" which takes volume details, image
metadata, object of glance service, image location as arguments.

- Steps:
1. get image details from AWS using image id provided in image metadata
and get snapshot id from response. If snapshot id is None, then raise an
exception
2. create a dict object which contains size, zone and snapshot id as
fields
3. call create_volume() with dict created as argument
4. create tags for volume created

Closes-Bug: #1710046

Change-Id: I241e55f45d27e14b7328ae276ec544e5360e1ebd
2017-08-31 12:30:00 +05:30
..
tests/unit/volume/drivers [AWS] Added a support to create volume from image and volume from volume 2017-08-31 12:30:00 +05:30
volume/drivers [AWS] Added a support to create volume from image and volume from volume 2017-08-31 12:30:00 +05:30
README.md Add requirements.txt to nova, glance and cinder driver directiory, 2016-10-26 13:21:39 +02:00
requirements-gce.txt Added Nova Instace Snapshot Operation and security group rules support 2017-06-01 14:42:58 +05:30

README.md

Setup

Prerequesites

  1. Working green field OpenStack deployment.
  2. No prior cinder nodes. This service does not work if cinder backends are already configured.
  3. The virtualenv used by cinder should have Amazon boto package installed

Instructions

  1. Copy source directory (cinder/volume/drivers/aws) to cinder-volume module directory {cinder-volume-root}/cinder/volume/drivers
  2. Update configuration file (cinder.conf) used by cinder-volume service. Set it to volume_driver=cinder.volume.drivers.aws.ebs.EBSDriver
  3. Restart cinder-volume service.