]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
XenAPINFS: Fix Volume always uploaded as vhd/ovf
authorMate Lakat <mate.lakat@citrix.com>
Thu, 21 Feb 2013 17:10:42 +0000 (17:10 +0000)
committerMate Lakat <mate.lakat@citrix.com>
Thu, 21 Feb 2013 17:58:17 +0000 (17:58 +0000)
commitedbfe4c78cca6c4dd8b8a164de86b1fa4c210ab9
treef8d6bf17912cb3064b568f169b34d6b3eb2d3323
parent03fcb0616835f7b2c8a1133bd2e87014a59cc886
XenAPINFS: Fix Volume always uploaded as vhd/ovf

Fixes bug 1131291

copy_volume_to_image was always using the glance plugin to do the
upload, and was ignoring the users request. Thus the image was always
uploaded as vhd/ovf. This patch is using the image utils to fix the
generic case.

Change-Id: If12c3d175b3d4437305ac4d2f954a2a42ee3a3c1
cinder/tests/test_xenapi_sm.py
cinder/volume/drivers/xenapi/sm.py