]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Relocate volume to compliant datastore
authorVipin Balachandran <vbala@vmware.com>
Wed, 27 Aug 2014 14:56:34 +0000 (20:26 +0530)
committerVipin Balachandran <vbala@vmware.com>
Mon, 23 Feb 2015 14:23:01 +0000 (19:53 +0530)
commit3b08782e68db1c7173309924a7eb967976544a8f
treeb1f7fb6de5c1f20e5410bb338d4414df616714c7
parent3becb19a2402d615a901b65a8a52b09bc0c6576a
VMware: Relocate volume to compliant datastore

During attach to a nova instance, the backing VM
corresponding to the volume is relocated only if
the nova instance's ESX host cannot access the
backing's current datastore. The storage profile
is ignored and the volume's virtual disk might
end up in a non-compliant datastore. This patch
fixes the problem by checking storage profile
compliance of the current datastore.

Change-Id: I9f0ed6e179160a51e8c370087e9c903ed28e1728
Closes-Bug: #1301348
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py