← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1400245] Re: v3 endpoint create api will return 500 error if don't specify region when using kvs backend

 

the json schema should address this now, as it's a required field:
https://github.com/openstack/keystone/blob/master/keystone/catalog/schema.py

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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1400245

Title:
  v3 endpoint create api will return 500 error if don't specify region
  when using kvs backend

Status in OpenStack Identity (keystone):
  Invalid

Bug description:
  When using kvs backend:
  curl -i -H "Content-Type:application/json" -H "X-Auth-Token:$token" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"service_id":"f6b630fe2f59439d85ea0201f90c6afe","interface":"public","url":"http://127.0.0.1"}}'
  HTTP/1.1 500 Internal Server Error
  Vary: X-Auth-Token
  Content-Type: application/json
  Content-Length: 203
  Date: Mon, 08 Dec 2014 08:22:42 GMT

  {"error": {"message": "An unexpected error prevented the server from
  fulfilling your request: 'region_id' (Disable debug mode to suppress
  these details.)", "code": 500, "title": "Internal Server Error"}}

  This is because endpoint does not has default region for kvs backend(it is None for sql backend), and the error happens in 
  https://github.com/openstack/keystone/blob/25d742ada803d8501e7c004242a625efd07fcaf6/keystone/catalog/controllers.py#L305

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


References