Timeout when reading response headers from daemon process 'placement-api': /usr/bin/placement-api

asked 2020-02-14 07:28:30 -0500

gsic-emic gravatar image

Hi,

I can't create instances in Openstack Train.

I've seen on my controller node the file /var/log/apache2/placement_api_error.log and it is full of this message: Timeout when reading response headers from daemon process 'placement-api': /usr/bin/placement-api

On my compute node, I've seen /var/log/nova/nova-compute.log :

    2020-02-14 13:51:17.613 2889 INFO nova.compute.manager [req-c3030fd1-a85b-41d2-9135-718e8f65abf2 - - - - -] Looking for unclaimed instances stuck in BUILDING status for nodes managed by this host 
    2020-02-14 13:56:17.741 2889 WARNING keystoneauth.discover [req-c3030fd1-a85b-41d2-9135-718e8f65abf2 - - - - -] Failed to contact the endpoint at http://controller:8778 for discovery. Fallback to using that endpoint as the base url. 
    2020-02-14 14:01:17.847 2889 ERROR nova.compute.manager [req-c3030fd1-a85b-41d2-9135-718e8f65abf2 - - - - -] Could not retrieve compute node resource provider 1644f654-4ac0-4d9f-b637-aba57efc69fe and therefore unable to error out any instances stuck in BUILDING state. Error: Failed to retrieve allocations for resource provider 1644f654-4ac0-4d9f-b637-aba57efc69fe: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>
<title>504 Gateway Timeout</title>
</head><body>
<h1>Gateway Timeout</h1>
<p>The gateway did not receive a timely response
from the upstream server or application.</p> 
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at controller Port 8778</address>
</body></html>
: nova.exception.ResourceProviderAllocationRetrievalFailed: Failed to retrieve allocations for resource provider 1644f654-4ac0-4d9f-b637-aba57efc69fe: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

Could anyone help me?

edit retag flag offensive close merge delete

Comments

Seems the Placement service is not running. Check the placement logs for reasons why.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-14 08:26:23 -0500 )edit

Is not /var/log/apache2/placement_api_error.log the placement's log?

gsic-emic gravatar imagegsic-emic ( 2020-02-17 02:28:16 -0500 )edit

No. This file contains messages generated by Apache. Where your Placement log is depends on your configuration; probably somewhere under /var/log.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-17 05:37:17 -0500 )edit

I don't find any logs related to placement on the whole system except Apache generated ones. I'm following this documentation: https://docs.openstack.org/placement/...

gsic-emic gravatar imagegsic-emic ( 2020-02-17 06:49:43 -0500 )edit

Perhaps it's configured to log to stderr, in which case you will probably find the logs in the systemd journal.

Config guide: https://docs.openstack.org/placement/....

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-17 07:28:51 -0500 )edit