Nova database fails on nova-manage db sync

I am trying out foreman and I think I'm close to having it working, but
nova-manage db sync is failing with the message below (foreman-debug output
also attached).

This is on RHEL 6.4.

Has anyone seen this? Any solutions/workarounds?

[root@set1client1 mysql]# nova-manage db sync Command failed, please check
log for more info 2014-04-16 13:59:59.319 14643 CRITICAL nova [-] 'module'
object has no attribute 'DatabaseNotControlledError' 2014-04-16
13:59:59.319 14643 TRACE nova Traceback (most recent call last): 2014-04-16
13:59:59.319 14643 TRACE nova File "/usr/bin/nova-manage", line 10, in
2014-04-16 13:59:59.319 14643 TRACE nova sys.exit(main()) 2014-04-16
13:59:59.319 14643 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1377, in main
2014-04-16 13:59:59.319 14643 TRACE nova ret = fn(*fn_args, **fn_kwargs)
2014-04-16 13:59:59.319 14643 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 885, in sync
2014-04-16 13:59:59.319 14643 TRACE nova return migration.db_sync(version)
2014-04-16 13:59:59.319 14643 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/db/migration.py", line 33, in
db_sync 2014-04-16 13:59:59.319 14643 TRACE nova return
IMPL.db_sync(version=version) 2014-04-16 13:59:59.319 14643 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line
72, in db_sync 2014-04-16 13:59:59.319 14643 TRACE nova current_version =
db_version() 2014-04-16 13:59:59.319 14643 TRACE nova File
"/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line
85, in db_version 2014-04-16 13:59:59.319 14643 TRACE nova except
versioning_exceptions.DatabaseNotControlledError: 2014-04-16 13:59:59.319
14643 TRACE nova AttributeError: 'module' object has no attribute
'DatabaseNotControlledError'

foreman-debug-lMU7m.tar.xz (10.7 KB)

Hello,

I am afraid this is more OpenStack issue than Foreman's. If this is
MySQL Foreman installation, our installer could change something and
nova-manage is unable to sync the database.

Anyway, what you are trying to achieve with this setup?

LZ

··· On Thu, Apr 17, 2014 at 07:46:37AM -0700, Chad Roberts wrote: > I am trying out foreman and I think I'm close to having it working, but > nova-manage db sync is failing with the message below (foreman-debug output > also attached). > > This is on RHEL 6.4. > > Has anyone seen this? Any solutions/workarounds? > > > [root@set1client1 mysql]# nova-manage db sync Command failed, please check > log for more info 2014-04-16 13:59:59.319 14643 CRITICAL nova [-] 'module' > object has no attribute 'DatabaseNotControlledError' 2014-04-16 > 13:59:59.319 14643 TRACE nova Traceback (most recent call last): 2014-04-16 > 13:59:59.319 14643 TRACE nova File "/usr/bin/nova-manage", line 10, in > 2014-04-16 13:59:59.319 14643 TRACE nova sys.exit(main()) 2014-04-16 > 13:59:59.319 14643 TRACE nova File > "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1377, in main > 2014-04-16 13:59:59.319 14643 TRACE nova ret = fn(*fn_args, **fn_kwargs) > 2014-04-16 13:59:59.319 14643 TRACE nova File > "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 885, in sync > 2014-04-16 13:59:59.319 14643 TRACE nova return migration.db_sync(version) > 2014-04-16 13:59:59.319 14643 TRACE nova File > "/usr/lib/python2.6/site-packages/nova/db/migration.py", line 33, in > db_sync 2014-04-16 13:59:59.319 14643 TRACE nova return > IMPL.db_sync(version=version) 2014-04-16 13:59:59.319 14643 TRACE nova File > "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line > 72, in db_sync 2014-04-16 13:59:59.319 14643 TRACE nova current_version = > db_version() 2014-04-16 13:59:59.319 14643 TRACE nova File > "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line > 85, in db_version 2014-04-16 13:59:59.319 14643 TRACE nova except > versioning_exceptions.DatabaseNotControlledError: 2014-04-16 13:59:59.319 > 14643 TRACE nova AttributeError: 'module' object has no attribute > 'DatabaseNotControlledError' > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

I figured out my issue. I actually had an incorrect repo set up and I was
getting an old version of python-migrate.

Thanks

··· On Friday, April 18, 2014 3:27:01 AM UTC-4, Lukas Zapletal wrote: > > Hello, > > I am afraid this is more OpenStack issue than Foreman's. If this is > MySQL Foreman installation, our installer could change something and > nova-manage is unable to sync the database. > > Anyway, what you are trying to achieve with this setup? > > LZ > > On Thu, Apr 17, 2014 at 07:46:37AM -0700, Chad Roberts wrote: > > I am trying out foreman and I think I'm close to having it working, but > > nova-manage db sync is failing with the message below (foreman-debug > output > > also attached). > > > > This is on RHEL 6.4. > > > > Has anyone seen this? Any solutions/workarounds? > > > > > > [root@set1client1 mysql]# nova-manage db sync Command failed, please > check > > log for more info 2014-04-16 13:59:59.319 14643 CRITICAL nova [-] > 'module' > > object has no attribute 'DatabaseNotControlledError' 2014-04-16 > > 13:59:59.319 14643 TRACE nova Traceback (most recent call last): > 2014-04-16 > > 13:59:59.319 14643 TRACE nova File "/usr/bin/nova-manage", line 10, in > > 2014-04-16 13:59:59.319 14643 TRACE nova sys.exit(main()) 2014-04-16 > > 13:59:59.319 14643 TRACE nova File > > "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1377, in > main > > 2014-04-16 13:59:59.319 14643 TRACE nova ret = fn(*fn_args, **fn_kwargs) > > 2014-04-16 13:59:59.319 14643 TRACE nova File > > "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 885, in sync > > 2014-04-16 13:59:59.319 14643 TRACE nova return > migration.db_sync(version) > > 2014-04-16 13:59:59.319 14643 TRACE nova File > > "/usr/lib/python2.6/site-packages/nova/db/migration.py", line 33, in > > db_sync 2014-04-16 13:59:59.319 14643 TRACE nova return > > IMPL.db_sync(version=version) 2014-04-16 13:59:59.319 14643 TRACE nova > File > > "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line > > 72, in db_sync 2014-04-16 13:59:59.319 14643 TRACE nova current_version > = > > db_version() 2014-04-16 13:59:59.319 14643 TRACE nova File > > "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/migration.py", line > > 85, in db_version 2014-04-16 13:59:59.319 14643 TRACE nova except > > versioning_exceptions.DatabaseNotControlledError: 2014-04-16 > 13:59:59.319 > > 14643 TRACE nova AttributeError: 'module' object has no attribute > > 'DatabaseNotControlledError' > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com. > > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Later, > > Lukas "lzap" Zapletal > irc: lzap #theforeman >