Cinder volume isn't available after instance soft-deleted timer expired while volume is still attached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Anusha Unnam |
Bug Description
Description of problem:
There is a feature in nova that allow you to restore a SOFT-DELETED instance (nova restore) when an instance is terminated there is a certain amount of time(defined in nova.conf - reclaim_
In this case the volume remain attached to an instance in DELETED state and not usable for a non admin user.
Version-Release number of selected component (if applicable):
# rpm -qa | grep -i cinder
openstack-
python-
python-
# rpm -qa | grep -i nova
openstack-
openstack-
openstack-
python-
openstack-
openstack-
openstack-
python-
openstack-
openstack-
How reproducible:
100%
Steps to Reproduce:
1. Edit /etc/nova/nova.conf and change reclaim_
2. Restart nova service
3. Create a volume and attach it to an instance
4. Delete instance - make sure its in "SOFT-DELETE" state
5. Wait for the timer to expire and make sure the instance is in "DELETED" state
6. Volume still shown as attached in CLI and in Horizon Its shown as attached to "None"
Actual results:
Volume is not usable
Expected results:
Volume should be released and usable
Additional info:
Attaching cinder and nova log dir
Changed in nova: | |
status: | Confirmed → In Progress |
I think all images attached to an instance should be available right after the delete command, even if the instance goes to soft_deleted state. Then, if restored, all volumes should be manually re-attached. Not sure if this is the best approach anyway. I'm sending a patch for review/discussion.