]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Huawei driver add check before use a QoS
authorWilson Liu <liuxinguo@huawei.com>
Wed, 23 Sep 2015 07:04:33 +0000 (15:04 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Tue, 29 Sep 2015 07:13:31 +0000 (07:13 +0000)
commit4d42d496abf25630d1e6bd3ccf8c43ea1b754afb
treeb4567e54c409cd8b6b8238bc3dbc4ebc069e7049
parent24451969ecc2439bc0f76f14ac2305478185c8f4
Huawei driver add check before use a QoS

One QoS in Huawei storage array can contain at most 64 LUNs.
Do a check before adding LUN to QoS, if the number of the
LUNs in the QoS is already equal or larger than 64, then
this QoS should not be used.

Closed-Bug: #1498773
Change-Id: I9dd78cc1378051ded135a885cfc9347d42977311
(cherry picked from commit 32099d547a2bb9c5f21de4592c5bf08272fcb14c)
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/constants.py
cinder/volume/drivers/huawei/rest_client.py