]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
XenAPINFS: Copy image from glance
authorMate Lakat <mate.lakat@citrix.com>
Fri, 25 Jan 2013 14:44:08 +0000 (14:44 +0000)
committerMate Lakat <mate.lakat@citrix.com>
Tue, 5 Feb 2013 18:34:15 +0000 (18:34 +0000)
commita84c910c4e4fe3e60c5fc0e8d82658e8ec8bfd1a
tree43b119f243b36cab35cdc41db3e9028ddf06427d
parent4bfd8cee7da9ecbc4c00b41525711895aa815bdf
XenAPINFS: Copy image from glance

related to blueprint xenapinfs-glance-integration

This change is using the glance xenapi plugin to copy a glance image to
a xenapinfs backed volume. It slightly differs from the reference
implementation, as this implementation is composed of three steps:
- create volume
- overwrite the created volume with the one downloaded from glance
- resize the volume
As opposed to fill the bytes from glance to the created image. This
approach works more effective with XenServer type semi ovf tgz -ed vhds.

Change-Id: I2345f6bb355aa285eee0455380c580e4724f004e
cinder/exception.py
cinder/tests/test_xenapi_sm.py
cinder/volume/drivers/xenapi/lib.py
cinder/volume/drivers/xenapi/sm.py
cinder/volume/manager.py