uncaught portnotfound exception on get_dhcp_port

Bug #1252437 reported by Armando Migliaccio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Armando Migliaccio
Havana
Fix Released
Undecided
Unassigned

Bug Description

While working on fix for bug #1251874 I have noticed this stacktrace in the log:

2013-11-18 17:20:46.237 1021 ERROR neutron.openstack.common.rpc.amqp [-] Exception during message handling
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp Traceback (most recent call last):
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp **args)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/common/rpc.py", line 44, in dispatch
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp neutron_ctxt, version, method, namespace, **kwargs)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/db/dhcp_rpc_base.py", line 139, in get_dhcp_port
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp dict(port=port))
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/plugins/ml2/plugin.py", line 588, in update_port
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp original_port = super(Ml2Plugin, self).get_port(context, id)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/db/db_base_plugin_v2.py", line 1454, in get_port
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp port = self._get_port(context, id)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/new/neutron/neutron/db/db_base_plugin_v2.py", line 266, in _get_port
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp raise q_exc.PortNotFound(port_id=id)
2013-11-18 17:20:46.237 1021 TRACE neutron.openstack.common.rpc.amqp PortNotFound: Port d68c27dd-210b-4b10-9c41-40ba01aa0fd3 could not be found

This is because the try-except looks for exc.NoResultFound and this is obviously a mistake.

Changed in neutron:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
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/57043

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → High
milestone: none → icehouse-1
tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/57043
Committed: http://github.com/openstack/neutron/commit/cbe91fda7b416717a23cf7b29adf8201a8c14822
Submitter: Jenkins
Branch: master

commit cbe91fda7b416717a23cf7b29adf8201a8c14822
Author: armando-migliaccio <email address hidden>
Date: Mon Nov 18 12:13:36 2013 -0800

    Catch PortNotFound exception during get_dhcp_port

    Close-bug: 1252437

    Change-Id: I3a7954b869b4f5b909c806f8e47180e1ba6ba374

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/60569

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

Reviewed: https://review.openstack.org/60569
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4bfc5109c99b44b7b8470c5612fc541c09d3c4aa
Submitter: Jenkins
Branch: stable/havana

commit 4bfc5109c99b44b7b8470c5612fc541c09d3c4aa
Author: armando-migliaccio <email address hidden>
Date: Mon Nov 18 12:13:36 2013 -0800

    Catch PortNotFound exception during get_dhcp_port

    Close-bug: 1252437

    Change-Id: I3a7954b869b4f5b909c806f8e47180e1ba6ba374
    (cherry picked from commit cbe91fda7b416717a23cf7b29adf8201a8c14822)

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-1 → 2014.1
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.