Boot Interface for iLO drivers and its supporting methods.
None
Bases: ironic.drivers.modules.pxe.PXEBoot
IloPXEBoot.
clean_up_instance
(task)¶Cleans up the boot of instance.
This method cleans up the PXE environment that was setup for booting the instance. It unlinks the instance kernel/ramdisk in the node’s directory in tftproot and removes it’s PXE config. In case of UEFI iSCSI booting, it cleans up iSCSI target information from the node.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | None |
Raises: | IloOperationError, if some operation on iLO failed. |
IloPXEBoot.
prepare_instance
(task)¶Prepares the boot of instance.
This method prepares the boot of the instance after reading relevant information from the node’s instance_info. In case of netboot, it updates the dhcp entries and switches the PXE config. In case of localboot, it cleans up the PXE config. In case of ‘boot from volume’, it updates the iSCSI info onto iLO and sets the node to boot from ‘UefiTarget’ boot device.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | None |
Raises: | IloOperationError, if some operation on iLO failed. |
IloPXEBoot.
prepare_ramdisk
(task, ramdisk_params)¶Prepares the boot of Ironic ramdisk using PXE.
This method prepares the boot of the deploy or rescue ramdisk after reading relevant information from the node’s driver_info and instance_info.
Parameters: |
|
---|---|
Returns: | None |
Raises: | MissingParameterValue, if some information is missing in node’s driver_info or instance_info. |
Raises: | InvalidParameterValue, if some information provided is invalid. |
Raises: | IronicException, if some power or set boot boot device operation failed on the node. |
Raises: | IloOperationError, if some operation on iLO failed. |
None
Bases: ironic.drivers.base.BootInterface
IloVirtualMediaBoot.
clean_up_instance
(task)[source]¶Cleans up the boot of instance.
This method cleans up the environment that was setup for booting the instance. It ejects virtual media. In case of UEFI iSCSI booting, it cleans up iSCSI target information from the node.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | None |
Raises: | IloOperationError, if some operation on iLO failed. |
IloVirtualMediaBoot.
clean_up_ramdisk
(task)[source]¶Cleans up the boot of ironic ramdisk.
This method cleans up virtual media devices setup for the deploy or rescue ramdisk.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | None |
Raises: | IloOperationError, if some operation on iLO failed. |
IloVirtualMediaBoot.
get_properties
()[source]¶Return the properties of the interface.
Returns: | dictionary of <property name>:<property description> entries. |
---|
IloVirtualMediaBoot.
prepare_instance
(task)[source]¶Prepares the boot of instance.
This method prepares the boot of the instance after reading relevant information from the node’s instance_info. It does the following depending on boot_option for deploy:
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | None |
Raises: | IloOperationError, if some operation on iLO failed. |
Raises: | InstanceDeployFailure, if its try to boot iSCSI volume in ‘BIOS’ boot mode. |
IloVirtualMediaBoot.
prepare_ramdisk
(task, ramdisk_params)[source]¶Prepares the boot of deploy ramdisk using virtual media.
This method prepares the boot of the deploy or rescue ramdisk after reading relevant information from the node’s driver_info and instance_info.
Parameters: |
|
---|---|
Returns: | None |
Raises: | MissingParameterValue, if some information is missing in node’s driver_info or instance_info. |
Raises: | InvalidParameterValue, if some information provided is invalid. |
Raises: | IronicException, if some power or set boot boot device operation failed on the node. |
Raises: | IloOperationError, if some operation on iLO failed. |
IloVirtualMediaBoot.
validate
(task)[source]¶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. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.