[NETVIRT-1353] NPE at updateVpnInterfacesForUnProcessAdjancencies Created: 27/Jun/18  Updated: 03/Jul/18  Resolved: 03/Jul/18

Status: Resolved
Project: netvirt
Component/s: vpnmanager
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Sridhar Gaddam Assignee: Sridhar Gaddam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In an ODL 3 node cluster setup, when the following operations were performed we have seen couple of NPEs in the logs and observed that sometimes ping to FIP is failing.

Steps executed:
---------------
Start a VM, add FIP, kill compute on which the VM is running, delete the vm, create a new VM, attach the FIP to the VM.

2018-06-19T12:38:37,477 | ERROR | org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.l3vpn.rev140815.vpn.instances.VpnInstance_AsyncDataTreeChangeListenerBase-DataTreeChangeHandler-1 | AsyncDataTreeChangeListenerBase | 259 - org.opendaylight.genius.mdsalutil-api - 0.4.0.redhat-10 | Thread terminated due to uncaught exception: org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.l3vpn.rev140815.vpn.instances.VpnInstance_AsyncDataTreeChangeListenerBase-DataTreeChangeHandler-1
java.lang.NullPointerException: null
at org.opendaylight.netvirt.vpnmanager.VpnInterfaceManager.lambda$updateVpnInterfacesForUnProcessAdjancencies$20(VpnInterfaceManager.java:2129) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1257) [?:?]
at org.opendaylight.netvirt.vpnmanager.VpnInterfaceManager.updateVpnInterfacesForUnProcessAdjancencies(VpnInterfaceManager.java:2129) [366:org.opendaylight.netvirt.vpnmanager-impl:0.6.0.redhat-10]
at org.opendaylight.netvirt.vpnmanager.VpnInstanceListener.update(VpnInstanceListener.java:150) [366:org.opendaylight.netvirt.vpnmanager-impl:0.6.0.redhat-10]
at org.opendaylight.netvirt.vpnmanager.VpnInstanceListener.update(VpnInstanceListener.java:65) [366:org.opendaylight.netvirt.vpnmanager-impl:0.6.0.redhat-10]
at org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncDataTreeChangeListenerBase.java:172) [259:org.opendaylight.genius.mdsalutil-api:0.4.0.redhat-10]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]


Generated at Wed Feb 07 20:23:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.