Oracle Openstack 4.0.1: Error "No valid host was found" if creating an instance on Oracle VM Server compute node from a default metadata image

(Doc ID 2369072.1)

Last updated on MARCH 30, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 4.0.1 and later
Linux x86-64

Symptoms

Get below error from Horizon GUI, if creating an instance on Oracle VM Server compute node from a default metadata image (QCOW2 disk format) which downloaded from eDelivery.
Message
No valid host was found. There are not enough hosts available.
Code
500
Details
File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/conductor/manager.py", line 1031, in schedule_and_build_instances instance_uuids) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/conductor/manager.py", line 626, in _schedule_instances request_spec, instance_uuids) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/utils.py", line 586, in wrapped return func(*args, **kwargs) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 52, in select_destinations instance_uuids) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 33, in select_destinations instance_uuids) File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 137, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/transport.py", line 123, in _send timeout=timeout, retry=retry) File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 578, in send retry=retry) File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 569, in _send raise result
Created
Feb. 19, 2018, 12:32 a.m.

 

Similar error found in nova-conductor.log on control nodes:
$ cat /var/lib/docker/volumes/kolla_logs/_data/nova/nova-conductor.log | less
(snip)
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager raise result
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager NoValidHost_Remote: No valid host was found. There are not enough hosts available.
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager Traceback (most recent call last):
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 232, in inner
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager return func(*args, **kwargs)
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager alloc_reqs_by_rp_uuid, provider_summaries)
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 109, in select_destinations
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager raise exception.NoValidHost(reason=reason)
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager NoValidHost: No valid host was found. There are not enough hosts available.
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:45.286 21 ERROR nova.conductor.manager
2018-03-01 13:41:46.081 21 WARNING nova.scheduler.utils [req-8a3b5bb4-b353-4e8e-8127-a0888539f3ae c18c04ab405a46caab106ac4c0f35316 97d80b04fb974227a07caa1b69c6f8c3 - default default] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 232, in inner
return func(*args, **kwargs)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 109, in select_destinations
raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.
: NoValidHost_Remote: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 232, in inner
return func(*args, **kwargs)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 109, in select_destinations
raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.
2018-03-01 13:41:46.082 21 WARNING nova.scheduler.utils [req-8a3b5bb4-b353-4e8e-8127-a0888539f3ae c18c04ab405a46caab106ac4c0f35316 97d80b04fb974227a07caa1b69c6f8c3 - default default] [instance: c33676ff-46cd-4ac0-8a98-b42d91b3dc77] Setting instance to ERROR state.: NoValidHost_Remote: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 232, in inner
return func(*args, **kwargs)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
alloc_reqs_by_rp_uuid, provider_summaries)

File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 109, in select_destinations
raise exception.NoValidHost(reason=reason)

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

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms