DS8000 driver terminates volume connection when there still have volume attached to instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Harsh Ailani |
Bug Description
cinder version: Ussuri 7.0.0
nova version : Ussuri 17.0.0
hypervisor: KVM
the process to reproduce this bug:
1. create a multiattach volume type
2. create 2 instances on same host
3. create a multi-attach volume and attach it to these 2 instances
4. detach the volume from one the instance (the volume still attached to the other instance)
As a result, we can found that the host in storage backend was removed and no more host mapping found.
On KVM compute host, we can see that the path of multipath were all in failed status:
# multipath -l
mpathdd (36005076400838
size=1.0G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy=
| |- 0:0:2:0 sdb 8:16 failed undef running
| |- 1:0:1:0 sdf 8:80 failed undef running
| |- 1:0:0:0 sdg 8:96 failed undef running
| `- 1:0:6:0 sdh 8:112 failed undef running
`-+- policy=
|- 0:0:1:0 sda 8:0 failed undef running
|- 1:0:2:0 sdc 8:32 failed undef running
|- 1:0:7:0 sdd 8:48 failed undef running
`- 1:0:3:0 sde 8:64 failed undef running
The attachment_delete in cinder-volume run as following:
def attachment_
attachment = objects.
try:
if has_shared_
except Exception:
which means cinder will always try to terminate connection even if it is a multi-attach volume.
I look up the driver of LVM, its terminate_
attachments = volume.
if volume.multiattach:
if sum(1 for a in attachments if a.connector and
return len(attachments) > 1
So, I think the cinder-volume suppose the terminate_
As a contrast , I look up the code of DS8000 driver , but there is no specified operations for multiattach volumes.
So when delete the first attachment of the multiattach volume , the connection was terminated, this is not expected.
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: ds8000 kvm multi-attach |
Changed in cinder: | |
assignee: | nobody → Harsh Ailani (haailani) |
SVC driver has same problem reported in this bug: https:/ /bugs.launchpad .net/cinder/ +bug/1941694