[Openstack] [Ironic] Booting a physical machine using Ironic devstack setup

Peeyush Gupta gpeeyush at linux.vnet.ibm.com
Mon Sep 29 08:05:13 UTC 2014


Hi all,

I have setup Ironic using devstack. Now, I am trying to deploy a 
physical server using it. I changed scheduler_host_manager to 
BaremetalHostManager and compute_driver to BareMetalDriver. Now when I 
restarted nova-scheduler and nova-compute process, I am getting the 
following error:

2014-09-29 13:30:26.917 ERROR nova.openstack.common.threadgroup [-] 
(OperationalError) no such table: bm_nodes u'SELECT bm_nodes.deleted_at 
AS bm_nodes_deleted_at, bm_nodes.created_at AS bm_nodes_created_at, 
bm_nodes.updated_at AS bm_nodes_updated_at, bm_nodes.id AS bm_nodes_id, 
bm_nodes.deleted AS bm_nodes_deleted, bm_nodes.uuid AS bm_nodes_uuid, 
bm_nodes.service_host AS bm_nodes_service_host, bm_nodes.instance_uuid 
AS bm_nodes_instance_uuid, bm_nodes.instance_name AS 
bm_nodes_instance_name, bm_nodes.cpus AS bm_nodes_cpus, 
bm_nodes.memory_mb AS bm_nodes_memory_mb, bm_nodes.local_gb AS 
bm_nodes_local_gb, bm_nodes.preserve_ephemeral AS 
bm_nodes_preserve_ephemeral, bm_nodes.pm_address AS bm_nodes_pm_address, 
bm_nodes.pm_user AS bm_nodes_pm_user, bm_nodes.pm_password AS 
bm_nodes_pm_password, bm_nodes.task_state AS bm_nodes_task_state, 
bm_nodes.terminal_port AS bm_nodes_terminal_port, bm_nodes.image_path AS 
bm_nodes_image_path, bm_nodes.pxe_config_path AS 
bm_nodes_pxe_config_path, bm_nodes.deploy_key AS bm_nodes_deploy_key, 
bm_nodes.root_mb AS bm_nodes_root_mb, bm_nodes.swap_mb AS 
bm_nodes_swap_mb, bm_nodes.ephemeral_mb AS bm_nodes_ephemeral_mb \nFROM 
bm_nodes \nWHERE bm_nodes.deleted = 0 AND bm_nodes.instance_uuid IS NOT 
NULL AND bm_nodes.service_host = ?' 
('peeyush-Standard-PC-i440FX-PIIX-1996',)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
Traceback (most recent call last):
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 125, in wait
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup x.wait()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
self.thread.wait()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 
173, in wait
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
self._exit_event.wait()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in 
wait
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
hubs.get_hub().switch()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, 
in switch
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
self.greenlet.switch()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 
212, in main
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup result = 
function(*args, **kwargs)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/openstack/common/service.py", line 490, in run_service
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
service.start()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/service.py", line 164, in start
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
self.manager.init_host()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/compute/manager.py", line 1137, in init_host
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
self._destroy_evacuated_instances(context)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/compute/manager.py", line 727, in 
_destroy_evacuated_instances
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
local_instances = self._get_instances_on_driver(context, filters)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/compute/manager.py", line 703, in 
_get_instances_on_driver
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
driver_instances = self.driver.list_instances()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/virt/baremetal/driver.py", line 179, in list_instances
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup for node 
in db.bm_node_get_associated(context, service_host=CONF.host):
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/virt/baremetal/db/api.py", line 76, in 
bm_node_get_associated
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
service_host=service_host)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/db/sqlalchemy/api.py", line 125, in wrapper
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
f(*args, **kwargs)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/opt/stack/nova/nova/virt/baremetal/db/sqlalchemy/api.py", line 99, in 
bm_node_get_associated
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
query.all()
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2241, 
in all
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
list(self)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2353, 
in __iter__
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup return 
self._execute_and_instances(context)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2368, 
in _execute_and_instances
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup result = 
conn.execute(querycontext.statement, self._params)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 662, 
in execute
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup params)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 761, 
in _execute_clauseelement
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
compiled_sql, distilled_params
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 874, 
in _execute_context
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup context)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/compat/handle_error.py", 
line 125, in _handle_dbapi_exception
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
six.reraise(type(newraise), newraise, sys.exc_info()[2])
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/compat/handle_error.py", 
line 102, in _handle_dbapi_exception
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup per_fn = 
fn(ctx)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/exc_filters.py", 
line 323, in handler
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
context.is_disconnect)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup File 
"/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/exc_filters.py", 
line 254, in _raise_operational_errors_directly_filter
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup raise 
operational_error
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup 
OperationalError: (OperationalError) no such table: bm_nodes u'SELECT 
bm_nodes.deleted_at AS bm_nodes_deleted_at, bm_nodes.created_at AS 
bm_nodes_created_at, bm_nodes.updated_at AS bm_nodes_updated_at, 
bm_nodes.id AS bm_nodes_id, bm_nodes.deleted AS bm_nodes_deleted, 
bm_nodes.uuid AS bm_nodes_uuid, bm_nodes.service_host AS 
bm_nodes_service_host, bm_nodes.instance_uuid AS bm_nodes_instance_uuid, 
bm_nodes.instance_name AS bm_nodes_instance_name, bm_nodes.cpus AS 
bm_nodes_cpus, bm_nodes.memory_mb AS bm_nodes_memory_mb, 
bm_nodes.local_gb AS bm_nodes_local_gb, bm_nodes.preserve_ephemeral AS 
bm_nodes_preserve_ephemeral, bm_nodes.pm_address AS bm_nodes_pm_address, 
bm_nodes.pm_user AS bm_nodes_pm_user, bm_nodes.pm_password AS 
bm_nodes_pm_password, bm_nodes.task_state AS bm_nodes_task_state, 
bm_nodes.terminal_port AS bm_nodes_terminal_port, bm_nodes.image_path AS 
bm_nodes_image_path, bm_nodes.pxe_config_path AS 
bm_nodes_pxe_config_path, bm_nodes.deploy_key AS bm_nodes_deploy_key, 
bm_nodes.root_mb AS bm_nodes_root_mb, bm_nodes.swap_mb AS 
bm_nodes_swap_mb, bm_nodes.ephemeral_mb AS bm_nodes_ephemeral_mb \nFROM 
bm_nodes \nWHERE bm_nodes.deleted = 0 AND bm_nodes.instance_uuid IS NOT 
NULL AND bm_nodes.service_host = ?' 
('peeyush-Standard-PC-i440FX-PIIX-1996',)
2014-09-29 13:30:26.917 TRACE nova.openstack.common.threadgroup

Please help me figure out the issue.

Thanks,

-- 
Peeyush Gupta
gpeeyush at linux.vnet.ibm.com





More information about the Openstack mailing list