force-delete of cinder volume errors with Can\'t remove open logical volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
John Griffith | ||
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vishakha Agarwal |
Bug Description
As a consequence of Bug #1191431, few volumes were left in error_deleting state. Few of the cleared off by issuing cinder delete <uuid>, however few of the errored out.
1.When you try deleting such volume from Horizon > volume > check box > Delete Volumes
Error: You do not have permission to delete volume: <Volume: 078cd44b-
2.When you try using 'Force Delete Volume' option against the suspected volume. The request gets submitted successfully, however you will see following error messages in /var/log/
ProcessExecutio
Exit code: 5
Stdout: ''Stderr: ' Can\'t remove open logical volume "volume-
3.When you try delete manually through command line, you get the following error:
lvremove -f /dev/cinder-
Workaround
1.The volume is left in in-use state by tgtd service that causes cinder delete and force-delete not to work. Stop the service that is using it:
service tgt stop
lvremove /dev/cinder-
2.Now, remove it through cinder-api or cli
service tgt start
cinder force-delete 078cd44b-
Note: lsof /dev/cinder-
Expected behavior: force-delete option must address such anomalies.
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-rc1 → 2013.2 |
tags: | removed: grizzly-backport-potential |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Thomas Maddox (thomas-maddox) |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Thomas Maddox (thomas-maddox) → nobody |
Changed in nova: | |
assignee: | nobody → Vishakha Agarwal (vishakha.agarwal) |
Can you please provide the full log and version? Force delete should take care of tgtd - maybe there is a clue as to why it didn't. Thanks!