Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keystone user-create - An unexpected error prevented the server from fulfilling your request. (HTTP 500)

[root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL An unexpected error prevented the server from fulfilling your request. (HTTP 500) Hello, Trying to install keystone service, but cannot deal with keystone user-create command. Please find bellow some information Thank you for your help.

[root@dvopscontroller etc]# echo $OS_SERVICE_TOKEN e1e26d356b408e65b46a [root@dvopscontroller etc]# echo $OS_SERVICE_ENDPOINT http://dvopscontroller:35357/v2.0 [root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL An unexpected error prevented the server from fulfilling your request. (HTTP 500) [root@dvopscontroller etc]#

[root@dvopscontroller etc]# vi keystone/keystone.conf admin_token = e1e26d356b408e65b46a connection = mysql://keystone:KEYSTONE_DBPASS@dvopscontroller/keystone

[root@dvopscontroller etc]# tail /var/log/keystone/keystone.log 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py", line 283, in connect 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi return self.dbapi.connect(cargs, *cparams) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi return Connection(args, *kwargs) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__ 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi super(Connection, self).__init__(args, *kwargs2) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi 2014-08-20 11:00:01.707 4451 CRITICAL keystone [-] OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None

[root@dvopscontroller etc]# netstat -anutp|grep 35357 tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN 4262/python [root@dvopscontroller etc]# telnet 0 35357 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. get <head> <title>Error response</title> </head> <body>

Error response

Error code 400.

Message: Bad request syntax ('get').

Error code explanation: 400 = Bad request syntax or unsupported method. </body> Connection closed by foreign host. [root@dvopscontroller etc]#

keystone user-create - An unexpected error prevented the server from fulfilling your request. (HTTP 500)

[root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL An unexpected error prevented the server from fulfilling your request. (HTTP 500) Hello, Trying to install keystone service, but cannot deal with keystone user-create command. Please find bellow some information Thank you for your help.

[root@dvopscontroller etc]# echo $OS_SERVICE_TOKEN
e1e26d356b408e65b46a
[root@dvopscontroller etc]#  echo $OS_SERVICE_ENDPOINT
http://dvopscontroller:35357/v2.0
[root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
[root@dvopscontroller etc]#

etc]# [root@dvopscontroller etc]# vi keystone/keystone.conf admin_token = e1e26d356b408e65b46a connection = mysql://keystone:KEYSTONE_DBPASS@dvopscontroller/keystone

mysql://keystone:KEYSTONE_DBPASS@dvopscontroller/keystone [root@dvopscontroller etc]# tail /var/log/keystone/keystone.log 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py", line 283, in connect 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi return self.dbapi.connect(cargs, *cparams) self.dbapi.connect(*cargs, **cparams) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi return Connection(args, *kwargs) Connection(*args, **kwargs) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__ 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi super(Connection, self).__init__(args, *kwargs2) self).__init__(*args, **kwargs2) 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None 2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi 2014-08-20 11:00:01.707 4451 CRITICAL keystone [-] OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None

None [root@dvopscontroller etc]# netstat -anutp|grep 35357 tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN 4262/python [root@dvopscontroller etc]# telnet 0 35357 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. get <head> <title>Error response</title> </head> <body>

Error response

Error <body> <h1>Error response</h1> <p>Error code 400.

Message: <p>Message: Bad request syntax ('get').

Error <p>Error code explanation: 400 = Bad request syntax or unsupported method. </body> Connection closed by foreign host. [root@dvopscontroller etc]#

etc]#

keystone user-create - An unexpected error prevented the server from fulfilling your request. (HTTP 500)

Hello, Trying to install keystone service, but cannot deal with keystone user-create command. Please find bellow some information Thank you for your help.

[root@dvopscontroller etc]# echo $OS_SERVICE_TOKEN
e1e26d356b408e65b46a
[root@dvopscontroller etc]#  echo $OS_SERVICE_ENDPOINT
http://dvopscontroller:35357/v2.0
[root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
Hello,
Trying to install keystone service, but cannot deal with keystone user-create command.
Please find bellow some information 
Thank you for your help.

[root@dvopscontroller etc]# echo $OS_SERVICE_TOKEN
e1e26d356b408e65b46a
[root@dvopscontroller etc]#  echo $OS_SERVICE_ENDPOINT
http://dvopscontroller:35357/v2.0
[root@dvopscontroller etc]# keystone user-create --name=admin --pass=ADMIN_PASS --email=ADMIN_EMAIL
An unexpected error prevented the server from fulfilling your request. (HTTP 500)
[root@dvopscontroller etc]#

[root@dvopscontroller etc]# vi keystone/keystone.conf
admin_token = e1e26d356b408e65b46a
connection = mysql://keystone:KEYSTONE_DBPASS@dvopscontroller/keystone

[root@dvopscontroller etc]# tail /var/log/keystone/keystone.log
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi   File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py", line 283, in connect
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi     return self.dbapi.connect(*cargs, **cparams)
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi   File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi     return Connection(*args, **kwargs)
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi   File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi     super(Connection, self).__init__(*args, **kwargs2)
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None
2014-08-20 10:59:05.078 4262 TRACE keystone.common.wsgi
2014-08-20 11:00:01.707 4451 CRITICAL keystone [-] OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'dvopscontroller' (using password: YES)") None None

[root@dvopscontroller etc]# netstat -anutp|grep 35357
tcp        0      0 0.0.0.0:35357               0.0.0.0:*                   LISTEN      4262/python
[root@dvopscontroller etc]# telnet 0 35357
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
get
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad request syntax ('get').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>
Connection closed by foreign host.
[root@dvopscontroller etc]#