Issue:
------
since the route export operations were done async, it
resulted in releasing the ovsdb route peer due to cleanup
before completion of the route operations, causing invalid
pointer access while withdrawing routes
Fix:
----
on DB notification to KSync, enqueue export event for the
entry to a KSync task workqueue, also hold the state of
KSync entry which assures that entry is held in the state
till operation is complete, allowing route operations to
complete before route peer cleanup.
Reviewed: https:/ /review. opencontrail. org/14811 github. org/Juniper/ contrail- controller/ commit/ 28043f285a55769 195b28a56030fc3 d4d91fde61
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 28043f285a55769 195b28a56030fc3 d4d91fde61
Author: Prabhjot Singh Sethi <email address hidden>
Date: Mon Nov 2 11:19:35 2015 +0530
Fix ToR-Agent crash on withdrawing HA stale route
Issue:
------
since the route export operations were done async, it
resulted in releasing the ovsdb route peer due to cleanup
before completion of the route operations, causing invalid
pointer access while withdrawing routes
Fix:
----
on DB notification to KSync, enqueue export event for the
entry to a KSync task workqueue, also hold the state of
KSync entry which assures that entry is held in the state
till operation is complete, allowing route operations to
complete before route peer cleanup.
Conflicts: agent/ovs_ tor_agent/ ovsdb_client/ ha_stale_ l2_route. cc agent/ovs_ tor_agent/ ovsdb_client/ ovsdb_entry. h
src/vnsw/
src/vnsw/
Closes-Bug: 1503124 a8bddd3ee2cc8c0 bd783afe945 8e04056e8aae4fc 7a1e854c4d)
Change-Id: I32732ce9e32a6f
(cherry picked from commit 734223864ec70ca