]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix update Huawei driver issue
authorWilson Liu <liuxinguo@huawei.com>
Thu, 24 Sep 2015 10:05:11 +0000 (18:05 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Tue, 29 Sep 2015 03:30:52 +0000 (11:30 +0800)
commitd93ca8b7f888a54004825542924280608e62f689
tree30faee4aeec569725ff041bc250e90f12d049936
parent78cd21b1c9c429792024596f608c6a6d5d583fa2
Fix update Huawei driver issue

If a volume is created with old version of Huawei driver,
there is no pool info related to the volume, but the new
version of Huawei driver assumes that the volume have the
pool info and will read the pool info from the volume,
and then the read fails. This will happen when we call
create_volume_from_snapshot() in new version of Huawei
driver when the volume is created by old version of Huawei
driver.

Closes-bug: #1499251
Change-Id: I296f6354340e1a3698d8a284c9aa2a444c73771d
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/huawei_utils.py