Image deletion causes instance hard-reboot failure
Bug #1430966 reported by
Darren Sanders
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Darren Sanders |
Bug Description
When an instance is using an image that gets deleted, the instance will fail to launch if it is hard-rebooted.
Steps to reproduce:
1. Launch new instance using cirros 0.3.2 image
2. After instance is done booting, delete the cirros 0.3.2 image files
3. Return to 'instances' page and select "hard reboot" for instance
Expected behavior:
Image should successfully reboot
Actual behvior:
UI reports "Error: Failed to launch instance ..." (image could not be found),
and the instance goes into error state
Changed in nova: | |
assignee: | nobody → Darren Sanders (darren-s) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Darren Sanders (darren-s) → Nicolas Simonds (nicolas.simonds) |
Changed in nova: | |
assignee: | Nicolas Simonds (nicolas.simonds) → nobody |
Changed in nova: | |
assignee: | nobody → Darren Sanders (darren-s) |
Changed in nova: | |
assignee: | Darren Sanders (darren-s) → Nicolas Simonds (nicolas.simonds) |
Changed in nova: | |
assignee: | Nicolas Simonds (nicolas.simonds) → nobody |
Changed in nova: | |
assignee: | nobody → Darren Sanders (darren-s) |
Changed in nova: | |
assignee: | Darren Sanders (darren-s) → Nicolas Simonds (nicolas.simonds) |
Changed in nova: | |
assignee: | Nicolas Simonds (nicolas.simonds) → Darren Sanders (darren-s) |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
To post a comment you must log in.
Additional detail and steps to reproduce using the CLI.
CLI commands to reproduce ======= ======= ==== 0.3.2-x86_ 64-uec --flavor m1.tiny inst1 0.3.2-x86_ 64-uec cirros- 0.3.2-x86_ 64-uec- kernel cirros- 0.3.2-x86_ 64-uec- ramdisk 7d22-42c3- b7be-cf83c63c5f 10
=======
$ nova boot --availability-zone nova --image cirros-
$ glance image-delete cirros-
$ nova reboot --hard bcfc5d83-
$ nova list ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ----+ ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ----+ 7d22-42c3- b7be-cf83c63c5f 10 | inst1 | ERROR | - | Running | private=10.0.0.3 | ------- ------- ------- ------- ----+-- -----+- ------- +------ ------+ ------- ------+ ------- ------- ----+
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| bcfc5d83-
+------
Stacktrace from Nova Compute screen log: ======= ======= ======= ======= =====
=======
2015-03-11 12:53:17.318 ERROR oslo_messaging. rpc.dispatcher [req-c28bee61- 2e10-4363- 8f6a-fc83ee0fe4 8f admin admin] Exception during message handling: Image 68a7d315- 5ef6-436f- bd39-739d0076f9 9c could not be found. rpc.dispatcher Traceback (most recent call last): rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 142, in _dispatch_and_reply rpc.dispatcher executor_callback)) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 186, in _dispatch rpc.dispatcher executor_callback) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 130, in _do_dispatch rpc.dispatcher result = func(ctxt, **new_args) rpc.dispatcher File "/opt/stack/ nova/nova/ exception. py", line 88, in wrapped rpc.dispatcher payload) rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_utils/ excutils. py", line 82, in __exit__ rpc.dispatcher six.reraise( self.type_ , self.value, self.tb) rpc.dispatcher File "/opt/stack/ nova/nova/ exception. py", line 71, in wrapped rpc.dispatcher return f(self, context, *args, **kw) rpc.dispatcher File "/opt/stack/ nova/nova/ compute/ manager. py", line 302, in decorated_function rpc.dispatcher pass rpc.dispatcher File "/usr/local/ lib/python2. 7/dist- packages/ oslo_utils/ excutils. py", line 82, in __exit__ rpc.dispatcher six.reraise( self.type_ ...
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.
2015-03-11 12:53:17.318 TRACE oslo_messaging.