Ask Your Question
0

Failed to deploy. Error: 'kernel_id' [closed]

asked 2014-05-27 23:14:56 -0500

jeffery777 gravatar image

Hello, I'm following the IceHouse openstack document and setting up the Openstack on a single Ubuntu 14.04 amd64 Server. I also followed http://docs.openstack.org/developer/ironic/install/ironic-install.html#configure-compute-service-to-use-the-bare-metal-service (configure-compute-service-to-use-the-bare-metal-service) to install and configure the Ironic service on the same server. Finally, I followed http://ma.ttwagner.com/bare-metal-deploys-with-devstack-and-ironic/ (bare-metal-deploys-with-devstack-and-ironic) to create a bare-metal node and then provisioning that Node. But the provision_state is "deploy failed" and the last_error is "Failed to deploy. Error: 'kernel_id'".

I've been stuck on this issue for days, can't figure out how to solve it. I would very appreciate it if anyone could help me to solve it.


Here is image-list information

root@controller:/home/user1# glance image-list
+--------------------------------------+-------------------------------+-------------+------------------+------------+--------+
| ID                                   | Name                          | Disk Format | Container Format | Size       | Status |
+--------------------------------------+-------------------------------+-------------+------------------+------------+--------+
| 0b5431d7-506e-4502-a62f-38feb6bae016 | cirros-0.3.2-x86_64           | qcow2       | bare             | 13167616   | active |
| b1a8ee63-86e8-4462-90fd-dae8522fb6b5 | deploy-ubuntu-initrd          | ari         | ari              | 85478036   | active |
| 42d31945-7a24-4d23-8182-23df522f8d9e | deploy-ubuntu-vmlinuz         | aki         | aki              | 5634736    | active |
| 26b1d2bb-0d78-43cd-bb6a-ef9d0218769d | precise-server-cloudimg-amd64 | qcow2       | bare             | 260375040  | active |
| 0e519208-a125-4fd9-9e19-2f973815e674 | Windows 7                     | qcow2       | bare             | 8034582528 | active |
+--------------------------------------+-------------------------------+-------------+------------------+------------+--------+

Here are logs of commands I used to deploy a bare matel node.

root@controller:/home/user1# ironic node-create -d pxe_ipmitool -i ipmi_address =192.168.8.10 -i 
ipmi_username=admin -i ipmi_password=password -i pxe_deploy_ramdisk=b1a8ee63-86e8-4462-90fd-
dae8522fb6b5 -i pxe_deploy_kernel=42d31945-7a24-4d23-8182-23df522f8d9e -i pxe_image_name="precise-
server-cloudimg-amd64" -i pxe_image_source=26b1d2bb-0d78-43cd-bb6a-ef9d0218769d -i pxe_root_gb=5
+--------------+------------------------------------------------------------------------+
| Property     | Value                                                                  |
+--------------+------------------------------------------------------------------------+
| chassis_uuid | None                                                                   |
| driver       | pxe_ipmitool                                                           |
| driver_info  | {u'pxe_deploy_ramdisk': u'b1a8ee63-86e8-4462-90fd-dae8522fb6b5',       |
|              | u'pxe_image_source': u'26b1d2bb-0d78-43cd-bb6a-ef9d0218769d',          |
|              | u'pxe_root_gb': u'5', u'ipmi_username': u'admin', u'pxe_image_name': u |
|              | 'precise-server-cloudimg-amd64', u'ipmi_address': u'192.168.8.10',     |
|              | u'ipmi_password': u'password', u'pxe_deploy_kernel':                   |
|              | u'42d31945-7a24-4d23-8182-23df522f8d9e'}                               |
| extra        | {}                                                                     |
| properties   | {}                                                                     |
| uuid         | 830a8d8a-ec18-473a-926d-0bfccbf023ad                                   |
+--------------+------------------------------------------------------------------------+
root@controller:/home/user1# export NODE=830a8d8a-ec18-473a-926d-0bfccbf023ad
root@controller:/home/user1# ironic port-create -n $NODE -a "d0:27:88:fb:b6:e5" 

+-----------+--------------------------------------+
| Property  | Value                                |
+-----------+--------------------------------------+
| address   | d0:27:88:fb:b6:e5                    |
| extra     | {}                                   |
| node_uuid | 830a8d8a-ec18-473a-926d-0bfccbf023ad |
| uuid      | 96885e14-09fb-4267-89ce-bd6254d7bf22 |
+-----------+--------------------------------------+
root@controller:/home/user1# ironic node-validate $NODE
+-----------+--------+---------------+
| Interface | Result | Reason        |
+-----------+--------+---------------+
| console   | None   | not supported |
| deploy    | True   |               |
| power     | True   |               |
+-----------+--------+---------------+
root@controller:/home/user1# ironic node-update $NODE replace instance_uuid=b0b8b802-99b9-4329-b2e7-
2d8e4af4ef3a
+------------------------+------------------------------------------------------------------------+
| Property               | Value                                                                  |
+------------------------+------------------------------------------------------------------------+
| chassis_uuid           | None                                                                   |
| created_at             | 2014-05-28T01:45:42+00:00                                              |
| driver                 | pxe_ipmitool                                                           |
| driver_info            | {u'pxe_deploy_ramdisk': u'b1a8ee63-86e8-4462-90fd-dae8522fb6b5',       |
|                        | u'pxe_image_source': u'26b1d2bb-0d78-43cd-bb6a-ef9d0218769d',          |
|                        | u'pxe_root_gb': u'5', u'ipmi_username': u'admin', u'pxe_image_name': u |
|                        | 'precise-server-cloudimg-amd64', u'ipmi_address': u'192.168.8.10',     |
|                        | u'ipmi_password': u'password', u'pxe_deploy_kernel':                   |
|                        | u'42d31945-7a24-4d23-8182-23df522f8d9e'}                               |
| extra                  | {}                                                                     |
| instance_uuid          | b0b8b802-99b9-4329-b2e7-2d8e4af4ef3a                                   |
| last_error             | None                                                                   |
| maintenance            | False                                                                  |
| power_state            | power off                                                              |
| properties             | {}                                                                     |
| provision_state        | None                                                                   |
| reservation            | None                                                                   |
| target_power_state     | None                                                                   |
| target_provision_state | None                                                                   |
| updated_at             | 2014-05-28T01:46:06+00:00                                              |
| uuid                   | 830a8d8a-ec18-473a-926d-0bfccbf023ad                                   |
+------------------------+------------------------------------------------------------------------+
root@controller:/home/user1# ironic --debug node-list
DEBUG (session:234) REQ: curl -i -X POST http://controller:35357/v2.0/tokens -H "Content-Type:         application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials":     {"username": "admin", "password": "7e3300dfb94ca9d3f2b9"}}}'
INFO (connectionpool:258) Starting new HTTP connection (1): controller
DEBUG (connectionpool:375) Setting read timeout to None
DEBUG (connectionpool:415) "POST /v2.0/tokens HTTP/1.1" 200 9890
DEBUG (session:274) RESP: [200] CaseInsensitiveDict({'date': 'Wed, 28 May 2014 01:47:25 GMT', 'vary': 'X-Auth-Token', 'content-length': '9890', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2014-05-28T01:47:25.169461", "expires": "2014-05-28T02:47:25Z ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by jeffery777
close date 2014-08-18 03:59:14.719715

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-30 05:46:35 -0500

lucasagomes gravatar image

This is caused because the image in glance doesn't contain the kernel_id or ramdisk_id in it's properties set, this properties values should be the glance id of the kernel/ramdisk of the image. I opened a bug https://bugs.launchpad.net/ironic/+bug/1324840 (https://bugs.launchpad.net/ironic/+bu...) and submit a patch upstream that might help with this problem by checking if those properties are set in the image at validation time instead of after the deploy has started (and improved the error message as well).

Also, In the future Ironic will support local boot so if you don't want to always PXE boot the image after the deployment you will be able to.

edit flag offensive delete link more
0

answered 2014-06-10 04:39:37 -0500

jeffery777 gravatar image

updated 2014-06-16 01:08:40 -0500

Hi, I found one another document ( https://wiki.openstack.org/wiki/Baremetal (https://wiki.openstack.org/wiki/Barem...) ). This issue can be solved If I use following commands: glance image-update --property kernel_id=$kernel_uuid $Image_uuid glance image-update --property ramdisk_id=$ramdisk_id $Image_uuid

Thank you.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-05-27 23:14:56 -0500

Seen: 462 times

Last updated: Jun 16 '14