nova.network.manager should list InstanceNotFound as a client exception

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

Bug Description

get_instance_nw_info() in nova.network.manager should list InstanceNotFound as a client exception for rpc. This to prevent the rpc layer from logging a traceback when this exception is raised. This is an expected type of exception that should be left to the client to handle.

Attaching a sample log from running periodic task ComputeManager._heal_instance_info_cache on an instance that happen to be deleted.

Revision history for this message
Hans Lindgren (hanlind) wrote :
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/24854

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit c1d78cc4f8f4467b8c9ef59b0db2153fe095da09
Author: Hans Lindgren <email address hidden>
Date: Tue Mar 19 21:33:21 2013 +0100

    List InstanceNotFound as a client exception

    get_instance_nw_info() in nova.network.manager should list
    InstanceNotFound as a client exception for rpc. This to prevent the
    rpc layer from logging a traceback when this exception is raised.
    This is an expected type of exception that should be left to the
    client to handle.

    Resolves bug 1157411.

    Change-Id: I6735fb8a386f2256ac8af0ce7fdb36ef7a00b6ce

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

Other bug subscribers

Bug attachments

Remote bug watches

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