Stale flows in ACL tables 216/246 46/77246/2
authorSomashekar Byrappa <somashekar.b@altencalsoftlabs.com>
Wed, 24 Oct 2018 07:13:35 +0000 (12:43 +0530)
committerSam Hague <shague@redhat.com>
Thu, 25 Oct 2018 23:00:18 +0000 (23:00 +0000)
commit13044dad5c04ac235a5747171118ac10052d2eec
treea1028716ab87dda8745ffad01c2af6046e985945
parenta2e034275750f4afee308b6e3b27300791b5931c
Stale flows in ACL tables 216/246

Issue:
------
Stale flows with VM IP's are observed in ACL tables 216/246 when a VM
is deleted which was having SG with --remote-group rules.

Solution:
---------
The issue is due to race-conditions.
Processing VM deletion is handled via DJC where-as deletion of
AclInterface from cache is not. This was resulting in stale flows.
Now, DJC with same key (ACL-ID) is used even for deletion of
AclInterface from cache which will sequence the operations.

JIRA: NETVIRT-1469

Change-Id: I315831b62a2ac5954fa4177a755c828a1f43d476
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/listeners/AclInterfaceStateListener.java
aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/utils/AclDataUtil.java