[NETVIRT-789] NPE at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.getElanTag Created: 18/Jul/17  Updated: 19/Nov/19  Resolved: 17/Sep/17

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

Type: Bug
Reporter: Janki Chhatbar Assignee: Abhinav Gupta
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 8860

 Description   

2017-07-17 07:46:36,114 | INFO | nPool-1-worker-0 | NeutronPortChangeListener | 309 - org.opendaylight.netvirt.neutronvpn-impl - 0.5.0.SNAPSHOT | Of-port-interface creation for port 83a703b5-c897-44ad-9329-f85a7f2372e3
2017-07-17 07:46:36,119 | ERROR | nPool-1-worker-0 | NeutronPortChangeListener | 309 - org.opendaylight.netvirt.neutronvpn-impl - 0.5.0.SNAPSHOT | Interface 9f2242aa-22f2-4040-b8bf-36bcbf432291 is not present
2017-07-17 07:46:36,119 | INFO | nPool-1-worker-0 | NeutronPortChangeListener | 309 - org.opendaylight.netvirt.neutronvpn-impl - 0.5.0.SNAPSHOT | Of-port-interface creation for port 28c11d19-af42-49fe-b111-d6bef7d07242
2017-07-17 07:46:36,124 | ERROR | eChangeHandler-0 | InterfacemgrProvider | 231 - org.opendaylight.genius.interfacemanager-impl - 0.3.0.SNAPSHOT | Interface 83a703b5-c897-44ad-9329-f85a7f2372e3 is not present
2017-07-17 07:46:36,124 | WARN | eChangeHandler-0 | ElanInterfaceManager | 299 - org.opendaylight.netvirt.elanmanager-impl - 0.5.0.SNAPSHOT | Interface 83a703b5-c897-44ad-9329-f85a7f2372e3 is removed from Interface Oper DS due to port down
2017-07-17 07:46:36,124 | ERROR | eChangeHandler-0 | SubnetmapChangeListener | 319 - org.opendaylight.netvirt.vpnmanager-impl - 0.5.0.SNAPSHOT | Notification failed because of failure in fetching elanTag from ElanInstance 5c011fe3-dcd9-4436-8e59-3a734610948e config DS
java.lang.NullPointerException
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.getElanTag(SubnetmapChangeListener.java:180)[319:org.opendaylight.netvirt.vpnmanager-impl:0.5.0.SNAPSHOT]
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.update(SubnetmapChangeListener.java:111)[319:org.opendaylight.netvirt.vpnmanager-impl:0.5.0.SNAPSHOT]
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.update(SubnetmapChangeListener.java:29)[319:org.opendaylight.netvirt.vpnmanager-impl:0.5.0.SNAPSHOT]
at org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncDataTreeChangeListenerBase.java:159)[237:org.opendaylight.genius.mdsalutil-api:0.3.0.SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_131]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
2017-07-17 07:46:36,125 | ERROR | eChangeHandler-0 | SubnetmapChangeListener | 319 - org.opendaylight.netvirt.vpnmanager-impl - 0.5.0.SNAPSHOT | update:Unable to fetch elantag from ElanInstance 5c011fe3-dcd9-4436-8e59-3a734610948e and hence not proceeding with subnetmapListener update for subnet 22b2d99c-f63e-470e-b36e-f42bf46884e2



 Comments   
Comment by Michael Vorburger [ 23/Aug/17 ]

Re-opening, dunno who closed this as WORKSFORME, but in the logs of CONTROLLER-1756 I'm still seeing a lot of these, which should be looked at:

2017-08-22 17:11:47,367 | WARN | eChangeHandler-0 | NatRouterInterfaceListener | 369 - org.opendaylight.netvirt.natservice-impl - 0.4.2.Carbon | add : Interface f0286128-1401-4040-9e10-ed14aac701af not ye
t operational to handle router interface add event in router e7bf00ea-f8f8-4323-b551-3099e3dab830
2017-08-22 17:11:47,367 | INFO | eChangeHandler-0 | NeutronvpnNatManager | 364 - org.opendaylight.netvirt.neutronvpn-impl - 0.4.2.Carbon | No Routers element found for router name e7bf00ea-f8f8-4323
-b551-3099e3dab830
2017-08-22 17:11:47,368 | ERROR | eChangeHandler-0 | NatUtil | 369 - org.opendaylight.netvirt.natservice-impl - 0.4.2.Carbon | getSubnetGwMac : No resolution was found to GW ip IpAddress
[_ipv4Address=Ipv4Address [_value=10.15.0.1]] in subnet 4fff8d99-f26b-4227-ab31-1f825d1cee3b
2017-08-22 17:11:47,368 | ERROR | eChangeHandler-0 | SubnetmapChangeListener | 360 - org.opendaylight.netvirt.vpnmanager-impl - 0.4.2.Carbon | Notification failed because of failure in fetching elanTag
from ElanInstance 7a8b2129-7e14-499a-b5f0-6c8c5dbd892e config DS
java.lang.NullPointerException
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.getElanTag(SubnetmapChangeListener.java:179)[360:org.opendaylight.netvirt.vpnmanager-impl:0.4.2.Carbon]
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.update(SubnetmapChangeListener.java:110)[360:org.opendaylight.netvirt.vpnmanager-impl:0.4.2.Carbon]
at org.opendaylight.netvirt.vpnmanager.SubnetmapChangeListener.update(SubnetmapChangeListener.java:29)[360:org.opendaylight.netvirt.vpnmanager-impl:0.4.2.Carbon]
at org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncDataTreeChangeListenerBase.java:160)[319:org.opendaylight.genius.mdsalutil-api:0.2.2.Carbon]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]
2017-08-22 17:11:47,368 | ERROR | eChangeHandler-0 | SubnetmapChangeListener | 360 - org.opendaylight.netvirt.vpnmanager-impl - 0.4.2.Carbon | update:Unable to fetch elantag from ElanInstance 7a8b2129-7
e14-499a-b5f0-6c8c5dbd892e and hence not proceeding with subnetmapListener update for subnet 4fff8d99-f26b-4227-ab31-1f825d1cee3b

Comment by Sam Hague [ 28/Aug/17 ]

Michael,

can you add the logs and relevant details about the downstream setup? We need to understand the differences from the downstream to the upstream. This means: odl version (info on what patches are missing or included), openstack version (ocata or pike), and clustering/ha in use.

The bug was closed because the upstream csit does not have the issue. We will need logs for other jobs where the issue is occurring.

Thanks, Sam

Comment by Sam Hague [ 29/Aug/17 ]

debugging patch: https://git.opendaylight.org/gerrit/#/c/62369/

Comment by Sam Hague [ 05/Sep/17 ]

https://git.opendaylight.org/gerrit/#/c/62369/

Comment by Vivekanandan Narasimhan [ 05/Sep/17 ]

We identified the root-cause of this exception and Abhinav will be posting the fix.

Comment by Abhinav Gupta [ 14/Sep/17 ]

https://git.opendaylight.org/gerrit/#/c/63129/

Comment by Vivekanandan Narasimhan [ 17/Sep/17 ]

Fixed on Master via:
https://git.opendaylight.org/gerrit/63129

Fixed on Carbon SR2 via:
https://git.opendaylight.org/gerrit/63204

To be merged into Nitrogen SR1 via:
https://git.opendaylight.org/gerrit/63162

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