OpenStack Compute (Nova)

raise in API when there's no instance_info_cache entry for an instance

Reported by Chris Behrens on 2012-02-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
High
Chris Behrens

Bug Description

(nova.api.openstack.wsgi): TRACE: networks = common.get_networks_for_instance(context, instance)
(nova.api.openstack.wsgi): TRACE: File "/home/cbehrens/openstack/nova/comstud-nova.git/nova/api/openstack/common.py", line 319, in get_networks_for_instance
(nova.api.openstack.wsgi): TRACE: cached_nwinfo = instance['info_cache']['network_info']
(nova.api.openstack.wsgi): TRACE: TypeError: 'NoneType' object is unsubscriptable
(

This shouldn't really happen... but I ran into this in my environment while testing 'cells'. Probably better to be safe than sorry, so we should check info_cache being None.

Chris Behrens (cbehrens) on 2012-02-28
Changed in nova:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Chris Behrens (cbehrens)

Reviewed: https://review.openstack.org/4623
Committed: http://github.com/openstack/nova/commit/0c2ce3980459526a01696b63ea5d5294987ad19b
Submitter: Jenkins
Branch: master

commit 0c2ce3980459526a01696b63ea5d5294987ad19b
Author: Chris Behrens <email address hidden>
Date: Tue Feb 28 07:53:29 2012 +0000

    Handle case where instance['info_cache'] is None

    Fixes bug 942443

    Change-Id: I77c3495d1de0a9b73acc576dd0638b430a4ce16e

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers