Ask Your Question
0

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/127.0.0.1/0.0.0.0/g' /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
 CREATE DATABASE keystone;
 GRANT ALL ON keystone.* TO 'keystoneUser'@'%' IDENTIFIED BY 'keystonePass';

quit;

but:

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@10.32.14.232/keystone

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

And then:

env | egrep "OS_|SERVICE_"

OS_PASSWORD=what??? 
OS_AUTH_URL=http://10.176.20.158:5000/v2.0/ #what 10.176.20.158??  
OS_USERNAME= what???  
OS_TENANT_NAME what???

Since

keystone token-get:

error:
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
2

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 127.0.0.1 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: http://docs.openstack.org/trunk/openstack-compute/install/apt/content/configure-creds.html 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
1

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

baran gravatar image

thank you for guidance.

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

1 follower

Stats

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

Seen: 747 times

Last updated: Jul 31 '13