Bases: ironic.drivers.base.DeployInterface
Interface for deploy-related actions.
Clean up the deployment environment for this node.
If preparation of the deployment environment ahead of time is possible, this method should be implemented by the driver. It should erase anything cached by the prepare method.
If implemented, this method must be idempotent. It may be called multiple times for the same node on the same conductor, and it may be called by multiple conductors in parallel. Therefore, it must not require an exclusive lock.
This method is called before tear_down.
| Parameters: | task – a TaskManager instance. |
|---|
Perform a deployment to a node.
Perform the necessary work to deploy an image onto the specified node. This method will be called after prepare(), which may have already performed any preparatory steps, such as pre-caching some data for the node.
| Parameters: | task – a TaskManager instance. |
|---|---|
| Returns: | status of the deploy. One of ironic.common.states. |
Execute a clean step asynchronously on the agent.
| Parameters: |
|
|---|---|
| Raises: | NodeCleaningFailure if the agent does not return a command status |
| Returns: | states.CLEANING to signify the step will be completed async |
Get the list of clean steps from the agent.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Returns: | A list of clean step dictionaries |
Return the properties of the interface.
| Returns: | dictionary of <property name>:<property description> entries. |
|---|
Prepare the deployment environment for this node.
| Parameters: | task – a TaskManager instance. |
|---|
Boot into the agent to prepare for cleaning.
| Parameters: | task – a TaskManager object containing the node |
|---|---|
| Raises NodeCleaningFailure: | |
| if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created | |
| Returns: | states.CLEANING to signify an asynchronous prepare |
Take over management of this node from a dead conductor.
If conductors’ hosts maintain a static relationship to nodes, this method should be implemented by the driver to allow conductors to perform the necessary work during the remapping of nodes to conductors when a conductor joins or leaves the cluster.
| Parameters: | task – a TaskManager instance. |
|---|
Tear down a previous deployment on the task’s node.
| Parameters: | task – a TaskManager instance. |
|---|---|
| Returns: | status of the deploy. One of ironic.common.states. |