Internal errors happen if passing malformed body to attach_interface API
Bug #1283909 reported by
Ken'ichi Ohmichi
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Ken'ichi Ohmichi |
Bug Description
"Attach an interface to an instance" v2 API does not validate whether necessary attribute is specified or not.
The lack causes internal errors now.
Changed in nova: | |
assignee: | nobody → Ken'ichi Ohmichi (oomichi) |
tags: | added: api |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
I can confirm that I have encountered same issue .
When following create interface api is called with empty body , http Error code 500 is returned making it difficult for end-user to debug the issue.
Example: /example. com:2020/ v2/0371a910e818 429f88498857276 d8a0a/ f5144641- 2671-491b- 91f6-2318537a2c f5/os-interface
--------------
https:/
servers/
Request Body achment" : {}
{
"interfaceAtt
}
Response
{
"computeFault": {
"message": "The server has either erred or is incapable of performing the requested operation.",
"code": 500
}
}
This is not useful to end-user and doesn't tell user what the parameters are missing. Ideally it should throw 400 Error code.