Comment 14 for bug 1506997

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

Reviewed: https://review.opencontrail.org/20500
Committed: http://github.org/Juniper/contrail-controller/commit/30f2d1aa28be983dda5d64f323510c5d28b22a88
Submitter: Zuul
Branch: R3.0

commit 30f2d1aa28be983dda5d64f323510c5d28b22a88
Author: ashoksingh <email address hidden>
Date: Fri May 20 23:07:33 2016 +0530

Fix issue of interface becoming inactive even when it was active.

Issue
Agent interface was marked as “os_oper_state = down” even when the state of the interface in OS was Up. This can happen when agent index for interface is reused for a different interface and OS notification for old interface comes after notification for new interface.

Fix
As soon as we see the delete of interface, mark its index as invalid in VnswInterfaceListenerBase so that it cannot be used in updates until Add is seen again. Also when add is seen update the index in VnswInterfaceListenerBase before equeuing notification for resync of OS attributes. Also re-read OS index for interface whenever notification enqueued by VnswInterfaceListenerBase is processed.

Also define tracebuffer for logging VnswIf events. Also increase the size of tracebuffer for Config tracebuffer.

Closes-Bug: #1506997
(cherry picked from commit 81f9ae55b78cfbcbc7ee9eadbc7070743075775c)

Change-Id: I0d69c40370d50e7e9d943184fac8dd08778dfc32