Ask Your Question
1

install ironic in ubuntu

asked 2014-12-12 01:24:57 -0500

Rajan gravatar image

updated 2014-12-12 17:36:47 -0500

smaffulli gravatar image

I am trying to provision baremetal with openstack using ironic. I followed http://docs.openstack.org/developer/i... ( http://docs.openstack.org/developer/i... ) for installing ironic.

But when I tried to validate machine through ironic nova-validate, I am getting "Node 705862e7-0fe7-494c-a00e-139d9cd1d706 failed to validate deploy image info".

Please help me on this. For last one months I am struggling on this.

I am using Curl command to deploy:-

Here is some information :

ironic node-validate 705862e7-0fe7-494c-a00e-139d9cd1d706
+------------+--------+--------------------------------------------------------------------------------+
| Interface  | Result | Reason                                                                         |
+------------+--------+--------------------------------------------------------------------------------+
| console    | False  | Missing 'ipmi_terminal_port' parameter in node's driver_info.                  |
| deploy     | False  | Node 705862e7-0fe7-494c-a00e-139d9cd1d706 failed to validate deploy image info |
| management | True   |                                                                                |
| power      | True   |                                                                                |
+------------+--------+--------------------------------------------------------------------------------+       






ironic node-list
+--------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| UUID                                 | Instance UUID                        | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| 705862e7-0fe7-494c-a00e-139d9cd1d706 | b0b8b802-99b9-4329-b2e7-2d8e4af4ef3a | power off   | None               | False       |
+--------------------------------------+--------------------------------------+-------------+--------------------+-------------+



ironic node-show 705862e7-0fe7-494c-a00e-139d9cd1d706
+------------------------+-------------------------------------------------------------------------+
| Property               | Value                                                                   |
+------------------------+-------------------------------------------------------------------------+
| instance_uuid          | b0b8b802-99b9-4329-b2e7-2d8e4af4ef3a                                    |
| target_power_state     | None                                                                    |
| properties             | {}                                                                      |
| maintenance            | False                                                                   |
| driver_info            | {u'pxe_deploy_ramdisk': u'559d2744-02e0-45a9-830d-ba894631c1d8',        |
|                        | u'pxe_image_source': u'b5015b08-e357-49e1-9eab-2970642f2263',           |
|                        | u'pxe_root_gb': u'200', u'ipmi_username': u'USERID', u'pxe_image_name': |
|                        | u'ubuntu-image', u'ipmi_address': u'9.109.190.253', u'ipmi_password':   |
|                        | u'PASSW0RD', u'pxe_deploy_kernel': u'b72b35f0-1491-495a-                |
|                        | 9bf0-085d1787298a'}                                                     |
| extra                  | {}                                                                      |
| last_error             | None                                                                    |
| created_at             | 2014-12-11T10:31:58+00:00                                               |
| target_provision_state | None                                                                    |
| driver                 | agent_ipmitool                                                          |
| updated_at             | 2014-12-12T07:16:28+00:00                                               |
| instance_info          | {}                                                                      |
| chassis_uuid           |                                                                         |
| provision_state        | None                                                                    |
| reservation            | None                                                                    |
| power_state            | power off                                                               |
| console_enabled        | False                                                                   |
| uuid                   | 705862e7-0fe7-494c-a00e-139d9cd1d706                                    |
+------------------------+-------------------------------------------------------------------------+





glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| ID                                   | Name                            | Disk Format | Container Format | Size      | Status |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| abfd02c5-fa43-4b29-bc38-3c0d6a171817 | cirros-0.3.2-x86_64-uec         | ami         | ami              | 25165824  | active |
| da4c466d-b256-4390-b3d7-2be90096a6ff | cirros-0.3.2-x86_64-uec-kernel  | aki         | aki              | 4969360   | active |
| 619e7517-f66a-419d-92ce-629d654e80f3 | cirros-0.3.2-x86_64-uec-ramdisk | ari         | ari              | 3723817   | active |
| 43b7fba9-a154-428f-9a5b-52fae5cb1532 | Fedora-x86_64-20-20140618-sda   | qcow2       | bare             | 211347064 | active |
| 559d2744-02e0-45a9-830d-ba894631c1d8 | ubuntu-deploy-initrd            | ari         | ari              | 95222438  | active |
| b72b35f0-1491-495a-9bf0-085d1787298a | ubuntu-deploy-vmlinuz           | aki         | aki              | 5814080   | active |
| b5015b08-e357-49e1-9eab-2970642f2263 | ubuntu-image                    | qcow2       | bare             | 924581888 | active |
| 75a917e8-5566-42ff-afad-95b57fa402e2 | ubuntu-kernel                   | aki         | aki              | 5814080   | active |
| dd5cd0e9-55fb-48b8-9a82-79f25137b859 | ubuntu-ramdisk                  | ari         | ari              | 24670724  | active |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+



glance image-show b5015b08-e357-49e1-9eab-2970642f2263
+-----------------------+--------------------------------------+
| Property              | Value                                |
+-----------------------+--------------------------------------+
| Property 'kernel_id'  | 75a917e8-5566-42ff-afad-95b57fa402e2 |
| Property 'ramdisk_id' | dd5cd0e9-55fb-48b8-9a82-79f25137b859 |
| checksum              | ad6b6097bf81e493484d1b6227f9f128     |
| container_format      | bare                                 |
| created_at            | 2014-12-11T10:20:43                  |
| deleted               | False                                |
| disk_format           | qcow2                                |
| id                    | b5015b08-e357-49e1-9eab-2970642f2263 |
| is_public             | False                                |
| min_disk              | 0                                    |
| min_ram               | 0                                    |
| name                  | ubuntu-image                         |
| owner                 | cc4e6748c0044ac0812aab1d2ea956be     |
| protected             | False                                |
| size                  | 924581888                            |
| status                | active                               |
| updated_at            | 2014-12-11T10:20:53                  |
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-16 01:42:42 -0500

Rajan gravatar image

Now ironic node validate is complated..

+------------+--------+--------+ | Interface | Result | Reason | +------------+--------+--------+ | console | True | | | deploy | True | | | management | True | | | power | True | |

However while deploying using curl command, i am getting below error could you please help me on this.

curl -i -X PUT -H "X-Auth-Token: $TOKEN" -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-ironicclient' -d '{"target": "active"}' http://9.109.190.248:6385/v1/nodes/$N... HTTP/1.0 401 Unauthorized Date: Tue, 16 Dec 2014 07:10:49 GMT Server: WSGIServer/0.1 Python/2.7.6 WWW-Authenticate: Keystone uri='http://9.109.190.248:5000/v2.0' Content-type: text/plain Content-Length: 23

ironic node-show $NODE +------------------------+--------------------------------------------------------------------------+ | Property | Value | +------------------------+--------------------------------------------------------------------------+ | instance_uuid | None | | target_power_state | None | | properties | {u'memory_mb': u'10240', u'cpu_arch': u'x86_64', u'local_gb': u'200', | | | u'cpus': u'4', u'capabilities': u'boot_mode:uefi'} | | maintenance | False | | driver_info | {u'pxe_deploy_ramdisk': u'4abd4d6d-209a-4d6d-8817-9c5721f6b625', | | | u'ipmi_terminal_port': u'3900', u'ipmi_username': u'USERID', | | | u'ipmi_address': u'9.109.190.253', u'ipmi_password': u'PASSW0RD', | | | u'pxe_deploy_kernel': u'a39f8f50-0489-4708-a6a9-506f90c5c196'} | | extra | {} | | last_error | Failed to deploy. Error: Failed to get IP address for any port on node | | | 47a915de-2d98-498d-803c-228b562536b0. | | created_at | 2014-12-16T05:53:42+00:00 | | target_provision_state | None | | driver | pxe_ipmitool | | updated_at | 2014-12-16T07:10:57+00:00 | | instance_info | {u'ramdisk': u'be817a6d-edec-4f8b-b677-788837149f50', u'kernel': | | | u'0eccf0a8-d1c5-47d7-9d2a-9ebab5fef6d2', u'root_gb': u'100', | | | u'image_source': u'35ea1b88-7a17-4887-9d24-43a5b1a5f3c0', u'deploy_key': | | | u'JSJTZFIO3LDVT883LG61X9DUBPB7PLH8'} | | chassis_uuid | | | provision_state | deploy failed | | reservation | None | | power_state | power off | | console_enabled | False | | uuid | 47a915de-2d98-498d-803c-228b562536b0 | +------------------------+--------------------------------------------------------------------------+

edit flag offensive delete link more

Comments

Hi Rajan, How do you get rid of "failed to validate deploy image info". I had the same problem. Thanks.

hedspi_pro gravatar imagehedspi_pro ( 2014-12-17 01:35:48 -0500 )edit

Hi Hedspi, could you please paste me what error are you getting?

Rajan gravatar imageRajan ( 2014-12-19 04:46:29 -0500 )edit
1

answered 2014-12-12 15:54:56 -0500

echiu gravatar image

According the source code for ironic.drivers.modules.ipmitool, the exception Missing 'ipmi_terminal_port' parameter in node's driver_info is raised when the port is not specified: http://docs.openstack.org/developer/i...

Specify the port in the driver info, and re-run ironic node-validate command.

edit flag offensive delete link more

Comments

Thanks for the reply.

Rajan gravatar imageRajan ( 2014-12-16 01:38:33 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-12 01:24:57 -0500

Seen: 346 times

Last updated: Dec 16 '14