ironic.drivers.modules.pxe module

PXE Boot Interface

class ironic.drivers.modules.pxe.PXEBoot[source]

Bases: ironic.drivers.modules.pxe_base.PXEBaseMixin, ironic.drivers.base.BootInterface

capabilities = ['ramdisk_boot', 'pxe_boot']
class ironic.drivers.modules.pxe.PXERamdiskDeploy[source]

Bases: ironic.drivers.modules.agent.AgentDeploy

deploy(task)[source]

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.

prepare(task)[source]

Prepare the deployment environment for this node.

Parameters

task – a TaskManager instance.

Raises

NetworkError: if the previous cleaning ports cannot be removed or if new cleaning ports cannot be created.

Raises

InvalidParameterValue when the wrong power state is specified or the wrong driver info is specified for power management.

Raises

StorageError If the storage driver is unable to attach the configured volumes.

Raises

other exceptions by the node’s power driver if something wrong occurred during the power action.

Raises

exception.ImageRefValidationFailed if image_source is not Glance href and is not HTTP(S) URL.

Raises

exception.InvalidParameterValue if network validation fails.

Raises

any boot interface’s prepare_ramdisk exceptions.

validate(task)[source]

Validate the driver-specific Node deployment info.

This method validates whether the properties of the supplied node contain the required information for this driver to deploy images to the node.

Parameters

task – a TaskManager instance

Raises

MissingParameterValue, if any of the required parameters are missing.

Raises

InvalidParameterValue, if any of the parameters have invalid value.