Ask Your Question

Keystone Connection failure ERROR: Internal Server Error (HTTP 500)

asked 2016-01-13 07:41:56 -0500

momina_masood gravatar image

updated 2016-01-14 10:35:59 -0500

rbowen gravatar image

I have install Keystone following the guide for kilo Ubuntu14.04.

When i try to create a service entity:

openstack service create --type identity \
  --description "Openstack Identity" keystone

I obtain:

INFO: urllib3.connectionpool Starting new HTTP connection (1): controller

ERROR: Internal Server Error (HTTP 500)

I am sure that i have connection to "controller",and mysql is configured to accept connections from any host.

I found this answer already but it didn't work for me. This is the one:

apt-get install ubuntu-cloud-keyring

echo "deb" \
"trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list

Or Just create this file manually:

nano /etc/apt/sources.list.d/cloudarchive-kilo.list

And write this inside:

deb trusty-updates/kilo main

Finish it with this command, to make the update:

apt-get update && apt-get dist-upgrade
edit retag flag offensive close merge delete


Can you confirm that keystone is running?

ps -aux | grep keystone
Tony gravatar imageTony ( 2016-01-13 17:13:32 -0500 )edit

The output is like this.. Keystone 2044 0.0 0.3 176308 5728 ? S1 12:31 0.00 % Group -k start

momina_masood gravatar imagemomina_masood ( 2016-01-27 01:53:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-06 02:30:27 -0500

let me tell you the error what I had [root@controller ~]# openstack service create --name keystone --description "OpenStack Identity" identity ERROR: openstack Internal Server Error (HTTP 500) Running it in debug mode gave me following [root@controller ~]# openstack --debug service create --name keystone --description "OpenStack Identity" identity DEBUG: cliff.commandmanager found command 'hypervisor_stats_show'

INFO: openstackclient.common.clientmanager Using auth plugin: token_endpoint DEBUG: openstackclient.common.clientmanager Get auth_ref DEBUG: openstackclient.identity.v2_0.service.CreateService take_action(Namespace(columns=[], description='OpenStack Identity', formatter='table', max_width=0, name='keystone', noindent=False, prefix='', type=None, type_or_name='identity', variables=[])) DEBUG: openstackclient.identity.client Instantiating identity client: DEBUG: keystoneclient.session REQ: curl -g -i -X POST http://controller:35357/v2.0/OS-KSADM/services (http://controller:35357/v2.0/OS-KSADM...) -H "User- Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0e321d6723de6f07f34f7ca06a205b463e9f5f3b" -d '{"OS-KSADM:service": {"type": "identity", "name": "keystone", "description": "OpenStack Identity"}}' INFO: requests.packages.urllib3.connectionpool Starting new HTTP connection (1): controller DEBUG: requests.packages.urllib3.connectionpool "POST /v2.0/OS-KSADM/services HTTP/1.1" 500 527 DEBUG: keystoneclient.session RESP: DEBUG: keystoneclient.session Request returned failure status: 500 ERROR: openstack Internal Server Error (HTTP 500) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cliff/", line 374, in run_subcommand result = File "/usr/lib/python2.7/site-packages/cliff/", line 92, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/site-packages/openstackclient/identity/v2_0/", line 88, in take_action parsed_args.description) File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/", line 43, in create return self._create("/OS-KSADM/services", body, "OS-KSADM:service") File "/usr/lib/python2.7/site-packages/keystoneclient/", line 151, in _create return self._post(url, body, response_key, return_raw, *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 165, in _post resp, body =, body=body, *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 176, in post return self.request(url, 'POST', *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 206, in request resp = super(LegacyJsonAdapter, self).request(args, *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 95, in request return self.session.request(url, method, *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 318, in inner return func(args, *kwargs) File "/usr/lib/python2.7/site-packages/keystoneclient/", line 397, in request raise exceptions.from_response(resp, method, url) InternalServerError: Internal Server Error (HTTP 500) DEBUG: clean_up CreateService DEBUG: got an error: Internal Server Error (HTTP 500) ERROR: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/openstackclient/", line 176, in run return super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/site-packages/cliff/", line 255, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/site-packages/cliff/", line 374, in run_subcommand result = File "/usr/lib/python2.7/site-packages/cliff ... (more)

edit flag offensive delete link more


Even I'm facing the same problem, and I'm doing it first time. Request you can you please provide those two files 2017-06-04 00:16:13.838837 mod_wsgi (pid=21460, process='keystone-admin', application=''): Loading WSGI script '/var/www/cgi-bin/keystone/admin'. 2017-06-04 00:16:13.839181 mod_wsgi (pi

DIL BAHADUR CHHETRI gravatar imageDIL BAHADUR CHHETRI ( 2017-06-04 17:40:22 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-13 07:41:56 -0500

Seen: 1,724 times

Last updated: Jul 06 '16