]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Report better capacity info for a limitless 3par cpg
authorGloria Gu <gloria.gu@hp.com>
Wed, 10 Dec 2014 01:56:09 +0000 (17:56 -0800)
committerGloria Gu <gloria.gu@hp.com>
Thu, 11 Dec 2014 01:28:19 +0000 (17:28 -0800)
commit92888e514b37c3ce3c0502e66e183a40da1b4249
tree7236d18b8c22785283ef89a41795a9e156a326f0
parenta7d8fc822912549a39c0c82544b49e2163666573
Report better capacity info for a limitless 3par cpg

This change has the following improvement:

1. Uses getCPGAvailableSpace from hp3parclient to report
free_capapcity for a limitless cpg.

2. Uses cpg's SDUsage.usedMiB + UsrUsage.usedMiB + free_capacity
to calculate the total_capacity for a limitless cpg. This is the
best we can do for a limitless cpg.

Closes-Bug: #1398651
Change-Id: I62f446786360c61288a788be29d1daa6e409c7b1
cinder/tests/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_common.py