Ask Your Question

keystone endpoint-create 500 error

asked 2015-01-16 09:28:33 -0600

fwolfinger gravatar image

updated 2015-01-17 05:02:09 -0600

9lives gravatar image

On Ubuntu 14.04 Server, I run the following command per the instructions:

keystone --debug endpoint-create --service-id $(keystone service-list | awk '/ identity / {print $2}') --publicurl 'http://10.x.x.x:5000/v2.0' --internalurl 'http://10.x.x.x:5000/v2.0' --adminurl 'http://10.x.x.x:35357/v2.0' --region regionOne

And get this result (with --debug):

DEBUG:keystoneclient.session:REQ: curl -i -X GET http://controller:35357/v2.0/OS-KSADM/services/f063e5c1121240b5863d2664e65c5936 -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: 68dfb3061ca6e0aef60e"
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to 600.0
DEBUG:urllib3.connectionpool:"GET /v2.0/OS-KSADM/services/f063e5c1121240b5863d2664e65c5936 HTTP/1.1" 200 158
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Fri, 16 Jan 2015 15:08:37 GMT', 'vary': 'X-Auth-Token', 'content-length': '158', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 
RESP BODY: {"OS-KSADM:service": {"id": "f063e5c1121240b5863d2664e65c5936", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}}

DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/endpoints -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 68dfb3061ca6e0aef60e" -d '{"endpoint": {"adminurl": "http://10.x.x.x:35357/v2.0", "service_id": "f063e5c1121240b5863d2664e65c5936", "region": "regionOne", "internalurl": "http://10.x.x.x:5000/v2.0", "publicurl": "http://10.x.x.x:5000/v2.0"}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to 600.0
DEBUG:urllib3.connectionpool:"POST /v2.0/endpoints HTTP/1.1" 500 143
DEBUG:keystoneclient.session:Request returned failure status: 500
An unexpected error prevented the server from fulfilling your request. (HTTP 500)

Any thoughts? All previous instructions completed successfully.

Thanks! Fred

edit retag flag offensive close merge delete


which version of openstack?what did the /etc/keystone/keystone.conf say,paste it to please.

9lives gravatar image9lives ( 2015-01-17 05:08:09 -0600 )edit

Thank you all for the responses! I was out of town this weekend, so my apologies for the delay.

fwolfinger gravatar imagefwolfinger ( 2015-01-19 06:21:53 -0600 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2015-01-18 23:51:59 -0600


please do check what command have you given my suspicion is in

keystone endpoint-create --service-id= "keystone service ID" ........

where keystone service ID is the ID generated after keystone service-create command

you need to copy that ID and paste in keystone endpoint-create command.

edit flag offensive delete link more


after it shows proper endpoint-list do unset environment variables as jeffrey-olsen said and execute token-get commands.

PradeepNaik gravatar imagePradeepNaik ( 2015-01-18 23:56:02 -0600 )edit

answered 2015-01-17 02:08:06 -0600

Run this again and then check keystone.log for more info. You should see the 500 error in the keystone server log.

edit flag offensive delete link more

answered 2015-01-17 09:32:10 -0600

jeffrey-olsen gravatar image

I ran into a similar error the other day. I was able to fix it by running:


I reinstalled Keystone afterwards.

Keystone - User Guide

edit flag offensive delete link more


keystone-manage db sync doesnt use any of those variables. It only cares about the connection string in keystone.conf to connect to DB and create the schema. It doesnt actually talk to the keystone server at all. In fact keystone server needs to be shutdown during keystone-manage operations.

sfcloudman gravatar imagesfcloudman ( 2015-01-18 17:52:43 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-16 09:28:33 -0600

Seen: 1,642 times

Last updated: Jan 18 '15