Ask Your Question
0

keystone-http-500

asked 2016-09-17 07:25:24 -0500

khalidabubacker gravatar image

Hi Guys,

When i am trying to execute below command it is showing error below with logs

openstack service create --name keystone

An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-49a8a635-c6fe-4c73-9f62-8aabfd216b3b)

[root@CONTROLLER ~]# tail /var/log/keystone/keystone.log 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi return dialect.connect(cargs, *cparams) 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 385, in connect 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi return self.dbapi.connect(cargs, *cparams) 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi File "/usr/lib64/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi return Connection(args, *kwargs) 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 187, in __init__ 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi super(Connection, self).__init__(args, *kwargs2) 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") 2016-09-17 16:21:26.984 8688 ERROR keystone.common.wsgi 2016-09-17 16:21:26.986 8688 INFO eventlet.wsgi.server [req-49a8a635-c6fe-4c73-9f62-8aabfd216b3b - - - - -] 10.0.0.10 - - [17/Sep/2016 16:21:26] "POST /v3/auth/tokens HTTP/1.1" 500 381 0.005552

looking for your reply regards khalid

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-02-18 03:42:04 -0500

hebaojing123 gravatar image

Problem

[root@compute2 ~]# openstack --os-auth-url http://10.192.27.38:35357/v3 --os-project-domain-id default --os-user-domain-id default --os-project-name admin --os-username admin --os-auth-type password token issue Password:

An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-3bcf74c8-6e02-4e62-90d2-199db30944e9)
( I totally referrence the document from official site:  
https://docs.openstack.org/liberty/install-guide-rdo/)

log

var/log/keystone/keystone.log

2017-02-16 15:33:51.002 7752 INFO keystone.common.wsgi [req-b63a1476-fb6f-4e36-ab37-b6dc0b02e16f - - - - -] GET http://10.192.27.38:35357/v3/

2017-02-16 15:33:51.025 7751 INFO keystone.common.wsgi [req-85fabaac-b430-4a0f-8585-db8eadd1699b - - - - -] POST http://10.192.27.38:35357/v3/auth/tokens

2017-02-16 15:33:58.751 7751 WARNING keystone.common.wsgi [req-85fabaac-b430-4a0f-8585-db8eadd1699b - - - - -] An unexpected error prevented the server from fulfilling your request.

[root@compute2 ~]# vim /var/log/httpd/keystone_access.log

10.192.27.38 - - [18/Feb/2017:09:08:01 +0800] "GET /v3/users HTTP/1.1" 200 483 "-" "python-keystoneclient"
10.192.27.38 - - [18/Feb/2017:09:08:24 +0800] "GET /v3/users HTTP/1.1" 200 483 "-" "python-keystoneclient"
10.192.27.38 - - [18/Feb/2017:09:15:08 +0800] "GET /v3/users HTTP/1.1" 200 483 "-" "python-keystoneclient"
10.192.27.38 - - [18/Feb/2017:09:15:25 +0800] "GET /v3/projects HTTP/1.1" 200 906 "-" "python-keystoneclient"
10.192.27.38 - - [18/Feb/2017:09:15:44 +0800] "GET /v3/endpoints HTTP/1.1" 200 1061 "-" "python-keystoneclient"
10.192.27.38 - - [18/Feb/2017:09:15:44 +0800] "GET /v3/services/644d3fb67ce842f883de191b468a190c HTTP/1.1" 200 242 "-" "python-keystoneclient"

10.192.27.38 - - [18/Feb/2017:09:15:44 +0800] "GET /v3/services/644d3fb67ce842f883de191b468a190c HTTP/1.1" 200 242 "-" "python-keystoneclient"

10.192.27.38 - - [18/Feb/2017:09:15:44 +0800] "GET /v3/services/644d3fb67ce842f883de191b468a190c HTTP/1.1" 200 242 "-" "python-keystoneclient"

10.192.27.38 - - [18/Feb/2017:09:16:52 +0800] "GET /v3 HTTP/1.1" 200 252 "-" "python-openstackclient"
10.192.27.38 - - [18/Feb/2017:09:16:52 +0800] "POST /v3/auth/tokens HTTP/1.1" 500 143 "-" "python-openstackclient"

Detailed info

[root@compute2 ~]# cat token

export OS_TOKEN=a5fb8a0d66e9466fde39
export OS_URL=http://10.192.27.38:35357/v3
export OS_IDENTITY_API_VERSION=3

[root@compute2 ~]# source token

[root@compute2 ~]# openstack user list

+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 260b2fa950744bbd9fa1651193cc7ea8 | demo  |
| 6f6e276273094b1090feca45d74c6e88 | admin |
+----------------------------------+-------+

[root@compute2 ~]# openstack project list

+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 6c80755053104de3aa2539ead9fce125 | demo    |
| ba2a832e17ef44be81489e5965d9fad4 | service |
| cd02d7e4ee2f4df4ba00aac6b5d41c3e | admin   |
+----------------------------------+---------+

[root@compute2 ~]# openstack endpoint list

+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                            |
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+
| 3f039e21d4c54035af9467cfbf6c324a | RegionOne | keystone     | identity     | True    | public    | http://10.192.27.38:5000/v2.0  |
| 5903ddd4193a4167b4900d4c18d7eeb3 | RegionOne | keystone     | identity     | True    | internal  | http://10.192.27.38:5000/v2.0  |
| 5a53b2a6f3b948c094d7cb05aaf3d712 | RegionOne | keystone     | identity     | True    | admin     | http://10.192.27.38:35357/v2.0 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------+

[root@compute2 ~]# unset OS_TOKEN OS_URL

[root@compute2 ~]# openstack --os-auth-url http://10.192.27.38:35357/v3 --os-project-domain-id default --os-user-domain-id default --os-project-name admin --os-username admin --os-auth-type password token issue

Password:

An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-3bcf74c8-6e02-4e62-90d2-199db30944e9)

the detailed info about port

[root@compute2 ~]# lsof -i:15672
COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
beam ...
(more)
edit flag offensive delete link more
0

answered 2017-01-08 10:34:46 -0500

xbyan gravatar image

Why my openstack environment does not have the "keystone.log" file

edit flag offensive delete link more

Comments

Execute the command su -s /bin/sh -c "keystone-manage db_sync" keystone after you have create the DB keystone. Then you will see the keystone.log

hebaojing123 gravatar imagehebaojing123 ( 2017-02-18 03:44:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-17 07:25:24 -0500

Seen: 1,091 times

Last updated: Sep 17 '16