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)
Reviewed: https:/ /review. opencontrail. org/9376 github. org/Juniper/ contrail- controller/ commit/ d5e509a515c411e b0455c6168172a5 69035a87bb
Committed: http://
Submitter: Zuul
Branch: R2.20
commit d5e509a515c411e b0455c6168172a5 69035a87bb
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 :OVSDB_ DEL operation
OvsdbClientIdl:
Added test-cases
Closes-Bug: 1441172 f8d386b23bf279c fdf94f1d6a)
Closes-Bug: 1448857
(cherry picked from commit 46814398237fb80
Change-Id: I08a62d0b4308c4 0fcd640b803dcae d4e38328274