network-ip-availabilities API returns 500 when non-existence network-id is passed

Bug #1657137 reported by Hirofumi Ichihara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Hirofumi Ichihara

Bug Description

The network-ip-availabilities API returns 500 when non-existence network-id is passed.

$ curl -g -i -X GET http://127.0.0.1:9696/v2.0/network-ip-availabilities/090db2f5-3d0f-41f2-b932-a50d33960bca -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN"
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 150
X-Openstack-Request-Id: req-80ec0a12-d6ee-4cab-8649-070e0a986b2e
Date: Tue, 17 Jan 2017 14:16:59 GMT

{"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}

Tags: api
Changed in neutron:
assignee: nobody → Hirofumi Ichihara (ichihara-hirofumi)
importance: Undecided → Low
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/421304

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/421304
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=66c7c604fe3be6b80deaa1cac86117ebad9ee3d1
Submitter: Jenkins
Branch: master

commit 66c7c604fe3be6b80deaa1cac86117ebad9ee3d1
Author: Hirofumi Ichihara <email address hidden>
Date: Wed Jan 18 14:57:03 2017 +0900

    Fix importing old path for exceptions

    The network_ip_availability plugin uses old path for exceptions.
    This patch fixes the path and adds negative test for the exception.

    Change-Id: I9021f76e21b386f371ff73b926553611ab87fb66
    Closes-bug: #1657137

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.0.0b3

This issue was fixed in the openstack/neutron 10.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.