]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes cinder volume create on Windows Server 2012 R2
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 8 Apr 2014 15:57:41 +0000 (18:57 +0300)
committerPetrut Lucian <lpetrut@cloudbasesolutions.com>
Sat, 21 Jun 2014 18:02:17 +0000 (18:02 +0000)
commit1f6972f3fdfb87b09c03f3c2c7ab1870d90e0dc2
treebd021ecaf87ebaf61386a34237f7c5a5720d5905
parente6c03e15e8caa957716eabfee047240622ac3bf5
Fixes cinder volume create on Windows Server 2012 R2

Windows Server 2012 R2 does not support vhd images as iSCSI disks,
requiring VHDX images. For this reason, the cinder driver fails to
create volumes. For the moment, the default format is vhd.
On WSS 2012 R2, we should use vhdx images as default.

This patch introduces vhd/vhdx related methods for both v1 and v2
wmi virtualization namespaces.

Closes-Bug: #1299150
Change-Id: I272988dc5b0e3b8129c5e4d3c79bea1c292701c8
cinder/tests/windows/test_vhdutils.py [new file with mode: 0644]
cinder/tests/windows/test_vhdutilsv2.py [new file with mode: 0644]
cinder/tests/windows/test_windows.py [moved from cinder/tests/test_windows.py with 84% similarity]
cinder/tests/windows/test_windows_utils.py [moved from cinder/tests/test_windows_utils.py with 69% similarity]
cinder/volume/drivers/windows/utilsfactory.py [new file with mode: 0644]
cinder/volume/drivers/windows/vhdutils.py [new file with mode: 0644]
cinder/volume/drivers/windows/vhdutilsv2.py [new file with mode: 0644]
cinder/volume/drivers/windows/windows.py
cinder/volume/drivers/windows/windows_utils.py