[Openstack] Baremetal deployment [Grizzly]
    clehy at yahoo.fr 
    clehy at yahoo.fr
       
    Sun May  5 08:59:27 UTC 2013
    
    
  
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 at 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
    
    
More information about the Openstack
mailing list