Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't create instance, error shown "No valid host"

I found problem about unable to create new instance. I have tried create new instance from cirros image, it worked fine. But when tried to create instance from RedHat 7.3 image (3.49GB), there is error "Error: No valid host was found. There are not enough hosts available."

I test cinder service by manually added new volume in Volume tab on dashboard, it can be added completed successfully.

In nova-conductor.log, shown error: 2017-04-10 02:08:05.712 5165 WARNING nova.scheduler.utils [req-f36cdaeb-872f-492c-92dd-1e526b42fb09 6201f2f0414141dba1af51ddec938282 1a9d98abf5754e0090f923def9750291 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner return func(args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations dests = self.driver.select_destinations(ctxt, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations raise exception.NoValidHost(reason=reason) NoValidHost: No valid host was found. There are not enough hosts available.

Can't create instance, error shown "No valid host"

I found problem about unable to create new instance. I have tried create new instance from cirros image, it worked fine. But when tried to create instance from RedHat 7.3 image (3.49GB), there is error "Error: No valid host was found. There are not enough hosts available."

I test cinder service by manually added new volume in Volume tab on dashboard, it can be added completed successfully.

In nova-conductor.log, shown error: error:

2017-04-10 02:08:05.712 5165 WARNING nova.scheduler.utils [req-f36cdaeb-872f-492c-92dd-1e526b42fb09 6201f2f0414141dba1af51ddec938282 1a9d98abf5754e0090f923def9750291 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner return func(args, *kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations dests = self.driver.select_destinations(ctxt, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations raise exception.NoValidHost(reason=reason) NoValidHost: No valid host was found. There are not enough hosts available.

Can't create instance, error shown "No valid host"

I found problem about unable to create new instance. I have tried create new instance from cirros image, it worked fine. But when tried to create instance from RedHat 7.3 image (3.49GB), there is error "Error: No valid host was found. There are not enough hosts available."

I test cinder service by manually added new volume in Volume tab on dashboard, it can be added completed successfully.

In nova-conductor.log, shown error:

2017-04-10 02:08:05.712 5165 WARNING nova.scheduler.utils [req-f36cdaeb-872f-492c-92dd-1e526b42fb09 6201f2f0414141dba1af51ddec938282 1a9d98abf5754e0090f923def9750291 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner
    return func(args, *kwargs)
func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)
  File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations
    raise exception.NoValidHost(reason=reason)
NoValidHost: No valid host was found. There are not enough hosts available.available.

More information, these are services status from my server:

[root@os10 ~(keystone_admin)]# nova service-list
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-cert        | localhost.localdomain | internal | enabled | down  | 2017-03-21T03:40:48.000000 | -               |
| 2  | nova-consoleauth | localhost.localdomain | internal | enabled | down  | 2017-03-21T03:40:55.000000 | -               |
| 18 | nova-scheduler   | localhost.localdomain | internal | enabled | down  | 2017-03-21T03:40:53.000000 | -               |
| 19 | nova-conductor   | localhost.localdomain | internal | enabled | down  | 2017-03-21T03:40:56.000000 | -               |
| 27 | nova-compute     | localhost.localdomain | nova     | enabled | down  | 2017-04-04T09:58:18.000000 | -               |
| 28 | nova-conductor   | os10                  | internal | enabled | up    | 2017-04-10T06:14:57.000000 | -               |
| 29 | nova-consoleauth | os10                  | internal | enabled | up    | 2017-04-10T06:15:00.000000 | -               |
| 30 | nova-cert        | os10                  | internal | enabled | up    | 2017-04-10T06:15:00.000000 | -               |
| 31 | nova-scheduler   | os10                  | internal | enabled | up    | 2017-04-10T06:14:59.000000 | -               |
| 32 | nova-compute     | os10                  | nova     | enabled | up    | 2017-04-10T06:14:59.000000 | -               |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+