]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes cinder volume from image on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 1 Apr 2014 18:55:16 +0000 (21:55 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sat, 21 Jun 2014 18:02:00 +0000 (21:02 +0300)
commite6c03e15e8caa957716eabfee047240622ac3bf5
treebfced8a2acf2c7225a16bcb47f7addb507976b12
parent581d8ada14d2541be6784a730bb3a70ea8d52b9c
Fixes cinder volume from image on Windows

When creating a volume from an image, after the volume is created,
qemu-img is supposed to copy the downloaded image to the volume.
This fails as the disk is enabled and is not accessible.

Also, Windows does not support using dynamic vhds as iSCSI disks
and as qemu-img cannot create fixed vhd images, there must be an
intermediate conversion before importing the disk.

In order to be able to modify an iSCSI disk, it must be disabled
first.

Closes-Bug: #1300906

Change-Id: I726b23287c5b710227288d6215538f01dfb0f979
cinder/image/image_utils.py
cinder/tests/test_windows.py
cinder/tests/test_windows_utils.py [new file with mode: 0644]
cinder/volume/drivers/windows/constants.py [new file with mode: 0644]
cinder/volume/drivers/windows/windows.py
cinder/volume/drivers/windows/windows_utils.py