]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX sync cache: add a flag to skip item deletion
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 19 Jun 2014 12:20:49 +0000 (05:20 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Thu, 19 Jun 2014 12:20:49 +0000 (05:20 -0700)
commitbd4ef02dc12122ad019ada803fd1a2bb2c56a5a2
tree6e31053440493fa80e155cf0df3e499279460673
parent24718e6f1764e95f0c393ba042546e3584981b31
NSX sync cache: add a flag to skip item deletion

This new flag will prevent updates on single resources, which
can happen asynchronously to the main synchronization thread,
from processing the 'changed' flag for items in the cache and
delete items not present anymore in NSX.

This will avoid failures seen in CI runs where the sync
thread failed because of a KeyError because some items where
concurrently removed from the NSX cache.

Change-Id: I6a11b8dabb1e9481dc807b5fbba17c9027dad5f2
Closes-Bug: #1329650
neutron/plugins/vmware/common/sync.py
neutron/tests/unit/vmware/test_nsx_sync.py