Comment 6 for bug 1448857

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/9376
Committed: http://github.org/Juniper/contrail-controller/commit/d5e509a515c411eb0455c6168172a569035a87bb
Submitter: Zuul
Branch: R2.20

commit d5e509a515c411eb0455c6168172a569035a87bb
Author: Prabhjot Singh Sethi <email address hidden>
Date: Wed Apr 22 12:13:09 2015 +0530

Fix TOR agent Stale entry creation

Issue:
------
During session connect config listen and OVSDB info read
happens in parallel, in case if we receive an incomplete
config for Vlan port binding we create an entry and keep
it in defered state to wait for completion of info.
In the mean while if OVSDB read also gives the same info
while trying to create a stale entry we hit the assert

Fix:
----
we should not assert for failure in creation of stale entry
also we will connect/listen to OPER DB for config only
after complete of intial read, so that we should not fail
to create stale entries, while we had incomplete info in
config

Also adding fix for not creating vrf ovsdb stale entry for
OvsdbClientIdl::OVSDB_DEL operation

Added test-cases

Closes-Bug: 1441172
Closes-Bug: 1448857
(cherry picked from commit 46814398237fb80f8d386b23bf279cfdf94f1d6a)

Change-Id: I08a62d0b4308c40fcd640b803dcaed4e38328274