no host found and placement resource provider warning
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
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.
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
That's the authentication endpoint. Great that you found the solution.