<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:10.5pt;">
<div align="left" style="text-align:justify;">I encountered an error during installing the keystone by following the RHEL/CentOS installation guide, did anyone meet this error before:</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">[root@controller keystone]# openstack-db --init --service keystone --password P@ssw0rd </div>
<div align="left" style="text-align:justify;">Please enter the password for the 'root' MySQL user: </div>
<div align="left" style="text-align:justify;">Verified connectivity to MySQL.</div>
<div align="left" style="text-align:justify;">Creating 'keystone' database.</div>
<div align="left" style="text-align:justify;">Updating 'keystone' database password in /etc/keystone/keystone.conf</div>
<div align="left" style="text-align:justify;">Initializing the keystone database, please wait...</div>
<div align="left" style="text-align:justify;">Traceback (most recent call last):</div>
<div align="left" style="text-align:justify;"> File "/usr/bin/keystone-manage", line 28, in <module></div>
<div align="left" style="text-align:justify;"> cli.main(argv=sys.argv, config_files=config_files)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 164, in main</div>
<div align="left" style="text-align:justify;"> return run(cmd, (args[:1] + args[2:]))</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 147, in run</div>
<div align="left" style="text-align:justify;"> return CMDS[cmd](argv=args).run()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 35, in run</div>
<div align="left" style="text-align:justify;"> return self.main()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 56, in main</div>
<div align="left" style="text-align:justify;"> driver.db_sync()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/identity/backends/sql.py", line 136, in </div>
<div align="left" style="text-align:justify;">db_sync</div>
<div align="left" style="text-align:justify;"> migration.db_sync()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 49, in </div>
<div align="left" style="text-align:justify;">db_sync</div>
<div align="left" style="text-align:justify;"> current_version = db_version()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 63, in </div>
<div align="left" style="text-align:justify;">db_version</div>
<div align="left" style="text-align:justify;"> return db_version_control(0)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 68, in </div>
<div align="left" style="text-align:justify;">db_version_control</div>
<div align="left" style="text-align:justify;"> versioning_api.version_control(CONF.sql.connection, repo_path, version)</div>
<div align="left" style="text-align:justify;"> File "<string>", line 2, in version_control</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/migrate/versioning/util/__init__.py", line 160, in </div>
<div align="left" style="text-align:justify;">with_engine</div>
<div align="left" style="text-align:justify;"> return f(*a, **kw)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/migrate/versioning/api.py", line 248, in </div>
<div align="left" style="text-align:justify;">version_control</div>
<div align="left" style="text-align:justify;"> ControlledSchema.create(engine, repository, version)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 137, in create</div>
<div align="left" style="text-align:justify;"> table = cls._create_table_version(engine, repository, version)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 178, in </div>
<div align="left" style="text-align:justify;">_create_table_version</div>
<div align="left" style="text-align:justify;"> if not table.exists():</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/schema.py", line 579, in exists</div>
<div align="left" style="text-align:justify;"> self.name, schema=self.schema)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/engine/base.py", line 2424, in run_callable</div>
<div align="left" style="text-align:justify;"> conn = self.contextual_connect()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/engine/base.py", line 2490, in contextual_connect</div>
<div align="left" style="text-align:justify;"> self.pool.connect(), </div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 224, in connect</div>
<div align="left" style="text-align:justify;"> return _ConnectionFairy(self).checkout()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 387, in __init__</div>
<div align="left" style="text-align:justify;"> rec = self._connection_record = pool._do_get()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 741, in _do_get</div>
<div align="left" style="text-align:justify;"> con = self._create_connection()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 188, in _create_connection</div>
<div align="left" style="text-align:justify;"> return _ConnectionRecord(self)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 270, in __init__</div>
<div align="left" style="text-align:justify;"> self.connection = self.__connect()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/pool.py", line 330, in __connect</div>
<div align="left" style="text-align:justify;"> connection = self.__pool._creator()</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/engine/strategies.py", line 80, in connect</div>
<div align="left" style="text-align:justify;"> return dialect.connect(*cargs, **cparams)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-</div>
<div align="left" style="text-align:justify;">x86_64.egg/sqlalchemy/engine/default.py", line 281, in connect</div>
<div align="left" style="text-align:justify;"> return self.dbapi.connect(*cargs, **cparams)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py", line 81, in Connect</div>
<div align="left" style="text-align:justify;"> return Connection(*args, **kwargs)</div>
<div align="left" style="text-align:justify;"> File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 187, in __init__</div>
<div align="left" style="text-align:justify;"> super(Connection, self).__init__(*args, **kwargs2)</div>
<div align="left" style="text-align:justify;">sqlalchemy.exc.OperationalError: (OperationalError) (2003, "Can't connect to MySQL server </div>
<div align="left" style="text-align:justify;">on 'controller' (113)") None None</div>
<div align="left" style="text-align:justify;">ERROR 1146 (42S02) at line 1: Table 'keystone.migrate_version' doesn't exist</div>
<div align="left" style="text-align:justify;">Final sanity check failed.</div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;">Regards<font face="ËÎÌå">£¬</font></div>
<div align="left" style="text-align:justify;">Sun Ning</div>
<div align="left" style="text-align:justify;"> </div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;"><font face="Times New Roman"> </font></div>
</span></font>
</body>
</html>