openstack ocata:Filter RetryFilter returned 0 hosts

asked 2017-03-09 20:34:52 -0500

xanax gravatar image

updated 2017-03-09 23:23:23 -0500

I've set up a test environment thru official doc,when i try to launch an instance,the conduct log says “No valid host was found”, error code 500,then i go to the scheduler log, which says "Filter RetryFilter returned 0 hosts", i double checked my compute host which is good and ready for deploy any instances. Any helps is appreciated。Thanks

[root@stack-1 ~]# openstack compute service list
+----+------------------+---------+----------+---------+-------+----------------------------+
| ID | Binary           | Host    | Zone     | Status  | State | Updated At                 |
+----+------------------+---------+----------+---------+-------+----------------------------+
|  1 | nova-conductor   | stack-1 | internal | enabled | up    | 2017-03-10T02:29:58.000000 |
|  3 | nova-consoleauth | stack-1 | internal | enabled | up    | 2017-03-10T02:29:59.000000 |
|  4 | nova-scheduler   | stack-1 | internal | enabled | up    | 2017-03-10T02:29:59.000000 |
 14 | nova-compute     | stack-2 | nova     | enabled | up    | 2017-03-10T02:29:53.000000 |
| 15 | nova-compute     | stack-5 | nova     | enabled | up    | 2017-03-10T02:29:57.000000 |
| 16 | nova-compute     | stack-6 | nova     | enabled | up    | 2017-03-10T02:29:58.000000 |**
| 17 | nova-console     | stack-1 | internal | enabled | up    | 2017-03-10T02:29:54.000000 |

[root@stack-1 ~]# nova hypervisor-list
/usr/lib/python2.7/site-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
  warnings.warn(msg)
+----+---------------------+-------+---------+
| ID | Hypervisor hostname | State | Status  |
+----+---------------------+-------+---------+
| 1  | stack-2             | up    | enabled |
| 2  | stack-6             | up    | enabled |
+----+---------------------+-------+---------+

nova-conductor.log:

2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager [req-d5be0040-144c-49b8-b0ca-bfa91d8a8cd4 - - - - -] Failed to schedule instances
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager Traceback (most recent call last):
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     request_specs[0].to_legacy_filter_properties_dict())
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     hosts = self.scheduler_client.select_destinations(context, spec_obj)
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     return func(*args, **kwargs)
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     return self.queryclient.select_destinations(context, spec_obj)
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     return getattr(self.instance, __name)(*args, **kwargs)
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager     return self.scheduler_rpcapi.select_destinations(context, spec_obj)
2017-03-10 10:06:28.210 3812 ERROR nova.conductor.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129, in select_destinations
2017-03-10 ...
(more)
edit retag flag offensive close merge delete

Comments

The host failed launching the virtual machine, the scheduler tried to find another host, but right from the start discarded the failed host through the retry filter.

Most likely you have other filter messages further up in the scheduler log.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-09 23:25:21 -0500 )edit

Check relevant libvirt instance log. It might be misleading RetryFilter error due to KVM/Libvirt error to launch VM on Compute. Sample for Newton described here
http://dbaxps.blogspot.com/2016/12/rd...

dbaxps gravatar imagedbaxps ( 2017-03-10 02:43:26 -0500 )edit

The official Ocata document is missing cell setup information. Your may be missing some of the cell steps: nova-manage cell_v2 discover_hosts

jep gravatar imagejep ( 2017-03-10 09:31:30 -0500 )edit

Do a grep nova.filter nova-scheduler.log. If you see something like RetryFilter starts with 0 hosts, you might have an issue with the resource tracker on the compute nodes. Do a grep "Unable to update inventory for resource provider" nova-compute.log to check this.

Markus Zoeller gravatar imageMarkus Zoeller ( 2017-06-20 01:40:11 -0500 )edit