Ask Your Question

problem in keystone token-get

asked 2013-07-31 00:55:24 -0500

baran gravatar image

updated 2013-07-31 12:17:33 -0500

smaffulli gravatar image

Hi my friends I want get a token from keystone. Thus So I do the following:

Install vmware workstation, then install ubuntu 12.04, then:

• Install MySQL:

apt-get install mysql-server python-mysqldb

• Configure MySQL to accept all incoming requests:

sed -i 's/' /etc/mysql/my.cnf

service mysql restart

• Install RabbitMQ:

apt-get install rabbitmq-server

• Install the Keystone identity service:

apt-get install keystone

• Create a new MySQL database for Keystone:

 mysql -u root -p
 GRANT ALL ON keystone.* TO 'keystoneUser'@'%' IDENTIFIED BY 'keystonePass';



I don’t know how Adapt the connection attribute in the /etc/keystone/keystone.conf to our newly created database.:

vi /etc/keystone/keystone.conf

and edit the connection field to show

connection = mysql://keystoneUser:keystonePass@

how save this change in vi and exit from vi environment? keystoneUser and keystonePass Anything can be? is ip address for eth0?

And then:

env | egrep "OS_|SERVICE_"

OS_AUTH_URL= #what  
OS_USERNAME= what???  


keystone token-get:

no handlers could be found for logger keystoneclient.client.
invalid user / password (http401)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2013-07-31 04:38:25 -0500

krstncasa gravatar image

updated 2013-07-31 12:14:17 -0500

smaffulli gravatar image

To answer at least some of your questions:

  • The IP addresses you have to put into your config files depend on your setup. But if you're running everything on the same host, you can put localhost or most of the time.
  • Accordingly, my mysql-connection line in keystone.conf reads connection = mysql://keystone:keystonePass@localhost/keystone
  • To exit vi and save the changes, hit ESC-w-q-ENTER in that sequence. If you don't like vi, you can use nano.
  • You can fill the environment variables such as OS_PASSWORD etc. as described here: However, keep in mind that these values depend on your individual setup. Where an IP-address is required, you can again put localhost if the services are all on the same machine. This might also fix your authentication error.
edit flag offensive delete link more

answered 2013-07-31 12:34:01 -0500

baran gravatar image

thank you for guidance.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-31 00:55:24 -0500

Seen: 851 times

Last updated: Jul 31 '13