Ask Your Question
0

keystone problems : An unexpected error prevented the server from fulfilling your request. (HTTP 500)

asked 2017-02-18 04:19:29 -0500

hebaojing123 gravatar image

updated 2017-04-04 12:27:28 -0500

rbowen 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 retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-22 11:57:06 -0500

I had similar issue past weekend. Needed to add --os-identity-api-version 3

OS_OPTS_ADMIN="--os-auth-url \"http://${VMHost}:5000/v3\" --os-identity-api-version 3 --os-project-name admin --os-username admin --os-password \"XXXXXXXX\""
OS_OPTS_DEMOADMIN="--os-auth-url \"http://${VMHost}:5000/v3\" --os-identity-api-version 3 --os-project-name demo --os-username demo --os-password \"demo\""
edit flag offensive delete link more

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

Stats

Asked: 2017-02-18 03:37:21 -0500

Seen: 3,942 times

Last updated: May 22 '17