Volume remains in-use status, if instance booted from volume is deleted in error state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
Pike |
Fix Committed
|
Medium
|
Mohammed Naser | ||
Queens |
Fix Committed
|
Medium
|
Mohammed Naser |
Bug Description
If the instance is booted from volume and goes in to error state due to some reason.
Volume from which instance is booted, remains in-use state even the instance is deleted.
IMO, volume should be detached so that it can be used to boot other instance.
Steps to reproduce:
1. Log in to Horizon, create a new volume.
2. Create an Instance using newly created volume.
3. Verify instance is in active state.
$ source devstack/openrc demo demo
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| dae3a13b-
+------
Note:
Use shelve-unshelve api to see the instance goes into error state.
unshelving volumed back instance does not work and sets instance state to error state (ref: https:/
4. Shelve the instance
$ nova shelve <instance-uuid>
5. Verify the status is SHELVED_OFFLOADED.
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| dae3a13b-
+------
6. Unshelve the instance.
$ nova unshelve <instance-uuid>
5. Verify the instance is in Error state.
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| dae3a13b-
+------
6. Delete the instance using Horizon.
7. Verify that volume still in in-use state
$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 4aeefd25-
+------
8. In Horizon, volume "Attached To" information is displayed as "Attached to None on /dev/vda".
9. User is not able to delete this volume, or attached it to another instance as it is still in use.
description: | updated |
Changed in nova: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
summary: |
- Volume remains in-use status, if instance booted from volume deleted - when it is in the error state + Volume remains in-use status, if instance booted from volume is deleted + in error state |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Low |
tags: |
added: compute removed: ntt |
Changed in nova: | |
status: | Fix Committed → In Progress |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Low → Medium |
Changed in nova: | |
assignee: | melanie witt (melwitt) → Charlotte Han (hanrong) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → melanie witt (melwitt) |
Changed in nova: | |
assignee: | melanie witt (melwitt) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → melanie witt (melwitt) |
no longer affects: | nova/ocata |
Fix proposed to branch: master /review. openstack. org/145738
Review: https:/