]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Report *real* free capacity in Huawei driver
authorWilson Liu <liuxinguo@huawei.com>
Thu, 24 Sep 2015 08:52:31 +0000 (16:52 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Mon, 28 Sep 2015 11:01:15 +0000 (19:01 +0800)
commite28e87258351c4c0d261d7c04ce495ef73e1520c
tree2058ce8300c6eeb4bb49d30bdf586abf9a7f1f19
parent831b8c07469b0bec13319cc18e0ca8c41ff331fb
Report *real* free capacity in Huawei driver

When we query capacity of a storage pool on Huawei storage,
there are two items in the result: one is "USERFREECAPACITY"
and the another one is "DATASPACE". In fact the "DATASPACE"
is the *real* space we can use to create LUN, the
"USERFREECAPACITY" contains some metadata that we can not use
to store user data.

Closes-Bug: #1499227
Change-Id: I34a8c67dea2a7b7f5a2a693a65c9303b2cc3d972
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/rest_client.py