installation openstack

Asked by Rimeh on 2013-03-05

hello ;
i'm running Ubuntu 12.04 and I am getting following errors when I execute
keystone-manage db_sync command... :/

i put this line in the "/etc/keystone/keystone.conf":
connection = mysql://keystone:password@localhost/keystone
and when i test this
* keystone-manage db_sync

This error appear:

File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") None None

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Khanh Nguyen
Solved:
2013-03-06
Last query:
2013-03-06
Last reply:
2013-03-06
Best Khanh Nguyen (ndquockhanh) said : #1

First execute the scripts below to grant privileges for keystone user:

GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Next, you try to connect to mysql use account keystone. if okay, after that you can try again test command

keystone-manage db_sync

Rimeh (rimehchatti) said : #2

thanks for your help!! :)))))