"Create-port" API returns internal server error when allocation_pool's ip address are drained.

Bug #1086226 reported by Rikimaru Honjo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Gary Kotton

Bug Description

"Port creation" API returns internal server error when allocation_pool's ip address drained.
I think "500 internal server error" is unsuitable in this case.

I saw following page, but this case is not defined.
http://docs.openstack.org/api/openstack-network/2.0/content/Create_Port.html

I think this case should return "409" or "503".
(But, I cannot decide "409 " or "503".)

Revision history for this message
dan wendlandt (danwent) wrote :

yeah, this is a bug. It should be something in the 400s I suspect, as the server is behaving correctly, and it is up to the tenant to remedy the situation.

409 seems like a reasonable solution, though I usually think of it as being used when the tenant is making a request that would put the system in an inconsistent state. Another option would just be to return a generic 400 request.

salvatore (API guru) should probably figure out which is more consistent.

Changed in quantum:
status: New → Confirmed
importance: Undecided → Medium
Gary Kotton (garyk)
Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
milestone: none → grizzly-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

Changed in quantum:
status: Confirmed → In Progress
Gary Kotton (garyk)
tags: added: folsom-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/17466
Committed: http://github.com/openstack/quantum/commit/b939b0749a1a37400702286d19951d1682abccc7
Submitter: Jenkins
Branch: master

commit b939b0749a1a37400702286d19951d1682abccc7
Author: Gary Kotton <email address hidden>
Date: Tue Dec 4 14:41:41 2012 +0000

    Returns more appropriate error when address pool is exhausted

    Fixes bug 1086226

    Change-Id: I97a73151a1ed42877116238a6a741c68c75e199a

Changed in quantum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/18647

Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-2 → 2013.1
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.