[NETVIRT-371] NullPointerException at org.opendaylight.netvirt.neutronvpn.NeutronvpnManager.deleteVpnInterface Created: 14/Dec/16  Updated: 19/Nov/19  Resolved: 30/Jan/17

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

Type: Bug
Reporter: Sam Hague 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


Attachments: File odl1_karaf.tar.xz    
Issue Links:
Duplicate
is duplicated by NETVIRT-359 VPNInstance bailing out of wait loop Resolved
External issue ID: 7384

 Description   

Found in CSIT: https://logs.opendaylight.org/releng/jenkins092/netvirt-csit-1node-openstack-mitaka-upstream-transparent-boron/69/archives/odl1_karaf.log.gz

2016-12-14 14:03:24,306 | ERROR | nPool-1-worker-1 | DataStoreJobCoordinator | 281 - org.opendaylight.genius.mdsalutil-api - 0.1.2.SNAPSHOT | Exception when executing jobEntry: JobEntry

{key='PORT-5b0e66e0-a05a-4739-a6c6-68e3b2b1ccec', mainWorker=org.opendaylight.netvirt.neutronvpn.NeutronvpnManager$$Lambda$155/1524762708@44b44c6a, rollbackWorker=null, retryCount=0, futures=null}

java.lang.NullPointerException
at org.opendaylight.netvirt.neutronvpn.NeutronvpnManager.deleteVpnInterface(NeutronvpnManager.java:663)
at org.opendaylight.netvirt.neutronvpn.NeutronvpnManager.lambda$removeSubnetFromVpn$0(NeutronvpnManager.java:1538)
at org.opendaylight.genius.datastoreutils.DataStoreJobCoordinator$MainTask.run(DataStoreJobCoordinator.java:254)[281:org.opendaylight.genius.mdsalutil-api:0.1.2.SNAPSHOT]
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)[:1.8.0_111]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)[:1.8.0_111]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)[:1.8.0_111]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)[:1.8.0_111]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)[:1.8.0_111]



 Comments   
Comment by Sam Hague [ 14/Dec/16 ]

Attachment odl1_karaf.tar.xz has been added with description: karaf.log

Comment by Abhinav Gupta [ 05/Jan/17 ]

Hi Sam, just stumbled upon this one.
Is this bug still valid?
If you think so, I will have a look at it.

Comment by Abhinav Gupta [ 24/Jan/17 ]

Since the log link was old, got the recent logs for ODL netvirt master:

NPE is in deleteVpnInterface, caused due to fetching the concerned port in ODL/Neutron Ports Config DS and finding it absent there.

1. This is strange in the first process, since no remove() DCN on NeutronPortChangeListener is received for the same.

2. Some intermediate TRACE logs on neutronvpn-impl seem missing since add() for the same port at least should have come, as also reflected by further processing, but the absence of add() calls looks absurd.

3. Anyway, this exception lands for an IPv6 port, since VPNService is not currently processing IPv6 ports and subnets, thinking through a fix to filter out such ports and subnets at NeutronVPN level itself, to avoid further processing of the same (population in subnetmaps, leading to notifications, etc).

Comment by Abhinav Gupta [ 24/Jan/17 ]

Missed adding the log above: https://logs.opendaylight.org/releng/jenkins092/netvirt-csit-1node-openstack-mitaka-gate-transparent-carbon/475/archives/odl1_karaf.log.gz

Comment by Abhinav Gupta [ 30/Jan/17 ]

Fixed by https://git.opendaylight.org/gerrit/#/c/51022/

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