lvremove failure on volume delete when creating and deleting volumes with the same name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Critical
|
John Griffith | ||
OpenStack Compute (nova) |
Confirmed
|
Critical
|
Unassigned |
Bug Description
The issue appears when quickly sending api commands to nova-volume and cinder: create volume, get volume, and delete volume are all run in quick succession at least twice with the same volume displayName for the volumes.
In other words creating then deleting a volume and immediatly after the delete is confirmed creating a volume with the same name and then trying to delete the second volume results in lvremove failing to remove the logical volume.
lvremove fails because the lv open count is 1. The open count in this case is caused by the iscsi export still running on the volume. The tgtadm check return no exports during the check because the wrong tid was used to check if there was an iscsi export. In my testing with tempest --tid=2 was used by nova-volume and cinder when the check erroneously returned 22, but manually running the tgtadm show operation with --tid=1 showed the iscsi export.
I believe this may be caused by a race condition with the previous volume's delete when creating the second volume that had the same displayName. When I changed the displayName of the second volume the failure no longer occurs.
Changed in nova: | |
assignee: | nobody → Matthew Treinish (treinish) |
Changed in cinder: | |
status: | New → Confirmed |
milestone: | none → folsom-rc1 |
Changed in nova: | |
milestone: | none → folsom-rc1 |
Changed in cinder: | |
importance: | Undecided → Critical |
Changed in nova: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
assignee: | Matthew Treinish (treinish) → nobody |
tags: | added: volume |
no longer affects: | tempest |
Changed in cinder: | |
status: | Confirmed → In Progress |
assignee: | nobody → John Griffith (john-griffith) |
Fix proposed to branch: master /review. openstack. org/11947
Review: https:/