[NEUTRON-99] null tenant id in MD model causes nullpoint exception Created: 30/Dec/15  Updated: 31/Dec/15

Status: In Review
Project: neutron
Component/s: neutron-spi
Affects Version/s: master
Fix Version/s: None

Type: Bug
Reporter: yong sheng gong Assignee: yong sheng gong
Resolution: Unresolved 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: 4847

 Description   

https://github.com/opendaylight/neutron/blob/master/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronObject.java#L34

above line seems we support null tenant id into neutron MD model, but when it is passed backed into SPI model, we will run into null point failure

at https://github.com/opendaylight/neutron/blob/master/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronObject.java#L49



 Comments   
Comment by Isaku Yamahata [ 30/Dec/15 ]

How did you encouter this?
If possible, can you please provide stack trace?

Comment by Isaku Yamahata [ 30/Dec/15 ]

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

Comment by yong sheng gong [ 30/Dec/15 ]

(In reply to Isaku Yamahata from comment #1)
> How did you encouter this?
> If possible, can you please provide stack trace?

curl --user admin:admin -X POST -H "Content-Type: application/json" -d '{"networks": [

{"name": "private1", "id": "8fff19c7-f008-42e2-a664-f409cf55e45b" }

]}' http://localhost:8181/controller/nb/v2/neutron/networks

and then get it:
curl --user admin:admin -H "Accept: application/json" "http://localhost:8181/controller/nb/v2/neutron/networks/"

Comment by Isaku Yamahata [ 31/Dec/15 ]

Thanks for the command line.

Did you see the issue with openstack neutron?
and What was the operation to openstack neutron?

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