Unshelve instance not working if instance is boot from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Pranali Deore | ||
Juno |
Fix Released
|
Medium
|
Pranali Deore |
Bug Description
If instance is booted from volume, then shelving the instance sets the status as SHELVED_OFFLOADED, instance files are getting deleted properly from the base path. When you call the unshelve instance, it fails on the conductor with error "Unshelve attempted but the image_id is not provided", and instance goes in to error state.
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-
+------
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>
Following stack-trace logged in nova-conductor
2014-12-19 02:55:59.634 ERROR nova.conductor.
2014-12-19 02:55:59.647 ERROR oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
2014-12-19 02:55:59.647 TRACE oslo.messaging.
7. Instance goes into error state.
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| dae3a13b-
+------
Note:
1. This issue is reproducible with admin as well as demo tenant.
2. In all cases of shelved_
Changed in nova: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/144582
Review: https:/