Multipath device descriptor and iscsi device not deleted when detaching multiple volumes at the same time at the same host
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | OpenStack Compute (nova) |
Undecided
|
Unassigned | ||
Bug Description
For every detached volume the nova-compute instance deletes all multipath devices from the host while detaching. This is working fine if the volumes are detached each by each, but not for multiple detachment.
Nova-compute always rescans the iscsi devices before it detaches them. The rescan reconnects all missing devices if the Volume is still available on the VNX. In the time between the iscsi devices are deleted and cinder-volume is actually detaching the volume on the vnx site, the iscsi connections will be always reconnected by any rescan. All detachments run into one thread on the host, so the detachment is done one by one. However the detachment on the cinder-volume site is done through multithreading and the nova-compute is not waiting between the detachments for cinder-volume to detach. So it can happen that the device is deleted and the next detachment of the next volume brings back the devices.
The next time a volume is attached to this VM on this host an error will occur. Or if this is working the the volume will stay in use until the VM is terminated. It is not possible to detach the volume again.
Also the information of the volume is not updated for the second detachment. The size stays the same also the new attachment is totally different.
360060160478134
size=4.0G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=2 status=enabled
| |- 7:0:0:3 sdr 65:16 failed ready running
| `- 6:0:0:3 sdq 65:0 failed ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 9:0:0:3 sds 65:32 failed ready running
| Zoltan Arnold Nagy (zoltan) wrote : | #2 |
I've just run into this on Ubuntu 14.04 + Icehouse 2nd point release with the Storwize backend for cinder.
| Zoltan Arnold Nagy (zoltan) wrote : | #3 |
It's even worse in some case, as I have the iSCSI mapped block devices lingering around even tho they don't exist anymore on the store thus anything touching them will hang.
| Changed in nova: | |
| status: | New → Confirmed |
| Changed in nova: | |
| assignee: | nobody → Nikolas Hermanns (nikolas-hermanns) |
Fix proposed to branch: master
Review: https:/
| Changed in nova: | |
| status: | Confirmed → In Progress |
| Changed in nova: | |
| assignee: | Nikolas Hermanns (nikolas-hermanns) → Pavel Kholkin (pkholkin) |
| Changed in nova: | |
| assignee: | Pavel Kholkin (pkholkin) → Nikolas Hermanns (nikolas-hermanns) |
Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https:/
Reason: This patch is very old and appears to not be active any more. I am therefore abandoning it to keep the nova review queue sane. Feel free to restore the change when you're actively working on it again.
| tags: | added: multipath |
| Changed in nova: | |
| assignee: | Nikolas Hermanns (nikolas-hermanns) → nobody |
| status: | In Progress → Confirmed |
This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.
If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
Valid example: CONFIRMED FOR: LIBERTY
| Changed in nova: | |
| status: | Confirmed → Expired |
| Changed in nova: | |
| status: | Expired → Confirmed |
| assignee: | nobody → Lee Yarwood (lyarwood) |
| Lee Yarwood (lyarwood) wrote : | #7 |
Reopening after seeing this downstream against Kilo / OSP 7. This still looks possible in master so I'll reproduce early next week using the LVM/iSCSI volume backend with a sleep in terminate_
| Maciej Szankin (mszankin) wrote : | #8 |
Lee Yarwood, were you able to reproduce it?
| Changed in nova: | |
| status: | Confirmed → In Progress |
| Lee Yarwood (lyarwood) wrote : | #9 |
I've been unable to reproduce with or without the artificial slow down of the terminate_
| Changed in nova: | |
| status: | In Progress → Incomplete |
| assignee: | Lee Yarwood (lyarwood) → nobody |
| Launchpad Janitor (janitor) wrote : | #10 |
[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]
| Changed in nova: | |
| status: | Incomplete → Expired |


Influenced functions: volume( self, context, instance, bdm): in nova/compute/ manager. py t/volume. py
def _detach_
def _delete_mpath(self, iscsi_properties, multipath_device, ips_iqns): in nova/virtlibvir
Used backend: EMC VNX 5400
OS: Windriver/Ubuntu