]> 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>
Tue, 29 Sep 2015 07:12:14 +0000 (07:12 +0000)
commit6b7794a0d7c7a9eb76424eb2f7bd259d4f6ab0aa
tree1a2f3918b004c1cf32979d9cfa320a1ecaa10f9f
parent24451969ecc2439bc0f76f14ac2305478185c8f4
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
(cherry picked from commit e28e87258351c4c0d261d7c04ce495ef73e1520c)
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/rest_client.py