]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Huawei HVS driver attaching volume error
authorzhangchao010 <zhangchao010@huawei.com>
Wed, 25 Sep 2013 15:31:04 +0000 (23:31 +0800)
committerGerrit Code Review <review@openstack.org>
Sun, 29 Sep 2013 17:54:56 +0000 (17:54 +0000)
commit3be220539a529572f30f3345fe80f2aa572730a3
treeb05e6091cb1e1e22a20d32eb97ee9bfd9923fc78
parent59cb2be6135096487f975924b93b6b8e8adc0dd0
Fix Huawei HVS driver attaching volume error

If iSCSI initiator is not added to host, we will get https errors
for we find the initiator info by sending url with this initiator name.

This patch fixes the way of getting the initiator info.
First, get the all initiator info.
Then, find the one we need by name.

Closes-bug: #1230296
Change-Id: I92620374923fa136ee71fe6eb3af6e4c78a3d66b
cinder/tests/test_huawei_hvs.py
cinder/volume/drivers/huawei/rest_common.py