PackStack installed Ocata launch instance [Error: No valid host was found. There are not enough hosts available.].

asked 2018-11-12 10:44:36 -0500

sunfish2 gravatar image

I have installed Ocata with Packstack All-in-one. But when launch instance, it shows "Error: No valid host was found. There are not enough hosts available". I have checked the services list and other resources in my setup, everything looks up and running except below the placement API issue:

[root@localhost etc(keystone_admin)]# nova-status upgrade check

+-------------------------------------------------------------------+ | Upgrade Check Results | +-------------------------------------------------------------------+ | Check: Cells v2 | | Result: Success | | Details: None | +-------------------------------------------------------------------+ | Check: Placement API | | Result: Failure | | Details: Discovery for placement API URI failed. | +-------------------------------------------------------------------+ | Check: Resource Providers | | Result: Warning | | Details: There are no compute resource providers in the Placement | | service but there are 1 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. | +-------------------------------------------------------------------+

[root@localhost etc(keystone_admin)]# openstack catalog show placement

+-----------+-----------------------------------------------------+ | Field | Value | +-----------+-----------------------------------------------------+ | endpoints | RegionOne | | | publicURL: http://10.10.0.101:8778/placement | | | internalURL: http://10.10.0.101:8778/placement | | | adminURL: http://10.10.0.101:8778/placement | | | | | name | placement | | type | placement | +-----------+-----------------------------------------------------+

When I manually check placement API endpoint, it works:

[root@localhost etc(keystone_admin)]# OSTOKEN=$(openstack token issue -f value -c id) [root@localhost etc(keystone_admin)]# curl -s -H "X-Auth-Token: $OSTOKEN" http://10.10.0.101:8778/placement {"versions": [{"min_version": "1.0", "max_version": "1.4", "id": "v1.0"}]}

Please help to guide me where to debug further to get this problem fixed? Thanks.

edit retag flag offensive close merge delete

Comments

Check the nova compute log. You may find that nova-compute was unable to register with the placement service.

Format command output using the 101010 button to make it readable.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-12 15:49:48 -0500 )edit

Agree, the nova-compute log will provide more information about what is happening. It might be that it is not configured with the correct authentication for placement, or is unable to reach the placement service over the network.

cdent gravatar imagecdent ( 2018-12-20 06:31:09 -0500 )edit