yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17697
[Bug 1321653] Re: Got 500 when adding list type host to an aggregate
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => juno-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/1321653
Title:
Got 500 when adding list type host to an aggregate
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Steps to reproduce as admin:
1. create an aggregate (ID 1)
$ nova aggregate-create foo
2. curl -i "http://127.0.0.1:8774/v2/"`keystone token-get | awk '/ tenant_id /{print $4}'`"/os-aggregates/1/action" -X POST -H "Content-Type: application/json" -H "X-Auth-Token: "`keystone token-get | awk '/ id /{print $4}'` -d '{"add_host": {"host": ["host-2", "host-1"]}}
HTTP/1.1 500 Internal Server Error
Content-Length: 128
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-f6ea35a8-029a-444a-9741-7c6abd27f294
Date: Wed, 21 May 2014 08:34:57 GMT
{"computeFault": {"message": "The server has either erred or is
incapable of performing the requested operation.", "code": 500}
Expected solution:
A: Response with 400(Bad Request) when the "host" value is not the expected type.
B: Add multiple hosts by a single request
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1321653/+subscriptions
References