[NEUTRON-72] Null pointer exception at org.opendaylight.neutron.spi.NeutronNetwork.addSubnet Created: 29/Sep/15 Updated: 30/Sep/15 Resolved: 30/Sep/15 |
|
| Status: | Resolved |
| Project: | neutron |
| Component/s: | neutron-spi |
| Affects Version/s: | master |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Rijil Abraham | Assignee: | Ravindra Kenchappa |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 4365 | ||||||||
| Description |
|
When a tempest test for UPDATE NETWORK is executed, the test fails with the following exception. Few subnets will not be deleted 2015-09-28 08:40:32,999 | WARN | qtp133087245-648 | ServletHandler | 165 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.15.v20140411 | /controller/nb/v2/neutron/subnets |
| Comments |
| Comment by Rijil Abraham [ 29/Sep/15 ] |
|
Attachment tempest_log.txt has been added with description: Tempest log |
| Comment by Ravindra Kenchappa [ 30/Sep/15 ] |
|
This issue is because when a network is modified the existing network is read from MD and here the new instance of NeutronNetwork is created and will be populate with the values read form MD. When the Network is created the SUBNET list is initialized (subnets []) but when the network is read from the MD the SUBET list is set to NULL. So what we have to do is, when the new instance of NeutronNetwork is created in NeutronNetworkInterface.fromMd(Network) call its init() method to set its members to default value, so the SUBNET will be empty list instead of NULL. If for some reason when we read the network info fromMd() the subnet is null then network.subnet[] list will be empty. With the above two fix/ code changes most of the tempest API test suite (around 250 test cases) are passing. If all of the testcases in API suite pass then only we can move on next test suite where we test end-to-end. |