]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Fix KeyError in sync if nsx_router_id not found
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 8 Apr 2014 20:20:49 +0000 (13:20 -0700)
committerGerrit Code Review <review@openstack.org>
Wed, 9 Apr 2014 00:50:01 +0000 (00:50 +0000)
commitd90d71cfdae1d9c9c3b54cc33adfabce683c633c
tree335789d848e063b65f44cdb4460b32cbc98cf534
parent69c99d2858daee8cce0d06efc3bf272fcafabd91
NSX: Fix KeyError in sync if nsx_router_id not found

Previously, a KeyError would occur in the sync code which would
cause the sync thread to stop running. This would occur if there
was a router entry in the database but no nsx_router_mapping and
the router was not found in nsx. Note: this should never happen unless
one did not run the db migration which introduced and migrated the data
for the NeutronNsxRouterMapping table.

Change-Id: I44f3e7de9323f594501db63d3ad33e80e617bfdc
Closes-bug: #1304647
neutron/plugins/vmware/common/sync.py
neutron/tests/unit/vmware/test_nsx_sync.py