[Openstack] While running nova-manage, SQLalchemy is throwing an error
Jeff Silverman
jeff at sweetlabs.com
Wed Jul 23 20:44:16 UTC 2014
When I run nova-manage, it fails. The message in
/var/log/nova/nova-manage.log is
2014-07-23 13:16:28.276 31278 CRITICAL nova [-] AttributeError: 'module'
object has no attribute 'DatabaseNotControlledError'
Digging into the code with the python debugger leads me to
Traceback (most recent call last):
File "/usr/lib64/python2.6/pdb.py", line 1296, in main
pdb._runscript(mainpyfile)
File "/usr/lib64/python2.6/pdb.py", line 1215, in _runscript
self.run(statement)
File "/usr/lib64/python2.6/bdb.py", line 372, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/usr/bin/nova-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1374, in main
ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 883, in sync
return migration.db_sync(version)
File "/usr/lib/python2.6/site-packages/nova/db/migration.py", line
29, in db_sync
return IMPL.db_sync(version=version)
File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py",
line 41, in db_sync
current_version = db_version()
*File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py",
line 54, in db_version*
* except versioning_exceptions.DatabaseNotControlledError:*
*AttributeError: 'module' object has no attribute
'DatabaseNotControlledError'*
The exception is raised at
/usr/lib/python2.6/site-packages/migrate/versioning/schema.py
line 51:
38 def load(self):
39 """Load controlled schema version info from DB"""
40 tname = self.repository.version_table
41 try:
42 if not hasattr(self, 'table') or self.table is None:
43 self.table = Table(tname, self.meta, autoload=True)
44
45 result = self.engine.execute(self.table.select(
46 self.table.c.repository_id == str(self.repository.id)))
47
48 data = list(result)[0]
49 except:
50 cls, exc, tb = sys.exc_info()
51 B-> raise exceptions.DatabaseNotControlledError,
exc.__str__(), tb
52
53 self.version = data['version']
54 return data
Does anybody have an insight as to what is going on, or even what the
intent of this code is?
Many thanks,
Jeff
--
*Jeff Silverman*
Systems Engineer
(253) 459-2318 (c)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140723/ac8a59dd/attachment.html>
More information about the Openstack
mailing list