HTTP 500 error when running keystone [closed]

asked 2014-05-15 10:05:08 -0600

danoreilly gravatar image

updated 2014-05-15 11:07:36 -0600

larsks gravatar image

I see the following error when running keystone:

# keystone user-create --name=admin --pass=pass-admin --email=dan.oreilly@dish.com
An unexpected error prevented the server from fulfilling your request. (HTTP 500)

This is on RHEL 6.5.

HELP!!!!! this worked before, before I had to blow the server away and rebuild it. Now it just plain doesn't work.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by danoreilly
close date 2014-06-05 16:20:11.390775

Comments

What do you see in the keystone server log corresponding to this request?

larsks gravatar imagelarsks ( 2014-05-15 11:06:54 -0600 )edit

Nothing in the keystone.log file at all, save for the startup stuff when it runs.

keystone --debug role-create --name=admin DEBUG:keystoneclient.session:REQ: curl -i -X POST http://tm1cldctll01:35357/v2.0/OS-KSA... -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 56976940553b9aae09c8" -d '{"role": {"name": "admin"}}' INFO:urllib3.connectionpool:Starting new HTTP connection (1): 8080 Unable to establish connection to http://xxxxxxxx:35357/v2.0/OS-KSADM/r...

danoreilly gravatar imagedanoreilly ( 2014-05-15 11:19:30 -0600 )edit

If you run the keystone server with debug logging enabled to you see anything more informative?

larsks gravatar imagelarsks ( 2014-05-15 16:16:06 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-05 16:19:55 -0600

danoreilly gravatar image

Rebuit the system ,all works now.

edit flag offensive delete link more
0

answered 2014-05-15 16:56:44 -0600

dro gravatar image

updated 2014-05-15 21:50:21 -0600

did you follow the instruction on chp3 of the openstack setup manual, specifically exporting token?

$ export OS_SERVICE_TOKEN=ADMIN_TOKEN   # you get this token from /etc/keystone/keystone.conf 
$ export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
edit flag offensive delete link more
0

answered 2014-05-16 03:48:16 -0600

davide gravatar image

updated 2014-05-16 03:50:38 -0600

HI, I am not sure this is the same error, but when I install on fc20 using packstack (mutinied), I get:

Error: /Stage[main]/Keystone::Roles::Admin/Keystone_role[_member_]: Could not evaluate: Execution of '/usr/bin/keystone --endpoint http://127.0.0.1:35357/v2.0/ role-list' returned 2: usage: keystone [--version] [--timeout ] You will find full trace in log /var/tmp/packstack/20140509-174111-zW7QlI/manifests/_keystone.pp.log

To solve this error I replaced --endpoint with --os-endpoint in /usr/lib/python2.7/site-packages/packstack/puppet/modules/keystone/lib/puppet/provider/keystone.rb and then keystone installation worked.

I didn't see this error before...

HTH

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-15 10:05:08 -0600

Seen: 1,791 times

Last updated: Jun 05 '14