Ask Your Question

Revision history [back]

Getting 'HTTP 500' while creating keystone user admin

I gone through the Openstack Official Installation for IceHouse release. I followed up step by step process to configure Identity service. I have tried my level best to trouble shoot this issue. But no luck.. It really appreciate if any export can only guide me How I can fix this issue..

Please find the below Details as per my configuration..

KeyStone Configuration FIle

@control ~]# grep ^[^#] /etc/keystone/keystone.conf
admin_token = 90cc837531395fcba9c0
connection = mysql://keystone:labs123@

In mysql db successfully granted privilleges for 'keystone'@'localhost' and 'keystone'@'%' with appropiate password. Created database tables for the Identity Service. Successfully created PKI tokens for signing keys and certificates and restrict access. and recursily chage ownership with Keystone user and group. Created admin token "openssl rand -hex 10" which was updated my keystone.conf file.

Service Token and endpoint updated env.

@control ~]# env | egrep 'OS_SERVICE_TOKEN|OS_SERVICE_ENDPOINT'

But still I am getting below error while I executing below command with debug leavel.. Please have a look into to debug error and help me to fix this issue.. Please elaborate why this error happening.. So In future I will make a note on this..

@control ~]# keystone --debug user-create --name=admin --pass=labs123
DEBUG:keystoneclient.session:REQ: curl -i -X POST -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 90cc837531395fcba9c0" -d '{"user": {"email": "", "password": "labs123", "enabled": true, "name": "admin", "tenantId": null}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1):
DEBUG:urllib3.connectionpool:"POST /v2.0/users HTTP/1.1" 500 143
DEBUG:keystoneclient.session:RESP: [500] {'date': 'Sun, 14 Sep 2014 17:07:25 GMT', 'content-type': 'application/json', 'content-length': '143', 'vary': 'X-Auth-Token'}
RESP BODY: {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}}

DEBUG:keystoneclient.session:Request returned failure status: 500
An unexpected error prevented the server from fulfilling your request. (HTTP 500)