PortLimitExceeded results in 500 error from POST /servers/{server_id}/os-interface
Bug #1823203 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Pike |
Confirmed
|
Medium
|
Unassigned | ||
Queens |
Confirmed
|
Medium
|
Unassigned | ||
Rocky |
Confirmed
|
Medium
|
Unassigned | ||
Stein |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
This is based on code inspection at the moment, but attaching an interface (port) to a server by providing a network and having nova-compute create the port on that network can result in an over-quota failure from neutron:
Which is not handled in the API controller:
So it will result in a 500 response from the API when it should really be something like 403.
To post a comment you must log in.
It should be relatively easy to recreate this in devstack by setting [quotas] /quota_ port=1 in neutron.conf, create a server and then try to attach a new port to the server via the same network.