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/14771 github. org/Juniper/ contrail- controller/ commit/ 734223864ec70ca 8e04056e8aae4fc 7a1e854c4d
Committed: http://
Submitter: Zuul
Branch: master
commit 734223864ec70ca 8e04056e8aae4fc 7a1e854c4d
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.
Closes-Bug: 1503124 a8bddd3ee2cc8c0 bd783afe945
Change-Id: I32732ce9e32a6f