]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix way of getting LUN id in Huawei driver
authorliuxinguo <liuxinguo@huawei.com>
Thu, 6 Aug 2015 04:08:54 +0000 (12:08 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Mon, 21 Sep 2015 08:24:36 +0000 (16:24 +0800)
commitd14160e51bb800a0b9153464df42f34370d4b307
tree73a46c5a0fee44d42cabc17bc3993d82b0ade56e
parent351a432f592b42ad30e3c87b6520693b0c5df44a
Fix way of getting LUN id in Huawei driver

Get the LUN id first from the volume['provider_location'],
and only if volume['provider_location'] is None, query the
backend to get the LUN id.

Also change function name "mapping_hostgroup_and_lungroup"
to "do_mapping".

Closes-Bug: #1482030
Change-Id: Ie94ea2284c572e842a64f962cc10b1a2b8145d3c
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/rest_client.py