Ask Your Question
0

keystone: error 500 when creating identity endpoint

asked 2015-06-14 11:31:19 -0500

pirlouit gravatar image

Hello

I have the exact same issue than in this thread but I don't understand the resolution process: https://ask.openstack.org/en/question/58557/keystone-endpoint-create-500-error/?answer=68254#post-id-68254 (https://ask.openstack.org/en/question...)

When creating the identity endpoint following the guide http://docs.openstack.org/juno/install-guide/install/apt/content/keystone-services.html (http://docs.openstack.org/juno/instal...), I get a "An unexpected error prevented the server from fulfilling your request. (HTTP 500)" error. My cloud design runs openstack (Juno) over 3 Virtual Machines (Ubuntu server 14.04), but at that point (keystone install and setup) I am only working on the controller node.

openstack@controller:~$ more source.src 
export OS_SERVICE_TOKEN=f000c6975f9c93d5cb5e
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
openstack@controller:~$ source source.src 
openstack@controller:~$ keystone --debug endpoint-create --service-id fcb0d0f94e19474fad673041534a902c --publicurl http://controller:5000/v2.0 --internalurl http://controller:5000/v2.0 --adminurl http://controller:35357/v2.0 --region nantes
DEBUG:keystoneclient.session:REQ: curl -i -X GET http://controller:35357/v2.0/OS-KSADM/services/fcb0d0f94e19474fad673041534a902c -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: f000c6975f9c93d5cb5e"
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/fcb0d0f94e19474fad673041534a902c HTTP/1.1" 200 158
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Tue, 09 Jun 2015 20:42:02 GMT', 'vary': 'X-Auth-Token', 'content-length': '158', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'} 
RESP BODY: {"OS-KSADM:service": {"id": "fcb0d0f94e19474fad673041534a902c", "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: f000c6975f9c93d5cb5e" -d '{"endpoint": {"adminurl": "http://controller:35357/v2.0", "service_id": "fcb0d0f94e19474fad673041534a902c", "region": "nantes", "internalurl": "http://controller:5000/v2.0", "publicurl": "http://controller: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)
openstack@controller:~$ 
openstack@controller:~$ 
openstack@controller:~$ netstat -an | grep -i listen
tcp        0      0 10.0.2.15:3306          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN     
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:35357           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
unix  2      [ ACC ]     STREAM     LISTENING     11817    /var/run/libvirt/libvirt-sock
unix  2      [ ACC ]     STREAM     LISTENING     11819    /var/run/libvirt/libvirt-sock-ro
unix  2      [ ACC ]     STREAM     LISTENING     9263     /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     8269     @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     11913    /var/run/mysqld/mysqld.sock
unix  2      [ ACC ...
(more)
edit retag flag offensive close merge delete

Comments

The response in your referenced question was to unset both OS_SERVICE_ENDPOINT OS_SERVICE_TOKEN. Did you attempt to do this after sourcing "source.src"?

raul.flores gravatar imageraul.flores ( 2015-06-14 20:13:51 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-06-15 03:25:20 -0500

Please also check if keystone database is sync. If not then recreate the keystone database and then sync it and then start the keystone service.

After this, check the keystone.conf entries and then try to check if you are still getting any error while creating endpoints or user or tenants.

edit flag offensive delete link more

Comments

When entering into mariadb, with sql commands into the keystone database, I can see the "service" table has one record, and the user table has two. Does that mean the keystone db is correctly synchronized?

pirlouit gravatar imagepirlouit ( 2015-06-15 13:14:50 -0500 )edit

does anyone can help me? I am totally stuck here.

pirlouit gravatar imagepirlouit ( 2015-06-20 13:36:06 -0500 )edit
0

answered 2015-06-15 03:45:07 -0500

pirlouit gravatar image

updated 2015-06-15 13:16:01 -0500

To Raul,>it does not seem to work:

openstack@controller:~$ more source.src 
export OS_SERVICE_TOKEN=f000c6975f9c93d5cb5e
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
openstack@controller:~$ unset OS_SERVICE_TOKEN
openstack@controller:~$ unset OS_SERVICE_ENDPOINT
openstack@controller:~$ echo OS_SERVICE_TOKEN
OS_SERVICE_TOKEN
openstack@controller:~$ echo $OS_SERVICE_TOKEN

openstack@controller:~$ echo $OS_SERVICE_ENDPOINT

openstack@controller:~$ keystone --debug endpoint-create --service-id fcb0d0f94e19474fad673041534a902c --publicurl http://controller:5000/v2.0 --internalurl http://controller:5000/v2.0 --adminurl http://controller:35357/v2.0 --region nantes
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
edit flag offensive delete link more

Comments

does anyone can help me? I am totally stuck he

pirlouit gravatar imagepirlouit ( 2015-06-20 13:38:10 -0500 )edit

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

1 follower

Stats

Asked: 2015-06-14 11:31:19 -0500

Seen: 1,082 times

Last updated: Jun 15 '15