]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMDK:Using host mount info for datastore selection
authorVipin Balachandran <vbala@vmware.com>
Wed, 13 Nov 2013 15:03:39 +0000 (20:33 +0530)
committerVipin Balachandran <vbala@vmware.com>
Thu, 5 Dec 2013 06:50:48 +0000 (12:20 +0530)
commitb85cc49588c9f40e091801af33da8c7575058ec0
tree9c2ed43188574e7c1a6dd8e5d049efb349f2b907
parenta99c0c14e646cc1a0fa93540b98e4b56741f7db2
VMDK:Using host mount info for datastore selection

Currently the VMDK driver picks a datastore for volume creation based
on space utilization. The shadow VM corresponding to the volume is
migrated to a different host and datastore if the volume is attached
to an instance created in a host which cannot access the volume's
current datastore. To reduce these migrations, this fix selects a
datastore which is connected to maximum number of hosts, provided
there is enough space to accommodate the volume. Ties are broken
based on space utilization; datastore with low space utilization
is preferred.

Closes-Bug: #1250816
Change-Id: I5ecf22d782857fca0889799229465c49afe188a0
cinder/tests/test_vmware_vmdk.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py