]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: sync thread catches wrong exceptions on not found
authorAaron Rosen <aaronorosen@gmail.com>
Thu, 17 Apr 2014 21:48:55 +0000 (14:48 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Thu, 17 Apr 2014 21:54:41 +0000 (14:54 -0700)
commit25c79b0ee78639a8abd9ab81c016ed26ba70a5d7
tree6606f4b6517de6f1d56b21630aa7e6ec138baec5
parent9a1af60ae09c2e05cd9011d14943c411bf42fc84
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
neutron/plugins/vmware/common/sync.py
neutron/tests/unit/vmware/test_nsx_sync.py