omni/cinder/tests/unit/volume
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
..
drivers [AWS] Added a support to create volume from image and volume from volume 2017-08-31 12:30:00 +05:30