[NETVIRT-700] NPE at QosNeutronUtils.hasBandwidthLimitRule Created: 01/Jun/17  Updated: 06/Apr/18  Resolved: 06/Apr/18

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

Type: Bug Priority: Medium
Reporter: Riyazahmed Talikoti Assignee: Unassigned
Resolution: Cannot Reproduce 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 karaf.log     Text File karaf_devstackSetup.log    
Issue Links:
Relates
relates to NETVIRT-991 neutron vpn received a port u pdate()... Resolved
External issue ID: 8576

 Description   

STEPS TO REPRODUCE. it's very simple.
Step 1. Create a Network(NET1), Subnet(SUBNET1) and 1 Port. and verify if table 50(SMAC) and 51(DMAC) is programmed fine.
Step 2. logout karaf and killall java process and delete data, journal and snapshot folders
Step 3. start karaf and feature:install netvirt-openstack
Step 4. Create a new port in network(NET1) --> NPE occurs

FYI:
1. Added multiple ports before Step 2. all were successfully added.
2. Setup i was working on is a docker setup, where i am creating tap ports via mininet and later setting interface id's like below
ovs-vsctl set Interface "tap23701c04-11" external_ids:iface-id='23701c04-1118-4c65-9425-78a80d49a218'
3. Logs after Step 4 attached.

2017-05-31 15:43:53,962 | WARN | eChangeHandler-0 | NeutronPortChangeListener | 365 - org.opendaylight.netvirt.neutronvpn-impl - 0.5.0.SNAPSHOT | neutron vpn received a port add() for a network without a provider extension augmentation or with an unsupported network type for the port 23701c04-1318-4c65-9425-78a80d49a218 which is part of network null
2017-05-31 15:43:54,023 | ERROR | eChangeHandler-0 | AsyncDataTreeChangeListenerBase | 320 - org.opendaylight.genius.mdsalutil-api - 0.3.0.SNAPSHOT | Thread terminated due to uncaught exception: AsyncDataTreeChangeListenerBase-DataTreeChangeHandler-0
java.lang.NullPointerException
at org.opendaylight.netvirt.qosservice.QosNeutronUtils.hasBandwidthLimitRule(QosNeutronUtils.java:831)[372:org.opendaylight.netvirt.qosservice-impl:0.5.0.SNAPSHOT]
at org.opendaylight.netvirt.qosservice.QosNeutronPortChangeListener.add(QosNeutronPortChangeListener.java:69)[372:org.opendaylight.netvirt.qosservice-impl:0.5.0.SNAPSHOT]
at org.opendaylight.netvirt.qosservice.QosNeutronPortChangeListener.add(QosNeutronPortChangeListener.java:28)[372:org.opendaylight.netvirt.qosservice-impl:0.5.0.SNAPSHOT]
at org.opendaylight.genius.datastoreutils.AsyncDataTreeChangeListenerBase$DataTreeChangeHandler.run(AsyncDataTreeChangeListenerBase.java:155)[320:org.opendaylight.genius.mdsalutil-api:0.3.0.SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_73]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_73]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_73]



 Comments   
Comment by Riyazahmed Talikoti [ 01/Jun/17 ]

Attachment karaf.log has been added with description: karaf log file

Comment by Riyazahmed Talikoti [ 01/Jun/17 ]

Attachment karaf_devstackSetup.log has been added with description: karaf logs devstack setup

Comment by Riyazahmed Talikoti [ 01/Jun/17 ]

I was able to reproduce issue with devstack (openstack mitaka) setup.
Karaf logs with devstack setup attached.

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