Ask Your Question


asked 2012-04-18 09:13:50 -0600

ghatigar gravatar image

Following instructions in - ( to setup openstack Using fedora 16.

When I get to Keystone configuration, "openstack-keystone-db-setup" following error is seen:

================================ [root@fedora16-64bit yum.repos.d]# openstack-keystone-db-setup Please enter the password for the 'root' MySQL user: Verified connectivity to MySQL. Creating 'keystone' database. ERROR 1007 (HY000) at line 1: Can't create database 'keystone'; database exists Asking openstack-keystone to sync the database. Traceback (most recent call last): File "/usr/bin/keystone-manage", line 28, in <module> cli.main(argv=sys.argv, config_files=config_files) File "/usr/lib/python2.7/site-packages/keystone/", line 148, in main return run(cmd, (args[:1] + args[2:])) File "/usr/lib/python2.7/site-packages/keystone/", line 134, in run return File "/usr/lib/python2.7/site-packages/keystone/", line 36, in run return self.main() File "/usr/lib/python2.7/site-packages/keystone/", line 57, in main driver.db_sync() File "/usr/lib/python2.7/site-packages/keystone/identity/backends/", line 135, in db_sync migration.db_sync() File "/usr/lib/python2.7/site-packages/keystone/common/sql/", line 50, in db_sync current_version = db_version() File "/usr/lib/python2.7/site-packages/keystone/common/sql/", line 66, in db_version return db_version_control(0) File "/usr/lib/python2.7/site-packages/keystone/common/sql/", line 72, in db_version_control CONF.sql.connection, repo_path, version) File "<string>", line 2, in version_control File "/usr/lib/python2.7/site-packages/migrate/versioning/util/", line 159, in with_engine return f(a, *kw) File "/usr/lib/python2.7/site-packages/migrate/versioning/", line 250, in version_control ControlledSchema.create(engine, repository, version) File "/usr/lib/python2.7/site-packages/migrate/versioning/", line 139, in create table = cls._create_table_version(engine, repository, version) File "/usr/lib/python2.7/site-packages/migrate/versioning/", line 180, in _create_table_version if not table.exists(): File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 575, in exists, schema=self.schema) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/", line 2410, in run_callable conn = self.contextual_connect() File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/", line 2476, in contextual_connect self.pool.connect(), File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 224, in connect return _ConnectionFairy(self).checkout() File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 387, in __init__ rec = self._connection_record = pool._do_get() File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 739, in _do_get con = self._create_connection() File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 188, in _create_connection return _ConnectionRecord(self) File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 270, in __init__ self.connection = self.__connect() File "/usr/lib64/python2.7/site-packages/sqlalchemy/", line 330, in __connect connection = self.__pool._creator() File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/", line 80, in connect return dialect.connect(cargs, *cparams) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/", line 285, in connect return ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-04-20 10:43:00 -0600

ghatigar gravatar image

oops... Updated package and works fine.

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


Asked: 2012-04-18 09:13:50 -0600

Seen: 64 times

Last updated: Apr 20 '12