Volume "in-use" although VM doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Setup:
devstack on master using default settings.
Steps:
1) Using tempest/stress with patch https:/
cd /opt/stack/
./run_stress.py etc/volume-
2) Test will do the following work flow:
- create a volume
- create a VM
- attach volume to VM
- delete VM
- delete volume
Problem:
Deletion of volume causes problem, since the state is still "in-use" even the VM is already deleted:
2013-07-15 12:30:58,563 31273 tempest.stress : INFO creating volume: volume663095989
2013-07-15 12:30:59,992 31273 tempest.stress : INFO created volume: cb4d625c-
2013-07-15 12:30:59,993 31273 tempest.stress : INFO creating vm: instance331154488
2013-07-15 12:31:11,097 31273 tempest.stress : INFO created vm 4e20442b-
2013-07-15 12:31:11,098 31273 tempest.stress : INFO attach volume (cb4d625c-
2013-07-15 12:31:11,265 31273 tempest.stress : INFO volume (cb4d625c-
2013-07-15 12:31:11,265 31273 tempest.stress : INFO deleting vm: instance331154488
2013-07-15 12:31:13,780 31273 tempest.stress : INFO deleted vm: 4e20442b-
2013-07-15 12:31:13,781 31273 tempest.stress : INFO deleting volume: cb4d625c-
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/opt/stack/
resp, _ = manager.
File "/opt/stack/
return self.delete(
File "/opt/stack/
return self.request(
File "/opt/stack/
resp, resp_body)
File "/opt/stack/
raise exceptions.
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'Invalid volume: Volume status must be available or error', u'code': 400}}
2013-07-15 12:31:58,622 31264 tempest.stress : INFO cleaning up
nova list:
+----+-
| ID | Name | Status | Task State | Power State | Networks |
+----+-
+----+-
cinder list
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| cb4d625c-
+------
tags: | added: volumes |
In this state a force-deletion of the volume is even not possible:
cinder force-delete a31d4eca- 52a4-47ff- 91a1-e9281addc5 e9 52a4-47ff- 91a1-e9281addc5 e9 is still attached, detach volume first.
ERROR: Volume a31d4eca-