** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => kilo-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1382343
Title:
HTTP 500 is returned when using an invalid port id to attach interface
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When I post an 'attach interface' request to Nova with an invalid port
id, Nova returns an HTTP 500 error and a confusing error message.
REQ: curl -i
'http://10.104.0.214:8774/v2/b6a08719633d416da2d12265debac838/servers/fd21141e-4fb6-4e2a-9638-f37efe854003/os-interface'
-X POST -H "Accept: application/json" -H "Content-Type: application/json" -H
"User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token:
{SHA1}af2fe67d675d5d1c6fb5f55278cbcd98dd83afc5" -d '{"interfaceAttachment":
{"port_id": "c510a9f3-5f45-4e96-8545-54acbbecb2c1"}}'
INFO (connectionpool:203) Starting new HTTP connection (1): 10.104.0.214
DEBUG (connectionpool:295) "POST
/v2/b6a08719633d416da2d12265debac838/servers/fd21141e-4fb6-4e2a-9638-f37efe854003/os-interface
HTTP/1.1" 500 128
RESP: [500] {'date': 'Fri, 17 Oct 2014 05:09:38 GMT', 'content-length':
'128', 'content-type': 'application/json; charset=UTF-8'}
RESP BODY: {"computeFault": {"message": "The server has either erred or is
incapable of performing the requested operation.", "code": 500}}
In fact, Nova works perfect well. The error is caused by my incorrect
input. Nova should be able to address this incorrect input, and return
an HTTP 400 error in order to to inform the user to correct the
request.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1382343/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp