]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make VNX Cinder Driver aware of VNX Pool Full Threshold
authorJeegn Chen <jeegn.chen@emc.com>
Fri, 10 Apr 2015 06:35:49 +0000 (14:35 +0800)
committerTina <tina.tang@emc.com>
Mon, 8 Jun 2015 02:42:50 +0000 (22:42 -0400)
commit570401f0cbcfd0c69919c269b29d3ec4e93f05f5
tree8090f81ba935bfc21bf9989cf0f59a6ee2173ec8
parent918b3c137c043c225b6e0cd51a6369a0c6b94b7e
Make VNX Cinder Driver aware of VNX Pool Full Threshold

When the full threshold of a pool is exceeded, VNX does not allow
more LUNs to be created in the pool unless -ignoreThresholds is
specified explicitly. The following logic is added to address
the issue.

If reserved_percentage is configured in cinder.conf,
get_volume_stats will simply report the specified value.

Otherwise, the driver will check a new boolean option
ignore_pool_full_threshold.
* If the option is set to False, the pool full threshold will be
considered when calculating reserved_percentage.
* If the option is set to True, original logic is used for
reserved_percentage.

If ignore_pool_full_threshold is True -ignoreThresholds will
be added to force the LUN creation.

DocImpact
Change-Id: Ibc3f04f86b28f703930899de8661aade9e35e169
Closes-Bug: #1430410
Closes-Bug: #1442519
cinder/tests/unit/test_emc_vnxdirect.py
cinder/volume/drivers/emc/emc_vnx_cli.py