65a68e4e96
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
14 lines
593 B
YAML
14 lines
593 B
YAML
---
|
|
features:
|
|
- |
|
|
The `framework for deployment steps
|
|
<https://specs.openstack.org/openstack/ironic-specs/specs/approved/deployment-steps-framework.html>`_
|
|
is in place. All in-tree drivers (DeployInterfaces) have one (big) deploy
|
|
step; the conductor executes this step when deploying a node.
|
|
deprecations:
|
|
- |
|
|
All drivers must implement their deployment process using `deploy steps`.
|
|
Out-of-tree drivers without deploy steps will be supported until the T* release.
|
|
For more details, see
|
|
`story 1753128 <https://storyboard.openstack.org/#!/story/1753128>`_.
|