nova-manage fixed list Keyerror when fixed ip allocated to missing instance

Bug #953685 reported by Dan Prince on 2012-03-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Dan Prince

Bug Description

Getting the following error from 'nova-manage fixed list' when my DB has fixed ip's allocated to deleted instances.

network IP address hostname host None None None None None None
Command failed, please check log for more info
2012-03-13 03:43:37 CRITICAL nova [req-bc37622d-6c0f-41fc-a27b-687fc726c7ab None None] 5L
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/nova-manage", line 2203, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/usr/bin/nova-manage", line 2190, in main
(nova): TRACE: fn(*fn_args, **fn_kwargs)
(nova): TRACE: File "/usr/bin/nova-manage", line 587, in list
(nova): TRACE: instance = instances_by_id[fixed_ip['instance_id']]
(nova): TRACE: KeyError: 5L
(nova): TRACE:

This state shouldn't happen.... (if it does there is something wrong with Nova) but it seems like nova-manage should handle it better.

Dan Prince (dan-prince) on 2012-03-13
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → Low

Submitter: Jenkins
Branch: master

commit da23487487d442cffeb252236428abbda3f45746
Author: Dan Prince <email address hidden>
Date: Mon Mar 12 23:52:40 2012 -0400

    fixed list warn when ip allocated to missing inst.

    Update 'nova-manage fixed list' so it prints a warning if an IP
    is allocated to a deleted/missing instance.

    Fixes LP Bug #953685.

    Change-Id: I72b7ad2cb01e31cf9bb6cab904ab10d8769a3526

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

Duplicates of this bug

Other bug subscribers