Exception masked due to log exception

Bug #1368900 reported by Paul Michali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Paul Michali

Bug Description

In neutron/plugins/cisco/cfg_agent/device_drivers/driver_mgr.py, if an exception occurs loading the Cfg Agent, a log message is created and it causes a second exception due to incorrect key used to access template name.

Paul Michali (pcm)
Changed in neutron:
assignee: nobody → Paul Michali (pcm)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

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

Reviewed: https://review.openstack.org/121197
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a2ef082cb0b25d14595a8810adb16df3f9661e43
Submitter: Jenkins
Branch: master

commit a2ef082cb0b25d14595a8810adb16df3f9661e43
Author: Paul Michali <email address hidden>
Date: Fri Sep 12 14:16:35 2014 -0400

    Access correct key for template name

    When an exception occurs while loading the config agent driver, the
    handler tries to log a message, but accesses the wrong key to get the
    template name. This causes another exception, which masks the original
    exception.

    This change accesses the correct key and performs logging inside a
    with block to (defensively) preserve the exception context.

    Change-Id: I3991bc4c509bbd8d68f7a1c8c8314404f2e0eafa
    Closes-Bug: #1368900

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-rc1 → 2014.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.