Ask Your Question
0

nova-manage db sync failed

asked 2011-02-21 06:25:23 -0500

janson071 gravatar image

when execute:

nova-manage --flagfile /etc/nova/nova.conf db sync

it occurs errors as follows:

(nova.root): TRACE: File "/usr/lib/python2.6/site-packages/migrate-0.2.2-py2.6.egg/migrate/versioning/logengine.py", line 253, in __init__ (nova.root): TRACE: super(LogEngineStrategy,self).__init__('logsql') (nova.root): TRACE: TypeError: __init__() takes exactly 1 argument (2 given)

any ideas ???

edit retag flag offensive close merge delete

7 answers

Sort by » oldest newest most voted
0

answered 2011-02-22 09:01:19 -0500

vishvananda gravatar image

That bug was fixed recently. You can go back to 0.6.0 or merge this patch: https://code.launchpad.net/~usc-isi/n...

On Feb 21, 2011, at 10:46 PM, janson wrote:

Question #146204 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

janson posted a new comment: after I download the latest version of sqlalchemy-migrate(0.6.1),

an new error occurs as follows;

[root@localhost sqlalchemy-migrate-0.6.1]# nova-manage --flagfile /etc/nova/nova.conf db sync 2011-02-22 14:42:36,248 CRITICAL nova.root [-] cannot import name exceptions (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-manage", line 5, in <module> (nova.root): TRACE: pkg_resources.run_script('nova==2011.1', 'nova-manage') (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 464, in run_script (nova.root): TRACE: self.require(requires)[0].run_script(script_name, ns) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1197, in run_script (nova.root): TRACE: execfile(script_filename, namespace, namespace) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 694, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 686, in main (nova.root): TRACE: fn(*argv) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 565, in sync (nova.root): TRACE: return migration.db_sync(version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/migration.py", line 33, in db_sync (nova.root): TRACE: return IMPL.db_sync(version=version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 331, in __getattr__ (nova.root): TRACE: backend = self.__get_backend() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 326, in __get_backend (nova.root): TRACE: self.__backend = __import__(name, None, None, fromlist) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/sqlalchemy/migration.py", line 25, in <module> (nova.root): TRACE: from migrate.versioning import exceptions as versioning_exceptions (nova.root): TRACE: ImportError: cannot import name exceptions


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-23 01:58:00 -0500

janson071 gravatar image

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more
0

answered 2011-02-22 06:46:38 -0500

janson071 gravatar image

after I download the latest version of sqlalchemy-migrate(0.6.1),

an new error occurs as follows;

[root@localhost sqlalchemy-migrate-0.6.1]# nova-manage --flagfile /etc/nova/nova.conf db sync 2011-02-22 14:42:36,248 CRITICAL nova.root [-] cannot import name exceptions (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-manage", line 5, in <module> (nova.root): TRACE: pkg_resources.run_script('nova==2011.1', 'nova-manage') (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 464, in run_script (nova.root): TRACE: self.require(requires)[0].run_script(script_name, ns) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1197, in run_script (nova.root): TRACE: execfile(script_filename, namespace, namespace) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 694, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 686, in main (nova.root): TRACE: fn(*argv) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 565, in sync (nova.root): TRACE: return migration.db_sync(version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/migration.py", line 33, in db_sync (nova.root): TRACE: return IMPL.db_sync(version=version) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 331, in __getattr__ (nova.root): TRACE: backend = self.__get_backend() (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/utils.py", line 326, in __get_backend (nova.root): TRACE: self.__backend = __import__(name, None, None, fromlist) (nova.root): TRACE: File "/usr/lib/python2.6/site-packages/nova-2011.1-py2.6.egg/nova/db/sqlalchemy/migration.py", line 25, in <module> (nova.root): TRACE: from migrate.versioning import exceptions as versioning_exceptions (nova.root): TRACE: ImportError: cannot import name exceptions

edit flag offensive delete link more
0

answered 2011-02-22 01:23:38 -0500

vishvananda gravatar image

my guess is that you have the wrong version of sqlalchemy-migrate. I would pip install the new one.

On Feb 21, 2011, at 5:18 PM, janson wrote:

Question #146204 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

janson posted a new comment: I am very sorry.

The result is all the same.


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-02-22 01:18:34 -0500

janson071 gravatar image

I am very sorry.

The result is all the same.

edit flag offensive delete link more
0

answered 2011-02-21 13:16:36 -0500

berendt gravatar image

try "nova-manage --flagfile=/etc/nova/nova.conf db sync"

edit flag offensive delete link more
0

answered 2011-06-08 21:07:24 -0500

I received this error when I pip installed migrate instead of sqlalchemy-migrate. To fix I did:

pip uninstall migrate pip install sqlalchemy-migrate

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: 2011-02-21 06:25:23 -0500

Seen: 94 times

Last updated: Jun 08 '11