Ask Your Question
0

cinder-manage db sync error

asked 2013-06-17 03:16:38 -0500

anonymous user

Anonymous

cinder-manager db sync Traceback (most recent call last): File "/usr/bin/cinder-manage", line 794, in <module> main() File "/usr/bin/cinder-manage", line 791, in main fn(fn_args) File "/usr/bin/cinder-manage", line 219, in sync return migration.db_sync(version) File "/usr/lib/python2.7/dist-packages/cinder/db/migration.py", line 33, in db_sync return IMPL.db_sync(version=version) File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/migration.py", line 76, in db_sync current_version = db_version() File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/migration.py", line 88, in db_version return versioning_api.db_version(get_engine(), repository) File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/session.py", line 138, in get_engine _ENGINE.connect() File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2471, in connect return self._connection_cls(self, *kwargs) File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 878, in __init__ self.__connection = connection or engine.raw_connection() File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2557, in raw_connection return self.pool.unique_connection() File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 184, in unique_connection return _ConnectionFairy(self).checkout() File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 401, in __init__ rec = self._connection_record = pool._do_get() File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 746, in _do_get con = self._create_connection() File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 189, in _create_connection return _ConnectionRecord(self) File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 282, in __init__ self.connection = self.__connect() File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 344, in __connect connection = self.__pool._creator() File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 80, in connect return dialect.connect(cargs, *cparams) File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 281, in connect return self.dbapi.connect(cargs, *cparams) File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(args, *kwargs) File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__ super(Connection, self).__init__(args, *kwargs2) OperationalError: (OperationalError) (2003, "Can't connect to MySQL server on 'l92.168.2.110' (111)") None None

edit retag flag offensive close merge delete

Comments

please use the code tag!

polslinux gravatar imagepolslinux ( 2013-06-17 03:38:33 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-06-17 03:42:52 -0500

Emilien Macchi gravatar image

Hi, you should check if cinder.conf has good informations to connect to the Cinder database.

And also check if the database already exists, and if the user is allowed to access to it.

edit flag offensive delete link more
-1

answered 2013-06-20 22:30:55 -0500

xuyafang1113 gravatar image

database is no problem thanks

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

Stats

Asked: 2013-06-17 03:16:38 -0500

Seen: 246 times

Last updated: Jun 20 '13