Error handler in Scheduler uses ID, not UUID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Chris Behrens |
Bug Description
If the scheduler raises an exception after the Instance db record was added, the instance stays in the BUILD state and cannot be deleted.
Seems that code is still using instance ID vs. UUID.
(PS> don't trust the earlier part of the stack trace, discovered the bug in my dev branch)
2011-12-15 13:16:57,840 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/home/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/home/
(nova.rpc): TRACE: self._set_
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: self.gen.
(nova.rpc): TRACE: File "/home/
(nova.rpc): TRACE: yield
(nova.rpc): TRACE: File "/home/
(nova.rpc): TRACE: self._set_
(nova.rpc): TRACE: File "/home/
(nova.rpc): TRACE: instance_id = kwargs[
(nova.rpc): TRACE: KeyError: 'instance_id'
(nova.rpc): TRACE:
Changed in nova: | |
assignee: | nobody → Chris Behrens (cbehrens) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → essex-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-3 → 2012.1 |
Reviewed: https:/ /review. openstack. org/2410 github. com/openstack/ nova/commit/ baf7e02f29600e7 9eacb6c0f747075 afeb74fdd5
Committed: http://
Submitter: Jenkins
Branch: master
status fixcommitted
done
commit baf7e02f29600e7 9eacb6c0f747075 afeb74fdd5
Author: Chris Behrens <email address hidden>
Date: Thu Dec 15 14:16:42 2011 -0800
Fix scheduler error handler
Fixes bug 904971
Scheduler error handler was looking for instance_id when it may or may
not exist. Added the proper code for it to determine whether the
instance was actually created in the DB or not and how to find its ID.
Note: there's some pretty nasty stuff in here, but unavoidable without
larger changes. I'd like to hold off on these larger changes, because
the problem should be solved with some of the scalability work coming.
Tests included.
Change-Id: Ief5fde8128437c 9dc257af9c4d0c2 950d0962ce5