Ask Your Question
0

openstack-keystone-db-setup

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

ghatigar gravatar image

Following instructions in - http://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17 (http://fedoraproject.org/wiki/Getting...) 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/cli.py", line 148, in main return run(cmd, (args[:1] + args[2:])) File "/usr/lib/python2.7/site-packages/keystone/cli.py", line 134, in run return CMDScmd.run() File "/usr/lib/python2.7/site-packages/keystone/cli.py", line 36, in run return self.main() File "/usr/lib/python2.7/site-packages/keystone/cli.py", line 57, in main driver.db_sync() File "/usr/lib/python2.7/site-packages/keystone/identity/backends/sql.py", line 135, in db_sync migration.db_sync() File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration.py", line 50, in db_sync current_version = db_version() File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration.py", line 66, in db_version return db_version_control(0) File "/usr/lib/python2.7/site-packages/keystone/common/sql/migration.py", 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/__init__.py", line 159, in with_engine return f(a, *kw) File "/usr/lib/python2.7/site-packages/migrate/versioning/api.py", line 250, in version_control ControlledSchema.create(engine, repository, version) File "/usr/lib/python2.7/site-packages/migrate/versioning/schema.py", line 139, in create table = cls._create_table_version(engine, repository, version) File "/usr/lib/python2.7/site-packages/migrate/versioning/schema.py", line 180, in _create_table_version if not table.exists(): File "/usr/lib64/python2.7/site-packages/sqlalchemy/schema.py", line 575, in exists self.name, schema=self.schema) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 2410, in run_callable conn = self.contextual_connect() File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 2476, in contextual_connect self.pool.connect(), File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 224, in connect return _ConnectionFairy(self).checkout() File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 387, in __init__ rec = self._connection_record = pool._do_get() File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 739, in _do_get con = self._create_connection() File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 188, in _create_connection return _ConnectionRecord(self) File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 270, in __init__ self.connection = self.__connect() File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 330, in __connect connection = self.__pool._creator() File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 80, in connect return dialect.connect(cargs, *cparams) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 285, in connect return ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 68 times

Last updated: Apr 20 '12