no valid host was found. code 500

asked 2020-05-12 10:32:41 -0500

hhami79 gravatar image

updated 2020-05-12 13:46:31 -0500

i installed openstack train manually on CentOS 8 : i have 1 controller node and two compute node my compute nodes added successfully but i cant launch any instance ........ i configured controller & compute nodes with openstack docs

[root@compute02 home]# tail -f /var/log/nova/nova-compute.log 
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager   File "/usr/lib/python3.6/site-packages/nova/compute/resource_tracker.py", line 1151, in _update_to_placement
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager     context, compute_node.uuid, name=compute_node.hypervisor_hostname)
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager   File "/usr/lib/python3.6/site-packages/nova/scheduler/client/report.py", line 858, in get_provider_tree_and_ensure_root
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager     parent_provider_uuid=parent_provider_uuid)
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager   File "/usr/lib/python3.6/site-packages/nova/scheduler/client/report.py", line 640, in _ensure_resource_provider
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager     rps_to_refresh = self.get_providers_in_tree(context, uuid)
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager   File "/usr/lib/python3.6/site-packages/nova/scheduler/client/report.py", line 503, in get_providers_in_tree
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager     raise exception.ResourceProviderRetrievalFailed(uuid=uuid)
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager nova.exception.ResourceProviderRetrievalFailed: Failed to get resource provider with UUID b48fd4d9-dc67-4053-8252-425761043212
        2020-05-12 19:56:25.296 7054 ERROR nova.compute.manager

[root@controller home]# tail /var/log/neutron/linuxbridge-agent.log -f

2020-05-12 17:28:52.034 1380 ERROR oslo.messaging._drivers.impl_rabbit [-] Connection failed: [Errno 111] ECONNREFUSED (retrying in 4.0 seconds): ConnectionRefusedError: [Errno 111] ECONNREFUSED

[root@controller home]# tail /var/log/nova/nova-scheduler.log

<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /allocation_candidates
on this server.<br />
</p>
</body></html>
.
2020-05-12 19:14:51.633 2883 INFO nova.scheduler.manager [req-b05443c9-b36a-42ef-8ecf-595ea0b90c3c 5e7d3b4bf0e7403aa51788d9e9a92820 990e4d5e90604cf5900445995dbb56a1 - default default] Got no allocation candidates from the Placement API. This could be due to insufficient resources or a temporary occurrence as compute nodes start up.

[root@controller home]# tail /var/log/nova/nova-conductor.log

  File "/usr/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 235, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python3.6/site-packages/nova/scheduler/manager.py", line 199, in select_destinations
    raise exception.NoValidHost(reason="")

nova.exception.NoValidHost: No valid host was found. 
: nova.exception_Remote.NoValidHost_Remote: No valid host was found. 
2020-05-12 19:14:51.678 2868 WARNING nova.scheduler.utils [req-b05443c9-b36a-42ef-8ecf-595ea0b90c3c 5e7d3b4bf0e7403aa51788d9e9a92820 990e4d5e90604cf5900445995dbb56a1 - default default] [instance: df90ac75-f8b6-43a7-be15-b6f76e988551] Setting instance to ERROR state.: nova.exception_Remote.NoValidHost_Remote: No valid host was found.

debug :

4a18-9b47-db6f2c6439ac: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /resource_providers/8f1a5cfb-87d0-4a18-9b47-db6f2c6439ac/allocations
on this server.<br />
</p>
</body></html>
: nova.exception.ResourceProviderAllocationRetrievalFailed: Failed to retrieve allocations for resource provider 8f1a5cfb-87d0-4a18-9b47-db6f2c6439ac: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2020-05-12 23:15:15.309 ...
(more)
edit retag flag offensive close merge delete

Comments

Is openstack-placement configured properly? Check the nova-conductor.log and nova-scheduler.log on the controller.

eblock gravatar imageeblock ( 2020-05-12 10:34:19 -0500 )edit

i checked and added its to Top

hhami79 gravatar imagehhami79 ( 2020-05-12 11:01:40 -0500 )edit

i cant launch or delete error instance in error state

hhami79 gravatar imagehhami79 ( 2020-05-13 08:12:05 -0500 )edit

There was already a post about this https://ask.openstack.org/en/question/102256/how-to-configure-placement-service-for-compute-node-on-ocata/ (here)

Alex1806 gravatar imageAlex1806 ( 2020-05-13 20:58:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-16 08:36:26 -0500

hhami79 gravatar image

updated 2020-05-16 08:42:33 -0500

i fixed my problem with check placement log on controller and add this to : vi /etc/httpd/conf.d/00-placement-api.conf

<Directory /usr/bin>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all
    </IfVersion>
</Directory>

and restart service

edit flag offensive delete link more

Comments

Great that you've got it running!

Alex1806 gravatar imageAlex1806 ( 2020-05-16 09:05:06 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-05-12 10:32:41 -0500

Seen: 231 times

Last updated: May 16