← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 891435] Re: Invalid availability_zone didn't return HTTP/1.1 400 Bad Request

 

** No longer affects: openstack-qa

-- 
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/891435

Title:
  Invalid availability_zone didn't return HTTP/1.1 400 Bad Request

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Invalid availability_zone didn't return HTTP/1.1 400 Bad Request
  This should be return invalid availability_zone error message.

  Test
  nova@freecloud-a-2:~/devstack4/devstack$ curl -i -H "x-auth-token: $AUTHTOKEN" -H "content-type: application/json" -d '{"server":{"name":"fuga","imageRef":2,"flavorRef":3,"availability_zone":"badzone"}}' $APIURL/v1.1/2/servers
  HTTP/1.1 202 Accepted
  Content-Type: application/json
  Content-Length: 718
  Date: Wed, 16 Nov 2011 23:54:17 GMT

  {"server": {"status": "BUILD", "updated": "2011-11-16T23:54:17Z",
  "hostId": "", "user_id": "demo", "name": "fuga", "links": [{"href":
  "http://127.00.1:8774/v1.1/2/servers/7";, "rel": "self"}, {"href":
  "http://127.00.1:8774/2/servers/7";, "rel": "bookmark"}], "addresses":
  {}, "tenant_id": "2", "image": {"id": "2", "links": [{"href":
  "http://127.00.1:8774/2/images/2";, "rel": "bookmark"}]}, "created":
  "2011-11-16T23:54:17Z", "uuid": "1a79a930-b1fa-42e3-a68b-
  cff655cbdb5e", "accessIPv4": "", "accessIPv6": "", "key_name": null,
  "adminPass": "y6LU47nRJasskwCK", "progress": 0, "flavor": {"id": "3",
  "links": [{"href": "http://127.00.1:8774/2/flavors/3";, "rel":
  "bookmark"}]}, "config_drive": "", "id": 7, "metadata": {}}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/891435/+subscriptions