Hello Chris, This may help: (even though it's too late ^^;)
nova/virt/baremetal/db/sqlalchemy/migration.py 56 - from migrate import exceptions as versioning_exceptions 56 + try: 57 + # Try the more specific path first (migrate <= 0.6) 58 + from migrate.versioning import exceptions as versioning_exceptions 59 + except ImportError: 60 + # Use the newer path (migrate >= 0.7) 61 + from migrate import exceptions as versioning_exceptions Thanks, Mikyung ----- Original Message ----- From: cl...@yahoo.fr To: openstack@lists.launchpad.net Sent: Sunday, May 5, 2013 4:59:27 AM Subject: [Openstack] Baremetal deployment [Grizzly] HI all, I am trying to setup a nova compute node for baremetal deployment and I am following the instructions from the wiki for that purpose. https://wiki.openstack.org/wiki/Baremetal I am confused by the step which explains how to setup the BM database "A separate database schema must be created for the baremetal driver to store information about the enrolled hardware. Create it first: mysql> CREATE DATABASE nova_bm; mysql> GRANT ALL ON nova_bm.* TO 'nova_user'@'some_host' IDENTIFIED BY '$password'; Then initialize the database with: nova-baremetal-manage db sync" My nova compute node is not running mysql so I guess I should run the above command on the nova controller, which is what I am doing then mysql> CREATE DATABASE nova_bm; mysql> GRANT ALL ON nova_bm.* TO 'nova'@'%' IDENTIFIED BY 'PasswordUsedForNova'; by "PasswordUsedForNova" I mean the password found in the nova.conf file on the compute node in the sql_connection string taken fron the [baremetal] section sql_connection = mysql://nova:PasswordUsedForNova@<IPofMyControllerNode>/nova_bm Now I run the db sync command and it produces the following [root@nova-04 ~]# nova-baremetal-manage db sync Command failed, please check log for more info 2013-05-04 22:04:10.899 2469 CRITICAL nova [-] 'module' object has no attribute 'DatabaseNotControlledError' 2013-05-04 22:04:10.899 2469 TRACE nova Traceback (most recent call last): 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/bin/nova-baremetal-manage", line 221, in <module> 2013-05-04 22:04:10.899 2469 TRACE nova main() 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/bin/nova-baremetal-manage", line 213, in main 2013-05-04 22:04:10.899 2469 TRACE nova fn(*fn_args, **fn_kwargs) 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/bin/nova-baremetal-manage", line 101, in sync 2013-05-04 22:04:10.899 2469 TRACE nova bmdb_migration.db_sync(version) 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/lib/python2.6/site-packages/nova/virt/baremetal/db/migration.py", line 34, in db_sync 2013-05-04 22:04:10.899 2469 TRACE nova return IMPL.db_sync(version=version) 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/lib/python2.6/site-packages/nova/virt/baremetal/db/sqlalchemy/migratio n.py", line 71, in db_sync 2013-05-04 22:04:10.899 2469 TRACE nova current_version = db_version() 2013-05-04 22:04:10.899 2469 TRACE nova File "/usr/lib/python2.6/site-packages/nova/virt/baremetal/db/sqlalchemy/migratio n.py", line 85, in db_version 2013-05-04 22:04:10.899 2469 TRACE nova except versioning_exceptions.DatabaseNotControlledError: 2013-05-04 22:04:10.899 2469 TRACE nova AttributeError: 'module' object has no attribute 'DatabaseNotControlledError' 2013-05-04 22:04:10.899 2469 TRACE nova Any idea ? Chris _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp