Unable to deploy baremetal server by Ironic

asked 2015-03-25 03:50:32 -0600

Khanh Ngo gravatar image

updated 2015-03-25 21:50:27 -0600

I am using Ironic in Devstack for baremetal provisioing. I faced a problem when deploy a baremetal node as bellow

stack@devstack:~/ironic-bm-logs$ ironic node-show 2172137b-55b4-440d-bbce-8e320dce241c
+------------------------+--------------------------------------------------------------------------+
| Property               | Value                                                                    |
+------------------------+--------------------------------------------------------------------------+
| instance_uuid          | None                                                                     |
| target_power_state     | None                                                                     |
| properties             | {}                                                                       |
| maintenance            | False                                                                    |
| driver_info            | {u'pxe_deploy_ramdisk': u'e08e480c-8822-41dc-9b42-0bd5cca661c6',         |
|                        | u'pxe_image_source': u'4c3fd1c4-abc8-43fc-8e76-ba2430a52184',            |
|                        | u'pxe_root_gb': 5, u'ipmi_username': u'root', u'ipmi_address':           |
|                        | u'10.10.2.17', u'ipmi_password': u'******', u'pxe_deploy_kernel':        |
|                        | u'b7b1f851-e80d-4ba2-8059-36e8a518c63d'}                                 |
| extra                  | {}                                                                       |
| last_error             | Failed to deploy. Error: No VIFs found for node 2172137b-55b4-440d-bbce- |
|                        | 8e320dce241c when attempting to update DHCP BOOT options.                |
| created_at             | 2015-03-23T09:13:28+00:00                                                |
| target_provision_state | active                                                                   |
| driver                 | pxe_ipmitool                                                             |
| updated_at             | 2015-03-24T10:34:05+00:00                                                |
| maintenance_reason     | None                                                                     |
| instance_info          | {u'ramdisk': u'c8eef8c3-c008-4e43-a5d4-cd7e0a8421bc', u'kernel': u       |
|                        | '28829d8a-1aa2-4be8-87f4-9811771f797b', u'root_gb': 5, u'image_source':  |
|                        | u'4c3fd1c4-abc8-43fc-8e76-ba2430a52184', u'deploy_key':                  |
|                        | u'TX3MTEP183L25YE5NYCROBQLPASPND22'}                                     |
| driver_internal_info   |                                                                          |
| chassis_uuid           |                                                                          |
| provision_state        | deploy failed                                                            |
| reservation            | None                                                                     |
| power_state            | power on                                                                 |
| console_enabled        | False                                                                    |
| uuid                   | 2172137b-55b4-440d-bbce-8e320dce241c                                     |
+------------------------+--------------------------------------------------------------------------+

I created port and assigned it to that node already

stack@devstack:~/ironic-bm-logs$ ironic node-port-list 2172137b-55b4-440d-bbce-8e320dce241c +--------------------------------------+-------------------+ | UUID | Address | +--------------------------------------+-------------------+ | b7402439-532c-4eac-9037-c0e3a95accef | a0:36:9f:47:59:a4 | +--------------------------------------+-------------------+

This is the error log from Ironic conductor

2015-03-24 14:46:40.103 WARNING ironic.conductor.manager [-] Error in deploy of node 2172137b-55b4-440d-bbce-8e320dce241c: No VIFs found for node 2172137b-55b4-440d-bbce-8e320dce241c when attempting to update DHCP BOOT options. Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 457, in fire_timers timer() File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 58, in __call__ cb(*args, **kw) File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main result = function(*args, **kwargs) File "/opt/stack/ironic/ironic/conductor/manager.py", line 1895, in do_node_deploy _("Failed to deploy. Error: %s")) File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/ironic/ironic/conductor/manager.py", line 1890, in do_node_deploy new_state = task.driver.deploy.deploy(task) File "/opt/stack/ironic/ironic/conductor/task_manager.py", line 128, in wrapper return f(*args, **kwargs) File "/opt/stack/ironic/ironic/drivers/modules/pxe.py", line 381, in deploy provider.update_dhcp(task, dhcp_opts) File "/opt/stack/ironic/ironic/common/dhcp_factory.py", line 92, in update_dhcp self.provider.update_dhcp_opts(task, dhcp_opts) File "/opt/stack/ironic/ironic/dhcp/neutron.py", line 163, in update_dhcp_opts {'node': task.node.uuid}) FailedToUpdateDHCPOptOnPort: No VIFs found for node 2172137b-55b4-440d-bbce-8e320dce241c when attempting to update DHCP BOOT options.

Any ideal about this problem? Thank you.

edit retag flag offensive close merge delete