]> 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>
Thu, 25 Sep 2014 11:17:42 +0000 (16:47 +0530)
commit4be8913520f5e9fe4109ade101da9509e4a83360
tree224eeb79c2a396c49462d60a932390934b5c460f
parent86591a24d48fe19be427b5a8981821fcdb85bb37
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: I3865654e219c05dcec3aaab07c4cee0658fe181e
Closes-Bug: #1301348
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/error_util.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py