encrypted volume is in "in-use" state while boot from volume failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Incomplete
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Description of problem:
A bootable volume that is encrypted is created
and encryption was not configured in nova.
create new server failed but the volume status stay in "in-use" state.
(openstack) server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| ea85b1a0-
| 450255af-
+------
(openstack)
(openstack)
(openstack) volume list
+------
| ID | Name | Status | Size | Attached to |
+------
| bb12b367-
| 5c8ff52c-
+------
Version-Release number of selected component (if applicable):
puppet-
python-
python-
openstack-
openstack-
python-
openstack-
openstack-
openstack-
puppet-
openstack-
openstack-
openstack-
python-
openstack-
openstack-
How reproducible:
100%
Steps to Reproduce:
1. Configure encryption in Cinder but not in nova
2. Create bootable volume from image
3. Create server from volume
Actual results:
Server create failed but volume status is "in-use"
Expected results:
Server create failed but volume status is "available"
tags: | added: volumes |
Changed in nova: | |
status: | In Progress → Triaged |
assignee: | int32bit (int32bit) → nobody |
Looks like a Nova problem. We need the logs from this, but my assumption is the Cinder volume is indeed attached and therefore in-use, so Cinder is working as expected.
I am not sure if the expectation on the Nova side is that they fully rollback and clean up the Cinder volume in case of a failure like this, or if it is kept around as a means to troubleshoot what happened.