Detached and deleted RBD volumes remain associated with instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Adam Gandelman | ||
Folsom |
Fix Released
|
Critical
|
Adam Gandelman | ||
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
Folsom |
Fix Released
|
Critical
|
Adam Gandelman | ||
cinder (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using the RBD driver with nova-volume, volumes can be created and attached to instances okay. However, once they have been detached and deleted, an association between the instance the volume remains, causing issues for the EC2 API.
$ euca-run-instances -t m1.tiny ami-01
$ euca-create-volume -s 1 -z nova
$ euca-describe-
$ euca-attach-volume -i i-014 vol-0f -d /dev/vdc
$ euca-describe-
$ euca-describe-
VolumeNotFound: Volume vol-0000000f could not be found.
The equivalent OSAPI commands can be used to trigger the same end-result (a broken euca-describe-
Shortly after the volume has been detached from the instance, the nova-volume.log shows the following trace:
2012-11-27 17:42:45 8727 ERROR nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 TRACE nova.openstack.
2012-11-27 17:42:45 8727 ERROR nova.openstack.
The nova-api-ec2.log for describe_instances request shows:
2012-11-27 17:55:33 DEBUG nova.api.ec2 [req-ec9747d4-
2012-11-27 17:55:33 DEBUG nova.compute.api [req-ec9747d4-
2012-11-27 17:55:33 INFO nova.api.ec2 [req-ec9747d4-
2012-11-27 17:55:33 ERROR nova.api.ec2 [req-ec9747d4-
2012-11-27 17:55:33 INFO nova.api.ec2 [req-ec9747d4-
2012-11-27 17:55:33 INFO nova.ec2.
At this point, there is an entry in the block_device_
Found when testing the current stable/folsom in preparation for 2012.2.1. Have not tested using Grizzly / master.
Related branches
- Openstack Ubuntu Testers: Pending requested
-
Diff: 38 lines (+11/-9)1 file modifieddebian/changelog (+11/-9)
- Openstack Ubuntu Testers: Pending requested
-
Diff: 121 lines (+100/-4)1 file modifieddebian/changelog (+100/-4)
CVE References
Changed in nova: | |
status: | New → Invalid |
Changed in cinder (Ubuntu): | |
status: | New → Fix Released |
Changed in cinder (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in nova (Ubuntu): | |
status: | New → Fix Released |
Changed in nova (Ubuntu Quantal): | |
status: | New → Confirmed |
summary: |
- Detached and deleted RBD volumes remain associated with insance + Detached and deleted RBD volumes remain associated with instance |
Changed in cinder: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | grizzly-2 → 2013.1 |
Bisected back to e3d7f8c7de9bad7 3bf1f9b5ee9b2cf 46eb452351 / https:/ /review. openstack. org/#/c/ 15005/