The ironic.drivers.modules.ilo.deploy Module

iLO Deploy Driver(s) and supporting methods.

class ironic.drivers.modules.ilo.deploy.IloPXEDeploy[source]

Bases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy

deploy(*args, **kwargs)[source]

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(*args, **kwargs)[source]

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.
prepare_cleaning(*args, **kwargs)[source]

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(*args, **kwargs)[source]

Tear down a previous deployment on the task’s node.

Parameters:task – a TaskManager instance.
Returns:states.DELETED
class ironic.drivers.modules.ilo.deploy.IloVirtualMediaAgentDeploy[source]

Bases: ironic.drivers.modules.agent.AgentDeploy

Interface for deploy-related actions.

get_clean_steps(*args, **kwargs)[source]

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
get_properties()[source]

Return the properties of the interface.

Returns:dictionary of <property name>:<property description> entries.
prepare(*args, **kwargs)[source]

Prepare the deployment environment for this node.

Parameters:task – a TaskManager instance.
Raises:IloOperationError, if some operation on iLO failed.
prepare_cleaning(*args, **kwargs)[source]

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(*args, **kwargs)[source]

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(*args, **kwargs)[source]

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
class ironic.drivers.modules.ilo.deploy.IloVirtualMediaIscsiDeploy[source]

Bases: ironic.drivers.modules.iscsi_deploy.ISCSIDeploy

get_properties()[source]
prepare(*args, **kwargs)[source]

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.
prepare_cleaning(*args, **kwargs)[source]

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(*args, **kwargs)[source]

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(*args, **kwargs)[source]

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

Project Source

This Page