Ask Your Question

Unable to connect to keystone database

asked 2016-06-14 11:47:44 -0500

PeterN gravatar image

Hello. I'm trying to install & configure keystone on openSUSE 42.1 like described in the official docs. When I run: sudo /bin/sh -c "keystone-manage db_sync" keystone

I get this:

Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
2016-06-14 18:33:11.660 27213 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 10 attempts left.

Thats what I changed in the /etc/keystone/keystone.conf

admin_token = ... # from openssl rand -hex 10`

connection = mysql+pymysql://keystone:PASSWORD@controller/keystone

provider = fernet

And my /etc/my.cnf.d/openstack.cnf file

bind-address =
default-storage-engine = innodb
collation-server = utf8_general_ci
character-set-server = utf8

Can someone help me to get the keystone database running?

edit retag flag offensive close merge delete


Do you have a firewall that blocks Mysql traffic? Can you access the database manually with mysql -ukeystone -pPASSWORD? Did you create the keystone user in the database?

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-21 17:17:44 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-20 14:35:23 -0500

mac7564 gravatar image

Are you one time fail? yes. Remove mysql and re-install!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-14 11:47:44 -0500

Seen: 3,484 times

Last updated: Feb 20 '17