ironic/ironic/tests/unit
Mark Goddard 65a68e4e96 Deploy steps - conductor & drivers
This adds a 'deploy_step' decorator. A deploy step must take as the
only positional argument, a TaskManager object.

A step can be executed synchronously or asynchronously. A step should
return None if the method has completed synchronously or
states.DEPLOYWAIT if the step will continue to execute asynchronously.
If the step executes asynchronously, it should issue a call to the
'continue_node_deploy' RPC, so the conductor can begin the next
deploy step.

Only steps with priorities greater than 0 are used.
These steps are ordered by priority from highest value to lowest
value. For steps with the same priority, they are ordered by driver
interface priority (see conductor.manager.DEPLOYING_INTERFACE_PRIORITY).

All in-tree DeployInterfaces are converted to have one big deploy_step
(their existing deploy() method).

A new RPC method 'continue_node_deploy' (RPC API version 1.45) is used
by deploy steps to notify the conductor to continue node deployment
(e.g. execute the next deploy step).

Similar to cleaning, the conductor gets the node's deploy steps and
executes them, one at a time (one deploy step right now). The conductor
also handles out-of-tree drivers that don't have deploy steps yet; a
warning is logged in these cases.

Co-Authored-By: Ruby Loo <rloo@oath.com>

Change-Id: I5feac3856cc4b87a850180b7fd0b3b9805f9225f
Story: #1753128
Task: #22592
2018-07-11 16:18:59 +00:00
..
api Deploy steps - DB model 2018-07-10 13:10:24 -07:00
cmd Allow data migrations to accept options 2018-01-25 16:51:42 +00:00
common Remove support for creating and loading classic drivers 2018-07-02 17:37:28 +02:00
conductor Deploy steps - conductor & drivers 2018-07-11 16:18:59 +00:00
conf Remove deprecated [keystone] config section 2018-06-11 13:30:50 +00:00
db Deploy steps - DB model 2018-07-10 13:10:24 -07:00
dhcp Completely stop using the "fake" classic driver in unit tests 2018-06-06 16:10:43 +02:00
drivers Deploy steps - conductor & drivers 2018-07-11 16:18:59 +00:00
objects Deploy steps - versioned objects 2018-07-10 13:10:24 -07:00
__init__.py Setup logging in unit tests 2017-04-13 20:47:10 +03:00
policy_fixture.py Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
raid_constants.py Fix for Unable to create RAID1 on Dell BOSS card 2018-06-19 14:41:57 -04:00
stubs.py Handle case when a glance image contains no data 2018-02-07 13:45:55 +01:00
test_base.py Fix issue with double mocking of utils.execute functions 2018-02-23 05:44:59 -08:00