traceback on OSAPI list/show because of instance_type removed from DB

Bug #1018500 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Chris Behrens

Bug Description

instance['instance_type'] can be None if an instance_type was removed from the DB.. causing a traceback. One shouldn't really remove them from the DB.. but mark them deleted or disabled.. However, we should make the code behave nicely, anyway.

Chris Behrens (cbehrens)
Changed in nova:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Chris Behrens (cbehrens)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/9062

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/9062
Committed: http://github.com/openstack/nova/commit/fada5d801c699da16e8e600d474a1da94fb7f4d2
Submitter: Jenkins
Branch: master

commit fada5d801c699da16e8e600d474a1da94fb7f4d2
Author: Chris Behrens <email address hidden>
Date: Wed Jun 27 17:20:49 2012 +0000

    Make nova list/show behave nicely on instance_type deletion

    One shouldn't remove an instance_type from the DB outright... but we should
    make the code behave nicely in the rare case.

    Fixes bug 1018500

    Change-Id: If742070d7982889a56709ae058cd106e3a63114b

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.