LBaaS Message of DeviceNotFoundOnAgent is still the default one

Bug #1469080 reported by Jian Wen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Jian Wen

Bug Description

The default message of an exception is "An unknown exception occurred.".
Need to use 'message' instead of 'msg' for the following exception, otherwise
the default message is logged.

class DeviceNotFoundOnAgent(n_exc.NotFound):
    msg = _('Unknown device with loadbalancer_id %(loadbalancer_id)s')

Jian Wen (wenjianhn)
Changed in neutron:
assignee: nobody → Jian Wen (wenjianhn)
Changed in neutron:
status: New → In Progress
Revision history for this message
Al Miller (al-miller) wrote :

It also apears that the same issue exists with the message related to pool_id in neutron_lbaas/services/loadbalancer/agent/agent_manager.py

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

Reviewed: https://review.openstack.org/195960
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=ac2dc4b71346c06a05ea99dd2f793d385fee79fa
Submitter: Jenkins
Branch: master

commit ac2dc4b71346c06a05ea99dd2f793d385fee79fa
Author: Jian Wen <email address hidden>
Date: Fri Jun 26 17:48:26 2015 +0800

    Use message for DeviceNotFoundOnAgent

    Need to use 'message' instead of 'msg' for every exception of neutron.

    Change-Id: Ifd989703f2b13b64d07b83051222c7d1aca5dfbc
    Closes-bug: 1469080

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