[NEUTRON-128] NullPointerException when posting security group rules Created: 07/Jun/16  Updated: 20/Nov/17  Resolved: 12/Jul/16

Status: Resolved
Project: neutron
Component/s: northbound-api
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Juraj Linkeš Assignee: Isaku Yamahata
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: All


Attachments: Text File security_group_rules_request_and_error.txt    
External issue ID: 6015
Priority: Normal

 Description   

This was seen in Beryllium SR1

The call that I sent (which is a modified OpenStack call) and the resulting error are in attachment.

The request that OpenStack sent contained the string "admin" in some of the tenant_id fields. ODL was throwing errors because "admin" wasn't matching its tenant_id regexp, so I tried to workaround this by manually replacing it with correct tenant_id and sending that, resulting in the NullPointerException.



 Comments   
Comment by Juraj Linkeš [ 07/Jun/16 ]

Attachment security_group_rules_request_and_error.txt has been added with description: contains the request and error

Comment by Isaku Yamahata [ 09/Jul/16 ]

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

Comment by Isaku Yamahata [ 09/Jul/16 ]

You are reporting two issues.

  • "admin" string as tenant-id
  • null pointer exception and

regarding to admin string ad tenant-id.
With normal openstack environment tenant-id is uuid without hyphen("-").
So arbitrarily string isn't allowed.
just you hit this issue with only test purpose? or do you have such requirement?
If so, in what kind of deployment? it would be exotic deployment of neutron.

Regarding to null pointer exception.
The patch was uploaded.
with the patch, you'll get bad request http error instead of null pointer exception.

You should specify the following URL for security group "RULES"
http://192.168.20.15:8181/controller/nb/v2/neutron/security-rules

not security-groups.
Since with correct URL and request body, you don't get null pointer exception.
this bug is not critical. So only the master branch is fixed. The beryllium release won't be fixed.

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