Keystone connection fail

2.8k views Asked by At

I have install Keystone following the guide for 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: cliff.app Internal Server Error (HTTP 500)

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

My configuration file of keystone is:

[DEFAULT] admin_token =ADMIN 
admin_port=35357 
public_port=5000

[database] 
connection = mysql://keystone:keystone@controller/keystone

[memcache] 
servers = localhost:11211

[token] 
provider = keystone.token.providers.uuid.Provider 
driver =keystone.token.persistence.backends.memcache.Token

[revoke] 
driver = keystone.contrib.revoke.backends.sql.Revoke

[DEFAULT] 
verbose = True

And Apache is configured as shown in the guide.

Where am i failing?

1

There are 1 answers

0
Bruno B. Carvalho On

I dont' know if you found and answer already but I also had this problem. The reason was quite simple really, one of the instructions on the guide didn't work for me. This is the one:

# apt-get install ubuntu-cloud-keyring
# echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" \
"trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list

So I was not using the kilo packages but older ones (urllib3 being one of them). How to fix this? Just create this file manually:

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

And just write this inside:

deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main

Finish it with this command, to make the update:

# apt-get update && apt-get dist-upgrade

You should have a lot of new updates now. There you go, hope it helps, it fixed the problem for me at least.

Bruno