Fail to delete a volume which is once attached by LVM backend and LIO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Mitsuhiro Tanino | ||
Juno |
Fix Released
|
High
|
Matthew Booth |
Bug Description
In LVM iSCSI driver with 'iscsi_helper = lioadm' (after transition to Target Objects), volume deletion which is once attached fails because the volume is in-use status.
LOG:
------
2015-01-13 15:34:52.951 INFO cinder.
.....
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
2015-01-13 15:35:03.608 TRACE oslo.messaging.
------
Steps to reproduce:
(a) Boot a nova instance
(b) Create a volume using LVM backend and LIO
(c) Attach a volume to an instance
(d) Detach a volume from instance
(e) Delete the volume after attached
=> Fail to delete the volume
After transitioning to the new driver and target model, iscsi_targets is not added to the table during create_export() phase. However, remove_export() in LIO target is still reffering empty iscsi_targets table. This causes NotFound exception and remove_export() skips to do remove_
As a result, iscsi target is not removed and the target continues to grab the volume(logical volume) as an in-use status.
description: | updated |
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → kilo-2 |
Changed in cinder: | |
milestone: | kilo-2 → kilo-3 |
Changed in cinder: | |
assignee: | Mitsuhiro Tanino (mitsuhiro-tanino) → John Griffith (john-griffith) |
Changed in cinder: | |
assignee: | John Griffith (john-griffith) → Mitsuhiro Tanino (mitsuhiro-tanino) |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/148038
Review: https:/