Ask Your Question
0

Getting 'HTTP 500' while creating keystone user admin [closed]

asked 2014-09-14 12:47:14 -0500

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
[DEFAULT]
[DEFAULT]
admin_token = 90cc837531395fcba9c0
[assignment]
[auth]
[cache]
[catalog]
[credential]
[database]
connection = mysql://keystone:labs123@192.168.2.51/keystone
[ec2]
[endpoint_filter]
[federation]
[identity]
[kvs]
[ldap]
[matchmaker_ring]
[memcache]
[oauth1]
[os_inherit]
[paste_deploy]
[policy]
[revoke]
[signing]
[ssl]
[stats]
[token]
[trust]

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'
OS_SERVICE_TOKEN=90cc837531395fcba9c0
OS_SERVICE_ENDPOINT=http://192.168.2.51:35357/v2.0/

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 --email=admin@labs.com
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://192.168.2.51:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 90cc837531395fcba9c0" -d '{"user": {"email": "admin@labs.com", "password": "labs123", "enabled": true, "name": "admin", "tenantId": null}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.51
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)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Pradipta_OS_M
close date 2014-09-14 13:38:03.341881

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-14 13:37:24 -0500

I got the answer and I have fixed this issue,, because I did mistake on my admin_token credential.. Luckly I got this error..

@control ~]# keystone tenant-create --name=admin --description="Admin Tenant"
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |           Admin Tenant           |
|   enabled   |               True               |
|      id     | f87792686f494a959c7c312ecba2f233 |
|     name    |              admin               |
+-------------+----------------------------------+
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-14 12:30:42 -0500

Seen: 4,340 times

Last updated: Sep 14 '14