Ask Your Question
0

Table 'nova.zones' doesn't exist

asked 2012-03-09 20:34:23 -0500

swoo gravatar image

My startup of nova-schedule is crashing. The nova-schedule.log says:

2012-03-09 11:12:28,778 AUDIT nova [-] Starting scheduler node (version 2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2) 2012-03-09 11:12:28,963 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=32771) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:450 2012-03-09 11:12:28,965 INFO nova.db.sqlalchemy [-] Using mysql/eventlet db_pool. 2012-03-09 11:12:29,225 INFO nova.rpc [-] Connected to AMQP server on 10.228.24.60:5672 2012-03-09 11:12:29,227 DEBUG nova [-] Creating Consumer connection for Service scheduler from (pid=32771) start /usr/lib/python2.7/dist-packages/nova/service.py:153 2012-03-09 11:13:29,255 DEBUG nova [-] Updating zone cache from db. from (pid=32771) ping /usr/lib/python2.7/dist-packages/nova/scheduler/zone_manager.py:193 2012-03-09 11:13:29,264 ERROR nova [-] in looping call (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 491, in _inner (nova): TRACE: self.f(self.args, *self.kw) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/service.py", line 251, in periodic_tasks (nova): TRACE: self.manager.periodic_tasks(context.get_admin_context()) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 58, in periodic_tasks (nova): TRACE: self.zone_manager.ping(context) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/scheduler/zone_manager.py", line 195, in ping (nova): TRACE: self._refresh_from_db(context) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/scheduler/zone_manager.py", line 170, in _refresh_from_db (nova): TRACE: zones = db.zone_get_all(context) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 1396, in zone_get_all (nova): TRACE: return IMPL.zone_get_all(context) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 101, in wrapper (nova): TRACE: return f(args, *kwargs) (nova): TRACE: File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 3497, in zone_get_all (nova): TRACE: return session.query(models.Zone).all() (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 1983, in all (nova): TRACE: return list(self) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2093, in __iter__ (nova): TRACE: return self._execute_and_instances(context) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2108, in _execute_and_instances (nova): TRACE: result = conn.execute(querycontext.statement, self._params) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1405, in execute (nova): TRACE: params) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1538, in _execute_clauseelement (nova): TRACE: compiled_sql, distilled_params (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1646, in _execute_context (nova): TRACE: context) (nova): TRACE: File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1790, in _handle_dbapi_exception (nova): TRACE: None, sys.exc_info()[2] (nova): TRACE: ProgrammingError ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-03-23 17:36:05 -0500

Run:

$ sudo nova-manage db sync

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-03-09 20:34:23 -0500

Seen: 6 times

Last updated: Mar 23 '12