Ask Your Question
0

Message: No valid host was found. There are not enough hosts available., Code: 500

asked 2019-01-04 07:23:02 -0600

chakravarthy gravatar image

updated 2019-01-08 00:20:25 -0600

I see the above error when trying to create a stack using heat template in Ocata version of openstack, although I have enough resources available in my compute node. My setup has a controller, 2 compute nodes(compute, compute1) and a storage node.

From dashboard I can see that my

first compute node(compute) has used 88 VCPU's of total 144 VCPU's, has used 176GB RAM of total 256GB, has used 1.5TB of total 1.7TB of HDD

second compute node(compute1) has used 0 VCPU's of total 4 VCPU's, has used 1.4GB RAM of total 16GB of RAM, has used 5GB of total 580GB of HDD

I have copied most of the logs that could of use to identify the issue.

Sorry if I have added more than required logs. I will be happy to remove logs which are not required or add more logs if required.

Logs:

nova-api.log:
GET /v2.1/flavors/24c15ae6-d915-4cf8-a906-25d05db3ca8c HTTP/1.1" status: 200 len: 796 time: 0.0383818
2019-01-04 15:58:01.707 12156 INFO nova.api.openstack.wsgi [req-ce5070a4-e476-44f6-97d8-c8d408da634d 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - default default] HTTP exception thrown: Flavor m1.medium could not be found.
2019-01-04 15:58:01.708 12156 INFO nova.osapi_compute.wsgi.server [req-ce5070a4-e476-44f6-97d8-c8d408da634d 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - default default] 10.0.0.11 "GET /v2.1/flavors/m1.medium HTTP/1.1" status: 404 len: 436 time: 0.0614309
2019-01-04 15:58:01.810 12156 INFO nova.osapi_compute.wsgi.server [req-72c15f10-49d8-4419-a861-82f81e3c00cf 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - default default] 10.0.0.11 "GET /v2.1/flavors HTTP/1.1" status: 200 len: 1748 time: 0.0810490
2019-01-04 15:58:01.842 12156 INFO nova.osapi_compute.wsgi.server [req-bdf96a6f-357b-4d36-8fe0-86514c4187f3 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - default default] 10.0.0.11 "GET /v2.1/flavors/24c15ae6-d915-4cf8-a906-25d05db3ca8c HTTP/1.1" status: 200 len: 796 time: 0.0276790

In above log I see that the flavor m1.medium(24c15ae6-d915-4cf8-a906-25d05db3ca8c) is not found and immediately found later and I see these logs repeatedly. Not sure why?

nova-conductor.log
2019-01-04 16:06:51.514 11293 ERROR nova.scheduler.utils [req-061757b4-2c9b-4103-9604-66ef59989d1b 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - - -] [instance: cea485ed-d0c6-44af-a425-ec10d51bfa7d] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1787, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2025, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance cea485ed-d0c6-44af-a425-ec10d51bfa7d was re-scheduled: Binding failed for port 8501b140-ed8b-4ce9-80b8-a03e1c1bfc12, please check neutron logs for more information.\n']
2019-01-04 16:06:51.672 11293 WARNING nova.scheduler.utils [req-061757b4-2c9b-4103-9604-66ef59989d1b 3d72bfdca5b74b6cb5bb8d88df6e13b8 1b23511421a34771be312bc10ecb95a5 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 218, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 98, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/usr/lib/python2.7/dist-packages ...
(more)
edit retag flag offensive close merge delete

Comments

The flavor problem is not really a problem. The client tries getting flavor details by name, which doesn’t work. It then lists flavors, finds the ID, and looks up the ID.

The status in the DHCP log refers to a port, not the DHCP service.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-04 08:25:20 -0600 )edit

Your problem comes from the inability to bind the instance’s port on a compute node. The Neutron agent logs on the compute nodes should provide more information. Linuxbridge agent, openvswitch agent or whatever you configured.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-04 08:31:55 -0600 )edit

By the way, normally Neutron servers are not deployed on compute nodes. Therefore no server logs either.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-04 08:37:38 -0600 )edit

Thank you @Bernd Bausch for your comments. Regarding flavors, later I tried with flavor id and I didn't see the issue with flavor.

Updated the question with openvswitch agent logs. They do say of some port not being present, but I didn't understand them.

chakravarthy gravatar imagechakravarthy ( 2019-01-08 00:23:42 -0600 )edit

Could you please put some light on them and any inputs on how to resolve this issue would be great.

Thank you.

chakravarthy gravatar imagechakravarthy ( 2019-01-08 00:24:18 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-01-18 06:30:09 -0600

chakravarthy gravatar image

I could resolve this issue by adding br-ex(br-provider) to my compute node, all thanks to @Bernd Bausch

Below are the changes I made to fix this issue.

  1. Create the OVS provider bridge:

    $ ovs-vsctl add-br br-provider

  2. In the /etc/neutron/plugins/ml2/openvswitch_agent.ini file, configure the layer-2 agent.

    [ovs]

    bridge_mappings = provider:br-provider

    local_ip = OVERLAY_INTERFACE_IP_ADDRESS

    [agent]

    tunnel_types = vxlan

    l2_population = True

    [securitygroup]

    firewall_driver = iptables_hybrid

    Note: Replace OVERLAY_INTERFACE_IP_ADDRESS with the IP address of the interface that handles VXLAN overlays for self-service networks.

Reference link: https://docs.openstack.org/ocata/networking-guide/deploy-ovs-selfservice.html (https://docs.openstack.org/ocata/netw...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-01-04 07:23:02 -0600

Seen: 34 times

Last updated: Jan 08