[NETVIRT-22] throws NullPointerException while creating a network without br-int interface. Created: 01/Jun/16  Updated: 08/Jun/16  Resolved: 08/Jun/16

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

Type: Bug
Reporter: Vinothkumar Assignee: Vinothkumar
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: Text File create_nw_without_brint.txt    
External issue ID: 5988

 Description   

2016-05-30 19:05:30,365 | ERROR | ntDispatcherImpl | TenantNetworkManagerImpl | 283 - org.opendaylight.netvirt.openstack.net-virt - 1.2.4.SNAPSHOT | Exception during handlingNeutron network delete
java.lang.NullPointerException
at org.opendaylight.netvirt.openstack.netvirt.impl.SouthboundImpl.extractTerminationPointAugmentations(SouthboundImpl.java:461)[283:org.opendaylight.netvirt.openstack.net-virt:1.2.4.SNAPSHOT]
at org.opendaylight.netvirt.openstack.netvirt.impl.SouthboundImpl.getTerminationPointsOfBridge(SouthboundImpl.java:416)[283:org.opendaylight.netvirt.openstack.net-virt:1.2.4.SNAPSHOT]
at org.opendaylight.netvirt.openstack.netvirt.impl.SecurityServicesImpl.getNode(SecurityServicesImpl.java:587)[283:org.opendaylight.netvirt.openstack.net-virt:1.2.4.SNAPSHOT]

How to reproduce:
1. ODL Controller with control and compute node is UP.
2. Delete br-int interface in control node.
3. Create a network.

Cause of the bug is trying to read the ovsdb ports when node is null for br-int.



 Comments   
Comment by Vinothkumar [ 01/Jun/16 ]

Attachment create_nw_without_brint.txt has been added with description: Creating a network without br-int

Comment by Dhevendran Kulandaivel [ 08/Jun/16 ]

Hi Vinothkumar

Is there any consistent step to reproduce this issue?

Thanks & Regards,
Dhevendran K

Comment by Vinothkumar [ 08/Jun/16 ]

(In reply to Dhevendran Kulandaivel from comment #1)
> Hi Vinothkumar
>
> Is there any consistent step to reproduce this issue?
>
> Thanks & Regards,
> Dhevendran K

Hi Dhevendran,

How to reproduce:
1. ODL Controller + Openstack with control and compute node is UP.
2. Delete br-int interface in control node.
3. Create a network.

Then need to check karaf log , we can see logging the NullPointerException. This exception cause is trying to reading/extracting termination points of deletion br-int interface node.

Comment by Dhevendran Kulandaivel [ 08/Jun/16 ]

Hi Vinothkumar

I have pushed a patch https://git.opendaylight.org/gerrit/#/c/39992/

Let me know whether this solves the issue

Thanks & Regards,
Dhevendran K

Comment by Vinothkumar [ 08/Jun/16 ]

Hi Dhevendran,

Thanks for your patch. Already the bug related patch is pushed, and currently review is progress.
https://git.opendaylight.org/gerrit/#/c/39984/

Kindly let me know in case of any queries.

Thanks,
Vinoth

Comment by Dhevendran Kulandaivel [ 08/Jun/16 ]

Hi Vinothkumar

Thanks for your input , my patch https://git.opendaylight.org/gerrit/#/c/39992/ is abandoned now

Thanks & Regards,
Dhevendran K

Comment by Sam Hague [ 08/Jun/16 ]

be: https://git.opendaylight.org/gerrit/#/c/39931/
b: https://git.opendaylight.org/gerrit/#/c/39984/

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