NSX: sync thread catches wrong exceptions on not found in db elements

Bug #1309208 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Aaron Rosen
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

2014-04-17 14:13:07.361 ERROR neutron.openstack.common.loopingcall [req-47b42334-8484-48c9-9f3e-e6ced3b9e3ec None None] in dynamic looping call
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall Traceback (most recent call last):
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall File "/opt/stack/neutron/neutron/openstack/common/loopingcall.py", line 123, in _inner
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall idle = self.f(*self.args, **self.kw)
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall File "/opt/stack/neutron/neutron/plugins/vmware/common/sync.py", line 649, in _synchronize_state
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall scan_missing=scan_missing)
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall File "/opt/stack/neutron/neutron/plugins/vmware/common/sync.py", line 508, in _synchronize_lswitchports
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall ext_networks=ext_nets)
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall File "/opt/stack/neutron/neutron/plugins/vmware/common/sync.py", line 464, in synchronize_port
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall neutron_port_data['id'])
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall File "/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 271, in _get_port
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall raise n_exc.PortNotFound(port_id=id)
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall PortNotFound: Port 0b9ce706-1197-460d-986e-98870bc81ce7 could not be found
2014-04-17 14:13:07.361 TRACE neutron.openstack.common.loopingcall

Aaron Rosen (arosen)
Changed in neutron:
importance: Undecided → High
assignee: nobody → Aaron Rosen (arosen)
Aaron Rosen (arosen)
tags: added: havana-backport-potential icehouse-backport-potential
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to neutron (master)

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

commit 25c79b0ee78639a8abd9ab81c016ed26ba70a5d7
Author: Aaron Rosen <email address hidden>
Date: Thu Apr 17 14:48:55 2014 -0700

    NSX: sync thread catches wrong exceptions on not found

    Previously the sync code expected exc.NoResultFound to be raised if a
    port/router/network was not found in the database. This is actually not the
    correct exception raised. This error will only occur if an element is deleted
    from the db right when the sync thead is run for a specific element.

    Change-Id: I3a5c8316ade49004fb9fa0b454435205c543f6ee
    Closes-bug: 1309208

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

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/144311

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

Reviewed: https://review.openstack.org/144311
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ed3d4efb1f4386ec3a3aa656e541abf1ae97d793
Submitter: Jenkins
Branch: stable/icehouse

commit ed3d4efb1f4386ec3a3aa656e541abf1ae97d793
Author: Aaron Rosen <email address hidden>
Date: Thu Apr 17 14:48:55 2014 -0700

    NSX: sync thread catches wrong exceptions on not found

    Previously the sync code expected exc.NoResultFound to be raised if a
    port/router/network was not found in the database. This is actually not the
    correct exception raised. This error will only occur if an element is deleted
    from the db right when the sync thead is run for a specific element.

    Change-Id: I3a5c8316ade49004fb9fa0b454435205c543f6ee
    Closes-bug: 1309208
    (cherry picked from commit 25c79b0ee78639a8abd9ab81c016ed26ba70a5d7)

tags: added: in-stable-icehouse
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.