Ask Your Question
1

Ironic: No valid host was found. There are not enough hosts available.

asked 2015-12-15 06:17:51 -0500

Darsh29 gravatar image

updated 2015-12-21 03:59:18 -0500

During the Bare metal provisioning, node fails to boot by saying "No valid host was found. There are not enough hosts available.".

image description

Network and Subnet Creation:

[root@onecloud ~(keystone_admin)]# neutron net-create --tenant-id $TENANT_ID pxenet --shared --provider:network_type flat --provider:physical_network physnet1
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 19accfbc-a619-4812-9fe5-640fa9d03ca8 |
| mtu                       | 0                                    |
| name                      | pxenet                               |
| provider:network_type     | flat                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  |                                      |
| router:external           | False                                |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | ec80a1e3ed004b308f9f87ce51c6b6fa     |
+---------------------------+--------------------------------------+
[root@onecloud ~(keystone_admin)]# neutron subnet-create pxenet 192.168.2.0/24 --name pxenet-sub --ip-version=4 --gateway=192.168.2.1 --allocation-pool start=192.168.2.101,end=192.168.2.109 --enable-dhcp --host-route destination=169.254.169.254/32,nexthop=192.168.2.101
Created a new subnet:
+-------------------+-------------------------------------------------------------------+
| Field             | Value                                                             |
+-------------------+-------------------------------------------------------------------+
| allocation_pools  | {"start": "192.168.2.101", "end": "192.168.2.109"}                |
| cidr              | 192.168.2.0/24                                                    |
| dns_nameservers   |                                                                   |
| enable_dhcp       | True                                                              |
| gateway_ip        | 192.168.2.1                                                       |
| host_routes       | {"destination": "169.254.169.254/32", "nexthop": "192.168.2.101"} |
| id                | 668b31b5-67c2-4518-b652-fc90699efa47                              |
| ip_version        | 4                                                                 |
| ipv6_address_mode |                                                                   |
| ipv6_ra_mode      |                                                                   |
| name              | pxenet-sub                                                        |
| network_id        | 19accfbc-a619-4812-9fe5-640fa9d03ca8                              |
| subnetpool_id     |                                                                   |
| tenant_id         | 08c103656ceb4e68a13cd52e52c08cf8                                  |
+-------------------+-------------------------------------------------------------------+

image description

image description

image description

Ironic Node creation steps:

[root@onecloud ~(keystone_admin)]# ironic node-create -d pxe_ipmitool
+--------------+--------------------------------------+
| Property     | Value                                |
+--------------+--------------------------------------+
| uuid         | ce849a75-3368-451a-8a85-6b8f1a3fb553 |
| driver_info  | {}                                   |
| extra        | {}                                   |
| driver       | pxe_ipmitool                         |
| chassis_uuid |                                      |
| properties   | {}                                   |
+--------------+--------------------------------------+
[root@onecloud ~(keystone_admin)]# NODE_UUID=ce849a75-3368-451a-8a85-6b8f1a3fb553
[root@onecloud ~(keystone_admin)]# ironic node-update $NODE_UUID add driver_info/ipmi_username=root     driver_info/ipmi_password=onecloud driver_info/ipmi_address=192.168.2.80
+------------------------+---------------------------------------------------------------+
| Property               | Value                                                         |
+------------------------+---------------------------------------------------------------+
| instance_uuid          | None                                                          |
| target_power_state     | None                                                          |
| properties             | {}                                                            |
| maintenance            | False                                                         |
| driver_info            | {u'ipmi_address': u'192.168.2.80', u'ipmi_username': u'root', |
|                        | u'ipmi_password': u'******'}                                  |
| extra                  | {}                                                            |
| last_error             | None                                                          |
| created_at             | 2015-12-14T14:01:58+00:00                                     |
| target_provision_state | None                                                          |
| driver                 | pxe_ipmitool                                                  |
| updated_at             | 2015-12-15T07:13:11+00:00                                     |
| instance_info          | {}                                                            |
| chassis_uuid           |                                                               |
| provision_state        | None                                                          |
| reservation            | None                                                          |
| power_state            | None                                                          |
| console_enabled        | False                                                         |
| uuid                   | ce849a75-3368-451a-8a85-6b8f1a3fb553                          |
+------------------------+---------------------------------------------------------------+
[root@onecloud ~(keystone_admin)]# RAM_MB=16384
[root@onecloud ~(keystone_admin)]# CPU=4
[root@onecloud ~(keystone_admin)]# DISK_GB=450
[root@onecloud ~(keystone_admin)]# ARCH=x86_64

Launching Instance:

image description

image description

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-07 06:13:52 -0500

Devananda gravatar image

This is probably due to a mismatch between the Nova flavor and the Ironic Node's "properties" attribute. Please see the document linked below, which includes troubleshooting steps for identifying where the mismatch is.

http://docs.openstack.org/developer/i...

edit flag offensive delete link more

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: 2015-12-15 06:17:51 -0500

Seen: 256 times

Last updated: Dec 21 '15