yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #25336
[Bug 1400245] [NEW] v3 endpoint create api will return 500 error if don't specify region when using kvs backend
Public bug reported:
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/master/keystone/catalog/controllers.py#L263
** Affects: keystone
Importance: Undecided
Assignee: wanghong (w-wanghong)
Status: New
** Changed in: keystone
Assignee: (unassigned) => wanghong (w-wanghong)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to 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):
New
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/master/keystone/catalog/controllers.py#L263
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1400245/+subscriptions
Follow ups
References