storwize SVC driver fails to map volume to host when SCSI IDs are not contiguous
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Avishay Traeger |
Bug Description
When multiple cinder volumes are attached to VM and detach/deleted in a different order
of creation/attatch, the SCSI ID for vdisk mapping may not be contiguous any more. The _map_vol_to_host()
function in storwize_driver.py may map a vdisk with an in-use SCSI ID which will cause nova
volume-attach to fail.
In the case of existing vdisk host mapping with the following SCSI ID: [0,1,2,3,4,5,7,8],
_map_vol_to_host() will use SCSI ID 7 to map a vdisk to host. It failed the mkvdiskhostmap command:
Command: mkvdiskhostmap -host b02 -scsi 7 vol-b629539b-
Exit code: 1
Stdout: ''
Stderr: 'CMMVC5879E The VDisk-to-host mapping was not created because a VDisk is already mapped to this host with this SCSI LUN
Changed in cinder: | |
status: | New → Confirmed |
assignee: | nobody → Avishay Traeger (avishay-il) |
importance: | Undecided → High |
tags: | added: drivers folsom-backport-potential storwize-svc |
Changed in cinder: | |
milestone: | none → grizzly-rc2 |
Changed in cinder: | |
milestone: | grizzly-rc2 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/24761
Review: https:/