no host found and placement resource provider warning

asked 2019-07-19 05:20:58 -0500

Subhash D gravatar image

updated 2019-07-21 23:03:12 -0500

Hi,

I am not able to create any instance and it giving me no host found , when i verified theat resource provider showing a warning

+-------------------------------------------------------------------+ | Upgrade Check Results | +-------------------------------------------------------------------+ | Check: Cells v2 | | Result: Success | | Details: None | +-------------------------------------------------------------------+ | Check: Placement API | | Result: Success | | Details: None | +-------------------------------------------------------------------+ | Check: Resource Providers | | Result: Warning | | Details: There are no compute resource providers in the Placement | | service but there are 6 compute nodes in the deployment. | | This means no compute nodes are reporting into the | | Placement service and need to be upgraded and/or fixed. | | See | | http://docs.openstack.org/developer/nova/placement.html (http://docs.openstack.org/developer/n...) | | for more details. | +-------------------------------------------------------------------+

netstat -anlp |grep 8778 tcp 0 0 0.0.0.0:8778 0.0.0.0:* LISTEN 18917/httpd

i have run already but no output :

$ openstack catalog list $ PLACEMENT_ENDPOINT=placement-endpoint-returned-by-previous-command $ openstack token issue -f value -c id $ TOKEN=the-token-returned-by-the-previous-command $ curl ${PLACEMENT_ENDPOINT}/resource_providers -H "x-auth-token: $TOKEN" | python -m json.tool

Output :

curl ${PLACEMENT_ENDPOINT}/resource_providers -H "x-auth-token: $TOKEN" | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 26 100 26 0 0 117 0 --:--:-- --:--:-- --:--:-- 118 { "resource_providers": [] }

Can you please help there is something wrong

Thanks, advance

edit retag flag offensive close merge delete

Comments

Is nova-compute running somewhere? If not, it is normal to have no resource providers. If it is running, check its log file for errors trying to register with the Placement service.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-19 06:07:32 -0500 )edit

Thank you for giving me the clue, it is working fine now When I checked the nova-compute logs clearly in compute node it is printed like below , WARNING nova.scheduler.client.report Discovering suitable URL for place , it was auth_url=http://ip:5000/v2.0 then i changed it to /v3 version

Subhash D gravatar imageSubhash D ( 2019-07-21 23:01:37 -0500 )edit

That's the authentication endpoint. Great that you found the solution.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-21 23:26:07 -0500 )edit