← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1416953] Re: Region can be created with empty body, need confirm if we need some required parameters for CreateRegion

 

I think technically this is working as designed, the comment in the code
says that region creation takes no parameters.

I tried: 
  curl -s -H "X-Auth-Token: openstack" -H "Content-Type: application/json" -d '{ "region": {}}' http://localhost:5000/v3/regions | python -mjson.tool

and it worked fine,

description is optional, and so is parent_region_id.

** Changed in: keystone
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1416953

Title:
  Region can be created with empty body, need confirm if we need some
  required parameters for CreateRegion

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  http_log
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "POST /v3/regions HTTP/1.1[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "X-Auth-Token: 13b2e551af074494ac3d5440e406e1ac[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "Content-Type: application/json[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "Content-Length: 25[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "Host: localhost:9999[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "{[\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> " "region":
  {[\n]" Wed Dec 03 16:35:00 CST 2014:DEBUG:>> " }
  [\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:>> "}"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "HTTP/1.1 201 Created[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Date: Wed, 03 Dec 2014 08:35:00 GMT[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Server: Apache/2.4.9 (Debian)[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Vary: X-Auth-Token[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Content-Length: 200[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Keep-Alive: timeout=5, max=100[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Connection: Keep-Alive[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "Content-Type: application/json[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "[\r][\n]"
  Wed Dec 03 16:35:00 CST 2014:DEBUG:<< "{"region": {"url": null, "parent_region_id": null, "id": "c59fa38d4f9f49e48879f1e5bb137cda", "links":
  {"self": "http://localhost:9999/v3/regions/c59fa38d4f9f49e48879f1e5bb137cda"}
  , "description": ""}}"

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


References