Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New

** Attachment added: "exception.txt"
   
https://bugs.launchpad.net/bugs/1321653/+attachment/4116708/+files/aggr-multi-exc.txt

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to