]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes Cinder fails to upload volume to vhd image
authorAdelina Tuvenie <atuvenie@cloudbasesolutions.com>
Thu, 4 Sep 2014 13:00:19 +0000 (16:00 +0300)
committerAdelina Tuvenie <atuvenie@cloudbasesolutions.com>
Thu, 4 Sep 2014 13:11:10 +0000 (16:11 +0300)
commit0e429c71f34c5a7603854171c6843a67c61b9127
tree965e166d231d1fef6729be2580876a90cfc1c893
parent5d742ead09f9d25593d0c4221202e2ba236ed322
Fixes Cinder fails to upload volume to vhd image

The method copy_volume_to_image from windows.py specifies the
wrong volume format, namely 'vpc'. In this case, the upload_volume
method from image_utils will attempt to convert the volume to vhd
which will result in an error from qemu as it does not recognize
the format.

This patch fixes this issue by using 'vhd' as a format when
uploading volumes

Change-Id: Ifa675316e19f9a795e103fd56fcdf4e3ed00aab7
Closes-Bug: #1365487
cinder/tests/windows/test_windows.py
cinder/volume/drivers/windows/windows.py