View Issue Details

IDProjectCategoryView StatusLast Update
0006706CentOS-6-OTHERpublic2013-11-08 18:49
ReporterYusuf Sahin 
PriorityhighSeverityblockReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOScentosOS Version6.4
Product Version6.4 
Target VersionFixed in Version 
Summary0006706: Problem on installing OpenStack Identity Manager
Description[root@controller ~]# openstack-db --init --service keystone --password Password
Please enter the password for the 'root' MySQL user:
Verified connectivity to MySQL.
Creating 'keystone' database.
Updating 'keystone' database password in /etc/keystone/keystone.conf
Initializing the keystone database, please wait...
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.6/site-packages/keystone/cli.py", line 164, in main
    return run(cmd, (args[:1] + args[2:]))
  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 147, in run
    return CMDS[cmd](argv=args).run()
  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 35, in run
    return self.main()
  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 56, in main
    driver.db_sync()
  File "/usr/lib/python2.6/site-packages/keystone/identity/backends/sql.py", line 136, in db_sync
    migration.db_sync()
  File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 49, in db_sync
    current_version = db_version()
  File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 63, in db_version
    return db_version_control(0)
  File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 68, in db_version_control
    versioning_api.version_control(CONF.sql.connection, repo_path, version)
  File "<string>", line 2, in version_control
  File "/usr/lib/python2.6/site-packages/migrate/versioning/util/__init__.py", line 160, in with_engine
    return f(*a, **kw)
  File "/usr/lib/python2.6/site-packages/migrate/versioning/api.py", line 248, in version_control
    ControlledSchema.create(engine, repository, version)
  File "/usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 137, in create
    table = cls._create_table_version(engine, repository, version)
  File "/usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 178, in _create_table_version
    if not table.exists():
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/schema.py", line 579, in exists
    self.name, schema=self.schema)
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 2424, in run_callable
    conn = self.contextual_connect()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 2490, in contextual_connect
    self.pool.connect(),
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 224, in connect
    return _ConnectionFairy(self).checkout()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 387, in __init__
    rec = self._connection_record = pool._do_get()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 741, in _do_get
    con = self._create_connection()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 188, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 270, in __init__
    self.connection = self.__connect()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 330, in __connect
    connection = self.__pool._creator()
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/strategies.py", line 80, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 281, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (OperationalError) (2005, "Unknown MySQL server host 'controller' (1)") None None
ERROR 1146 (42S02) at line 1: Table 'keystone.migrate_version' doesn't exist
Final sanity check failed.
Please file a bug report on bugzilla.redhat.com against the openstack-keystone package.
TagsNo tags attached.

Activities

tigalch

tigalch

2013-10-22 17:15

manager   ~0018210

could you please post the output or 'rpm -aq | grep openstack'
seveillard

seveillard

2013-11-04 21:40

reporter   ~0018297

rpm -aq | grep openstack returns

openstack-utils-2013.1-8.el6.noarch
openstack-keystone-2012.2.4-5.el6.noarch

on my system I had the same problem
seveillard

seveillard

2013-11-04 22:23

reporter   ~0018298

problem stays with

openstack-utils-2013.2-1.el6.1.noarch
openstack-keystone-2013.2-1.el6.noarch
tigalch

tigalch

2013-11-08 18:25

manager   ~0018315

the openstack packages you mention seem to come from the EPEL testing repo. Please use their support venues. This bug tracker is only for CentOS packages.
tigalch

tigalch

2013-11-08 18:49

manager   ~0018316

on an unrelated note: it appears you are using mysql, but haven't set it up correctly (or setup at all).

Issue History

Date Modified Username Field Change
2013-10-21 19:28 Yusuf Sahin New Issue
2013-10-22 17:15 tigalch Note Added: 0018210
2013-11-04 21:40 seveillard Note Added: 0018297
2013-11-04 22:23 seveillard Note Added: 0018298
2013-11-08 18:25 tigalch Note Added: 0018315
2013-11-08 18:25 tigalch Status new => feedback
2013-11-08 18:49 tigalch Note Added: 0018316