iLO Deploy Driver(s) and supporting methods.
Bases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy
Start deployment of the task’s node.
This method sets the boot device to ‘NETWORK’ and then calls PXEDeploy’s deploy method to deploy on the given node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | deploy state DEPLOYWAIT. |
Prepare the deployment environment for this task’s node.
If the node’s ‘capabilities’ property includes a boot_mode, that boot mode will be applied for the node. Otherwise, the existing boot mode of the node is used in the node’s ‘capabilities’ property.
PXEDeploys’ prepare method is then called, to prepare the deploy environment for the node
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | IloOperationError, if some operation on iLO failed. |
Raises: | InvalidParameterValue, if some information is invalid. |
Boot into the agent to prepare for cleaning.
Parameters: | task – a TaskManager object containing the node |
---|---|
Returns: | states.CLEANWAIT to signify an asynchronous prepare. |
Raises NodeCleaningFailure: | |
if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created | |
Raises: | IloOperationError, if some operation on iLO failed. |
Bases: ironic.drivers.modules.agent.AgentDeploy
Interface for deploy-related actions.
Get the list of clean steps from the agent.
Parameters: | task – a TaskManager object containing the node |
---|---|
Raises NodeCleaningFailure: | |
if the clean steps are not yet available (cached), for example, when a node has just been enrolled and has not been cleaned yet. | |
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. |
---|---|
Raises: | IloOperationError, if some operation on iLO failed. |
Boot into the agent to prepare for cleaning.
Parameters: | task – a TaskManager object containing the node |
---|---|
Returns: | states.CLEANWAIT to signify an asynchronous prepare. |
Raises: | NodeCleaningFailure, NetworkError if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created |
Raises: | IloOperationError, if some operation on iLO failed. |
Tear down a previous deployment on the task’s node.
Parameters: | task – a TaskManager instance. |
---|---|
Returns: | states.DELETED |
Raises: | IloOperationError, if some operation on iLO failed. |
Validate the prerequisites for virtual media based deploy.
This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue if any parameters are incorrect |
Raises: | MissingParameterValue if some mandatory information is missing on the node |
Bases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy
Prepare the deployment environment for this task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | IloOperationError, if some operation on iLO failed. |
Boot into the agent to prepare for cleaning.
Parameters: | task – a TaskManager object containing the node |
---|---|
Returns: | states.CLEANWAIT to signify an asynchronous prepare. |
Raises NodeCleaningFailure: | |
if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created | |
Raises: | IloOperationError, if some operation on iLO failed. |
Tear down a previous deployment on the task’s node.
Power off the node. All actual clean-up is done in the clean_up() method which should be called separately.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | deploy state DELETED. |
Raises: | IloOperationError, if some operation on iLO failed. |
Validate the prerequisites for virtual media based deploy.
This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue if any parameters are incorrect |
Raises: | MissingParameterValue if some mandatory information is missing on the node |