[NEUTRON-129] Null pointer on port creation Created: 13/Jun/16 Updated: 19/Oct/17 Resolved: 18/Aug/16 |
|
| Status: | Resolved |
| Project: | neutron |
| Component/s: | transcriber |
| Affects Version/s: | master |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Wojciech Dec | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 6053 |
| Description |
|
The following Null Pointer Exception is thrown when creating a Neutron Port as specified below: <p>Problem accessing /controller/nb/v2/neutron/ports. Reason: "port": [ ], , , , { "direction": "ingress", "protocol": null, "description": "", "port_range_max": null, "id": "eec6078c-e9a1-409c-84e7-fa6d675c4fa4", "remote_group_id": "9d3c207a-3d2a-488d-9be1-cf6387bc59af", "remote_ip_prefix": null, "security_group_id": "9d3c207a-3d2a-488d-9be1-cf6387bc59af", "tenant_id": "0b18aae5ad924a01a594bd5148fc95df", "port_range_min": null, "ethertype": "IPv4" } ], |
| Comments |
| Comment by Ed Warnicke [ 13/Jun/16 ] |
|
Try removing fields that have a 'null' value, example: "qos_policy_id": null, When I remove those fields, everything works fine. Please also note, qos_policy_id isn't even a supported field, but apparently |
| Comment by Ed Warnicke [ 14/Jun/16 ] |
|
This should fix the NPE: |
| Comment by Isaku Yamahata [ 14/Jun/16 ] |
|
You hit MOXy bug. https://bugs.eclipse.org/bugs/show_bug.cgi?id=475475 I uploaded a new patch to add qos_policy_id to its bug workaround at If it works for you, I'll merge the patch for networking-odl. |
| Comment by Isaku Yamahata [ 15/Jun/16 ] |
|
I merged tha patch https://review.openstack.org/#/c/329596/ into networking-odl. |