Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Keystone An unexpected error prevented the server from fulfilling your request. (HTTP 500)

Dear All, I am trying to set up a three node cloud and when i try to create first admin user i am getting the above error, please help.

The controller name is controller-1 and name resolution is working, the following is the exact procedure followed..

[root@controller-1 keystone]# openstack-config --set /etc/keystone/keystone.conf database connection mysql://keystone:Pass1234@controller-1/keystone [root@controller-1 keystone]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 15 Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE keystone; Query OK, 1 row affected (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'Pass1234'; Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'Pass1234'; Query OK, 0 rows affected (0.00 sec)

mysql> exit Bye [root@controller-1 keystone]# su -s /bin/sh -c "keystone-manage db_sync" keystone [root@controller-1 keystone]# ADMIN_TOKEN=$(openssl rand -hex 10) [root@controller-1 keystone]# echo $ADMIN_TOKEN ea0a7be7a074d015cd36 [root@controller-1 keystone]# ^C [root@controller-1 keystone]# openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_token $ADMIN_TOKEN [root@controller-1 keystone]# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone

[root@controller-1 keystone]# [root@controller-1 keystone]# chown -R keystone:keystone /etc/keystone/ssl [root@controller-1 keystone]# chmod -R o-rwx /etc/keystone/ssl [root@controller-1 keystone]# service openstack-keystone start [root@controller-1 keystone]# service openstack-keystone restart Stopping keystone: [ OK ] Starting keystone: [ OK ] [root@controller-1 keystone]# chkconfig openstack-keystone on [root@controller-1 keystone]# export OS_SERVICE_TOKEN=ea0a7be7a074d015cd36 [root@controller-1 keystone]# export OS_SERVICE_ENDPOINT=http://controller-1:35357/v2.0 [root@controller-1 keystone]# keystone user-create --name=admin --pass=Pass1234 --email=cloudadmin@t.com An unexpected error prevented the server from fulfilling your request. (HTTP 500) [root@controller-1 keystone]#

Keystone An unexpected error prevented the server from fulfilling your request. (HTTP 500)

Dear All, I am trying to set up a three node cloud and when i try to create first admin user i am getting the above error, please help.

The controller name is controller-1 and name resolution is working, the following is the exact procedure followed..

followed.. [root@controller-1 keystone]# openstack-config --set /etc/keystone/keystone.conf database connection mysql://keystone:Pass1234@controller-1/keystone [root@controller-1 keystone]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 15 Server version: 5.1.73 Source distribution

distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

statement. mysql> CREATE DATABASE keystone; Query OK, 1 row affected (0.01 sec)

sec) mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'Pass1234'; Query OK, 0 rows affected (0.00 sec)

sec) mysql> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'Pass1234'; Query OK, 0 rows affected (0.00 sec)

sec) mysql> exit Bye [root@controller-1 keystone]# su -s /bin/sh -c "keystone-manage db_sync" keystone [root@controller-1 keystone]# ADMIN_TOKEN=$(openssl rand -hex 10) [root@controller-1 keystone]# echo $ADMIN_TOKEN ea0a7be7a074d015cd36 [root@controller-1 keystone]# ^C [root@controller-1 keystone]# openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_token $ADMIN_TOKEN [root@controller-1 keystone]# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone

keystone [root@controller-1 keystone]# [root@controller-1 keystone]# chown -R keystone:keystone /etc/keystone/ssl [root@controller-1 keystone]# chmod -R o-rwx /etc/keystone/ssl [root@controller-1 keystone]# service openstack-keystone start [root@controller-1 keystone]# service openstack-keystone restart Stopping keystone: [ OK ] Starting keystone: [ OK ] [root@controller-1 keystone]# chkconfig openstack-keystone on [root@controller-1 keystone]# export OS_SERVICE_TOKEN=ea0a7be7a074d015cd36 [root@controller-1 keystone]# export OS_SERVICE_ENDPOINT=http://controller-1:35357/v2.0 [root@controller-1 keystone]# keystone user-create --name=admin --pass=Pass1234 --email=cloudadmin@t.com An unexpected error prevented the server from fulfilling your request. (HTTP 500) [root@controller-1 keystone]#

keystone]#