iLO Deploy Driver(s) and supporting methods.
Bases: ironic.drivers.modules.ipmitool.IPMIShellinaboxConsole
A ConsoleInterface that uses ipmitool and shellinabox.
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. |
Bases: ironic.drivers.modules.iscsi_deploy.VendorPassthru
Method invoked when deployed with the IPA ramdisk.
This method is invoked during a heartbeat from an agent when the node is in wait-call-back state. This deploys the image on the node and then configures the node to boot according to the desired boot option (netboot or localboot).
Parameters: |
|
---|---|
Raises: | InstanceDeployFailure, if it encounters some error during the deploy. |
Raises: | IloOperationError, if some operation on iLO failed. |
Bases: ironic.drivers.base.DeployInterface
Interface for deploy-related actions.
Clean up the deployment environment for this node.
Ejects the attached virtual media from the iLO and also removes the floppy image from Swift, if it exists.
Parameters: | task – a TaskManager instance. |
---|
Perform a deployment to a node.
Prepares the options for the agent ramdisk and sets the node to boot from virtual media cdrom.
Parameters: | task – a TaskManager instance. |
---|---|
Returns: | states.DEPLOYWAIT |
Raises: | ImageCreationFailed, if it failed while creating the floppy image. |
Raises: | IloOperationError, if some operation on iLO fails. |
Execute a clean step asynchronously on the agent.
Parameters: |
|
---|---|
Returns: | states.CLEANWAIT 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. |
---|
Take over management of this node from a dead conductor.
Parameters: | task – a TaskManager instance. |
---|
Bases: ironic.drivers.modules.agent.AgentVendorInterface
Interface for vendor passthru related actions.
Bases: ironic.drivers.base.DeployInterface
Clean up the deployment environment for the task’s node.
Unlinks instance image and triggers image cache cleanup.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|
Start deployment of the task’s node.
Fetches the instance image, prepares the options for the deployment ramdisk, sets the node to boot from virtual media cdrom, and reboots the given node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | deploy state DEPLOYWAIT. |
Raises: | InstanceDeployFailure, if image size if greater than root partition. |
Raises: | ImageCreationFailed, if it failed while creating the floppy image. |
Raises: | IloOperationError, if some operation on iLO fails. |
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. |
Enables boot up of an ACTIVE node.
It ensures that the ACTIVE node can be booted up successfully when node is taken over by another conductor.
Param: | task: a TaskManager instance containing the node to act on. |
---|
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. |
Validate the deployment information for the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue, if some information is invalid. |
Raises: | MissingParameterValue if ‘kernel_id’ and ‘ramdisk_id’ are missing in the Glance image or ‘kernel’ and ‘ramdisk’ not provided in instance_info for non-Glance image. |
Bases: ironic.drivers.modules.agent_base_vendor.BaseAgentVendor
Vendor-specific interfaces for iLO deploy drivers.
Attaches an ISO image in glance and reboots bare metal.
This method accepts an ISO image href (a Glance UUID or an HTTP(S) URL) attaches it as virtual media and then reboots the node. This is useful for debugging purposes. This can be invoked only when the node is in manage state.
Parameters: |
|
---|
Method invoked when deployed with the IPA ramdisk.
This method is invoked during a heartbeat from an agent when the node is in wait-call-back state. This deploys the image on the node and then configures the node to boot according to the desired boot option (netboot or localboot).
Parameters: |
|
---|---|
Raises: | InstanceDeployFailure, if it encounters some error during the deploy. |
Accepts the results of bootloader installation.
This method acts as a vendor passthru and accepts the result of bootloader installation. If the bootloader installation was successful, then it notifies the baremetal to proceed to reboot and makes the instance active. If bootloader installation failed, then it sets provisioning as failed and powers off the node.
Parameters: |
|
---|
Continues the iSCSI deployment from where ramdisk left off.
This method continues the iSCSI deployment from the conductor node and writes the deploy image to the bare metal’s disk. After that, it does the following depending on boot_option for deploy:
Parameters: |
|
---|---|
Raises: | InvalidState |
Validate vendor-specific actions.
Checks if a valid vendor passthru method was passed and validates the parameters for the vendor passthru method.
Parameters: |
|
---|---|
Raises: | MissingParameterValue, if some required parameters were not passed. |
Raises: | InvalidParameterValue, if any of the parameters have invalid value. |