]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Implement retype for VMDK driver
authorVipin Balachandran <vbala@vmware.com>
Fri, 8 Aug 2014 12:50:51 +0000 (18:20 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 17 Sep 2014 06:30:55 +0000 (12:00 +0530)
commit86591a24d48fe19be427b5a8981821fcdb85bb37
tree96ddb54402faf43e51ca030b168e61939230c294
parent2c672d1100ad4f44517838e17156b3ea6300b1cc
VMware: Implement retype for VMDK driver

This patch adds support for retype operation in the VMDK driver.

The VMDK driver uses the extra spec keys 'vmware:vmdk_type' and
'vmware:storage_profile' to determine the disk provisioning type
and storage policy of the backing VM. Currently it is not possible
to change the disk provisioning type or storage policy after volume
creation. With retype support, user can change the disk provisioning
type and storage policy by changing the volume's type to another type
with extra spec keys set to desired values.

Closes-Bug: #1275682
Partial-Bug: #1288254

Change-Id: If4b868af7b91373b2b36fd5cd2f0dda12d604d99
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py