]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VNX Cinder Driver should report 0 free_capacity_gb in some scenarios
authorJeegn Chen <jeegn.chen@emc.com>
Thu, 2 Apr 2015 08:42:08 +0000 (16:42 +0800)
committerJeegn Chen <jeegn.chen@emc.com>
Fri, 10 Apr 2015 06:36:39 +0000 (14:36 +0800)
commita47925b0f936440aad572c53d62cf483e6cac022
treebf3c23036afd3a5aa170c7133243ea66150e86f7
parentc7ca4b95b56539dd560dc88038ab994d50c8394d
VNX Cinder Driver should report 0 free_capacity_gb in some scenarios

When the storage pool is Initializing, Offline or Deleting, no more LUNs
can be created before the pool gets out of the state.
So when a pool is in the 3 states, its free capacity is de facto 0.

This patch is to add logic to report 0 free capacity accordingly.

Change-Id: I4ef56d48e987795a48e6dcb23615e4b2a7580452
Closes-Bug: #1431233
cinder/tests/test_emc_vnxdirect.py
cinder/volume/drivers/emc/emc_vnx_cli.py