POST /os-security-groups returns HTTP 500 on invalid input
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Nova does not validate the input on os-security-groups API resource.
curl -X POST 'http://
{"computeFault": {"code": 500, "message": "Unexpected API Error. Please report this at http://
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: ERROR nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: INFO nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: <class 'AttributeError'>
Dec 09 10:27:16 master0 <email address hidden>[3644655]: DEBUG nova.api.
Dec 09 10:27:16 master0 <email address hidden>[3644655]: <class 'AttributeError'> {{(pid=3644655) __call__ /opt/stack/
reproducible on recent master with simple devstack setup
tags: | added: api security-groups |
summary: |
- POST /os-security-groups returns HTTP 500 of invalid input + POST /os-security-groups returns HTTP 500 on invalid input |
As we document in our API docs, this /os-security-groups API resource is now deprecated [1] since API microversion 2.36 [2] which is shipped with the Newton release
[1] https:/ /docs.openstack .org/api- ref/compute/ #create- security- group /docs.openstack .org/nova/ latest/ reference/ api-microversio n-history. html#microversi on
[2] https:/
Accordingly, we can't fix this bug in our project, even within the existing stable branches.