Ask Your Question
1

keystone endpoint-create 500 error

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

fwolfinger gravatar image

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

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:RESP:
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

Comments

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

9lives gravatar image9lives ( 2015-01-17 05:08:09 -0500 )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 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

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

hello,

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

Comments

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 -0500 )edit
0

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

jeffrey-olsen gravatar image

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

# unset OS_SERVICE_ENDPOINT
# unset OS_SERVICE_TOKEN

I reinstalled Keystone afterwards.

Keystone - User Guide

edit flag offensive delete link more

Comments

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 -0500 )edit
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 1,585 times

Last updated: Jan 18 '15