Huawei FC driver fails to create a volume from a snapshot with Dorado V6 - Bad or unexpected response from the storage volume backend API: Create luncopy error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
huangbingyan |
Bug Description
More specifically with the following Tempest test:
tempest.
- OpenStack Ussuri
- Huawei Dorado 6000 V6
We are testing Cinder Huawei FC driver with Dorado 6000 V6 storage array, and found the following problem. At this point, we are using Ussuri, but we're pretty sure the issue can be reproduced with the latest version of Cinder too since there is no significant update around the code path.
How to reproduce:
1. deploy OpenStack with Cinder
2. integrate Huawei Dorado by writing the config
[[cinder.conf]]
enabled_backends = cinder-huawei
[cinder-huawei]
volume_driver = cinder.
cinder_
volume_backend_name = oceanstor
use_multipath_
enforce_
[[cinder_
<config>
<Storage>
<RestURL>https:/
</Storage>
<LUN>
</LUN>
<FC>
<Initiator Name="None" ALUA="1" FAILOVERMODE="1" PATHTYPE="0" />
</FC>
</config>
3. create a volume
$ openstack volume create --size 10 test-volume
-> confirm status gets "available"
4. create a snapshot
$ openstack volume snapshot create --volume test-volume test-volume-
-> confirm status gets "available"
5. create a new volume from the snapshot
$ openstack volume create --snapshot test-volume-
Expected:
step 5 just works.
Actual:
step 5 fails with the following error as the bottom line:
/var/log/
re-scheduling SchedulerAPI.
and the following API call:
INFO cinder.
Request URL: https:/
Call Method: POST
Request Data: {'TYPE': 219, 'NAME': '17398032-
'1', 'SOURCELUN': 'INVALID;
Response Data:{'data': {}, 'error': {'code': 50331651, 'description': 'The entered parameter is incorrect.', 'suggestion': 'Enter a correct parameter.'}}
summary: |
- Huawei FC driver fails to create a volume from a snapshot - Bad or - unexpected response from the storage volume backend API: Create luncopy - error + Huawei FC driver fails to create a volume from a snapshot with Dorado V6 + - Bad or unexpected response from the storage volume backend API: Create + luncopy error |
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: 6000 dorado driver fc huawei snapshot v6 with |
Changed in cinder: | |
assignee: | nobody → huangbingyan (bingyanh) |
I initially thought 'INVALID; 284;INVALID; INVALID; INVALID' is wrong, but it looks like a red herring since those are actually from the expected function def create_luncopy. /github. com/openstack/ cinder/ blob/086f619cee 654690d66314ac7 92a12c2799022a1 /cinder/ volume/ drivers/ huawei/ rest_client. py#L361- L386
https:/