]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Skip ESX hosts in maintenance mode
authorVipin Balachandran <vbala@vmware.com>
Wed, 26 Aug 2015 11:30:40 +0000 (17:00 +0530)
committerVipin Balachandran <vbala@vmware.com>
Fri, 4 Sep 2015 11:26:03 +0000 (16:56 +0530)
commitea987d3aba36177b0705c8a8c88365ebf4b40c17
tree5625a7d47566d5a19eca8cb58e8a3c95d3504e3f
parent6dba657a2987955248e781ae9df28351ef10420d
VMware: Skip ESX hosts in maintenance mode

Volume creation will fail if the VMDK driver selects
an ESX host in maintenance mode for volume creation.
This may happen even if there are usable ESX hosts
in vCenter. This patch fixes the problem by ignoring
ESX hosts in maintenance mode during volume creation.

Closes-bug: #1492221
Change-Id: I8cb89f95d0411ea2140e3107941d4e5e04a0156d
cinder/tests/unit/test_vmware_datastore.py
cinder/tests/unit/test_vmware_vmdk.py
cinder/tests/unit/test_vmware_volumeops.py
cinder/volume/drivers/vmware/datastore.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py