ironic/ironic/tests/unit/conductor
Dmitry Tantsur 3429e3824c Switch to Futurist library for asynchronous execution and periodic tasks
This change switches the conductor to using Futurist library executor and
periodic tasks worker instead of oslo.service periodic tasks. This allows
running periodic tasks in parallel and relying on more standard interfaces
(futures, executors) when dealing with asynchronous execution.

A green thread executor is used instead of using an eventlet green pool
directly. The maximum number of workers is taken from the existing
workers_pool_size configuration option, and no tasks are allowed
to be enqueued to mimic the previous behaviour (might be lifted later).

The periodic tasks worker is using the same executor, and its main loop thread
is also running on it. For this reason minimum value for workers_pool_size
is now 3: periodic task main loop, keep alive thread and at least one thread for
other tasks. A special decorator for driver-periodic tasks is now deprecated,
as the generic decorator can be used there as well.

Closes-Bug: #1526277
Change-Id: I57bf7cebfb6db805b6c521bacfef2993b16ce1ee
2016-02-24 15:44:05 +01:00
..
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
mgr_utils.py Switch to Futurist library for asynchronous execution and periodic tasks 2016-02-24 15:44:05 +01:00
test__mgr_utils.py Rename utils.py to mgr_utils.py to avoid namespace collision 2015-10-23 06:09:41 -07:00
test_base_manager.py Switch to Futurist library for asynchronous execution and periodic tasks 2016-02-24 15:44:05 +01:00
test_manager.py Switch to Futurist library for asynchronous execution and periodic tasks 2016-02-24 15:44:05 +01:00
test_rpcapi.py Add portgroups to support LAG interfaces - RPC 2016-02-04 22:40:54 +02:00
test_task_manager.py Switch to Futurist library for asynchronous execution and periodic tasks 2016-02-24 15:44:05 +01:00
test_utils.py During cleaning, store clean step index 2016-02-15 09:59:25 -08:00