Ask Your Question

Rajan's profile - activity

2015-08-17 13:19:21 -0600 received badge  Famous Question (source)
2015-05-23 15:54:03 -0600 received badge  Famous Question (source)
2015-03-03 09:03:38 -0600 received badge  Notable Question (source)
2015-02-11 05:12:10 -0600 received badge  Famous Question (source)
2015-01-05 14:49:47 -0600 received badge  Notable Question (source)
2015-01-01 01:39:28 -0600 received badge  Popular Question (source)
2014-12-23 18:51:48 -0600 received badge  Popular Question (source)
2014-12-22 03:53:06 -0600 received badge  Editor (source)
2014-12-22 03:50:56 -0600 asked a question Failed to Get IP address on Neutron port .

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 deploy baremetal through horizon, I am getting "Failed to Get IP address on Neutron port 7d71215a-5942-4716-9054-f8bbfcdff73f"

Please help me on this. Here is some information

ironic node-validate $NODE

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

screen-ir-cond.log

2014-12-22 13:22:20.120 ERROR ironic.dhcp.neutron [-] Failed to Get IP address on Neutron port 7d71215a-5942-4716-9054-f8bbfcdff73f.
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron Traceback (most recent call last):
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/opt/stack/ironic/ironic/dhcp/neutron.py", line 192, in _get_fixed_ip_address
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     neutron_port = client.show_port(port_uuid).get('port')
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 98, in with_params
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     ret = self.function(instance, *args, **kwargs)
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 321, in show_port
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     return self.get(self.port_path % (port), params=_params)
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1324, in get
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     headers=headers, params=params)
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1301, in retry_request
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     headers=headers, params=params)
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1244, in do_request
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     content_type=self.content_type())
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/client.py", line 183, in do_request
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     self.authenticate()
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron   File "/usr/local/lib/python2.7/dist-packages/neutronclient/client.py", line 252, in authenticate
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron     raise exceptions.Unauthorized(message=err_msg)
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron Unauthorized: Unknown auth strategy: None
2014-12-22 13:22:20.120 TRACE ironic.dhcp.neutron 
2014-12-22 13:22:20.122 WARNING ironic.dhcp.neutron [-] Some errors were encountered on node cb3bb93a-a9b5-407c-b4e3-0d51f76024f4 while retrieving IP address on the following ports: [u'36c591eb-2faf-475f-aaad-68f349167446']
2014-12-20 19:34:29 -0600 received badge  Notable Question (source)
2014-12-19 04:46:29 -0600 commented answer install ironic in ubuntu

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

2014-12-19 04:44:32 -0600 asked a question ironic.dhcp.neutron [-] No VIFs found for node when attempting to get port IP address.

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 deploy a baremetal via curl and nova boot command, i am getting below error :

WARNING ironic.dhcp.neutron [-] No VIFs found for node 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37 when attempting  to get port IP address.

WARNING ironic.dhcp.neutron [-] Some errors were encountered on node 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37 while retrieving IP address on the following ports: [u'61e477d2-30ba-46c8-bd41-09e20ee3f67f

WARNING ironic.conductor.manager [-] Error in deploy of node 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37: Failed to get IP address for any port on node 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37.

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

I am using Curl and nova boot command to deploy:-

Here is some information :

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                  |
+-----------------------+--------------------------------------+








ironic node-show $NODE 
+------------------------+-----------------------------------------------------------------------+
| Property               | Value                                                                 |
+------------------------+-----------------------------------------------------------------------+
| instance_uuid          | None                                                                  |
| target_power_state     | None                                                                  |
| properties             | {u'memory_mb': u'15240', 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'559d2744-02e0-45a9-830d-ba894631c1d8',      |
|                        | u'ipmi_terminal_port': u'3900', u'ipmi_username': u'USERID',          |
|                        | u'ipmi_address': u'x.x.x.x', u'ipmi_password': u'PASSW0RD',     |
|                        | u'pxe_deploy_kernel': u'b72b35f0-1491-495a-9bf0-085d1787298a'}        |
| extra                  | {}                                                                    |
| last_error             | None                                                                  |
| created_at             | 2014-12-18T17:47:09+00:00                                             |
| target_provision_state | None                                                                  |
| driver                 | pxe_ipmitool                                                          |
| updated_at             | 2014-12-18T17:48:50+00:00                                             |
| instance_info          | {u'root_gb': u'80', u'image_source': u'b5015b08-e357-49e1-9eab-       |
|                        | 2970642f2263'}                                                        |
| chassis_uuid           |                                                                       |
| provision_state        | None                                                                  |
| reservation            | None                                                                  |
| power_state            | power off                                                             |
| console_enabled        | False                                                                 |
| uuid                   | 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37                                  |
+------------------------+-----------------------------------------------------------------------+

ironic node-validate $NODE
+------------+--------+--------+
| Interface  | Result | Reason |
+------------+--------+--------+
| console    | True   |        |
| deploy     | True   |        |
| management | True   |        |
| power      | True   |        |
+------------+--------+--------+


ironic port-create -n $NODE -a "fa:16:3e:f7:c3:54"
+-----------+--------------------------------------+
| Property  | Value                                |
+-----------+--------------------------------------+
| node_uuid | 79f8dbb4-3dcc-44cd-ba18-24f10c59ca37 |
| extra     | {}                                   |
| uuid      | 61e477d2-30ba-46c8-bd41-09e20ee3f67f |
| address   | fa:16:3e:f7:c3:54                    |
+-----------+--------------------------------------+



ironic --debug node-list
DEBUG (v2:77) Making authentication request to http://x.x.x.x:5000/v2.0/tokens
INFO (connectionpool:258) Starting new HTTP connection (1): x.x.x.x
DEBUG (connectionpool:375) Setting read timeout to None
DEBUG (connectionpool:415) "POST /v2.0/tokens HTTP/1.1" 200 4528
DEBUG (iso8601:184) Parsed 2014-12-18T18:50:44Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'18', 'daydash': u'18', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'44', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'monthdash': u'12', 'day': None, 'minute': u'50'} with default timezone <iso8601.iso8601.Utc object at 0x7f3aeee30690>
DEBUG (iso8601:140) Got u'2014' for ...
(more)
2014-12-16 01:42:42 -0600 answered a question install ironic in ubuntu

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 | +------------------------+--------------------------------------------------------------------------+

2014-12-16 01:39:06 -0600 received badge  Popular Question (source)
2014-12-16 01:38:33 -0600 commented answer install ironic in ubuntu

Thanks for the reply.

2014-12-16 01:13:20 -0600 answered a question install ironic in ubuntu

Thanks for the reply. Ironic node validate is complated.

ironic node-validate $NODE +------------+--------+--------+ | Interface | Result | Reason | +------------+--------+--------+ | console | True | | | deploy | True | | | management | True | | | power | True | | +------------+--------+--------+

However while deplying using curl i am getting below error

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 | +------------------------+--------------------------------------------------------------------------+

Could you please help me on this.

2014-12-12 17:43:25 -0600 received badge  Notable Question
2014-12-12 15:55:03 -0600 received badge  Student (source)
2014-12-12 08:30:51 -0600 received badge  Popular Question
2014-12-12 01:24:57 -0600 asked a question install ironic in ubuntu

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                  |
2014-12-08 02:25:03 -0600 received badge  Enthusiast
2014-11-28 07:32:35 -0600 received badge  Famous Question
2014-11-27 05:25:56 -0600 received badge  Notable Question
2014-11-26 11:01:43 -0600 received badge  Popular Question