]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware driver: Fix for invalid datastore selection
authorKartik Bommepally <kbommepally@vmware.com>
Tue, 3 Sep 2013 12:12:33 +0000 (05:12 -0700)
committerKartik Bommepally <kbommepally@vmware.com>
Mon, 16 Sep 2013 12:08:27 +0000 (05:08 -0700)
commit564f8d140fd8a968e55b1aee57200b9f015bee6d
treee53f7eff82870156c8c3494b96d1c1bec5de8d4e
parente34ab12fbf3c06036e8d07dbf702f5c24b5b275c
VMware driver: Fix for invalid datastore selection

Added filter to ignore datastores that are not mounted, in-accessible
and read-only for volume creation. Without this VMware's VC/ESX driver can
choose such datastore with higher invalid capacity value as returned by the
server for volume creation.

Also using parent's self.mox object in the test cases rather than creating
a new mox.Mox obj everytime.

Fixes bug: 1220217

Change-Id: If8319562ddc11fc31eb928b3807aead2b11b94bc
cinder/tests/test_vmware_vmdk.py
cinder/volume/drivers/vmware/volumeops.py