]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
vmware:Ignore inaccessible/inMaintenance datastore
authorVipin Balachandran <vbala@vmware.com>
Fri, 14 Mar 2014 12:20:27 +0000 (17:50 +0530)
committerVipin Balachandran <vbala@vmware.com>
Fri, 14 Mar 2014 12:47:40 +0000 (18:17 +0530)
commit36b5782dea6d0e627c65c73dbfee39d55dbee318
treee731c88b4fe154414b32cb00923def8f45900d1d
parent9046e6ee82db8f63b50e2ccaba0698d42dbe90f6
vmware:Ignore inaccessible/inMaintenance datastore

The vmdk driver uses the number of hosts connected to a datastore as one
of the criteria for selecting a datastore for volume creation. It might
incorrectly consider a host to which the datastore is inaccessible while
computing the number of connected hosts. This is because, the driver
sometimes uses the aggregated accessible status of a datastore while
determining its accessibility to a host. Also, the driver is ignoring
the maintenance status of the datastore and might create a volume in a
datastore which is entering maintenance or already in maintenance. This
change fixes these issues in datastore filtering.

Change-Id: Ibd5c1865d42638a735fd588e9c10e8f714c9c030
Closes-Bug: #1291346
Closes-Bug: #1291291
cinder/tests/test_vmware_volumeops.py
cinder/volume/drivers/vmware/volumeops.py