iPXE Boot Interface
ironic.drivers.modules.ipxe.iPXEBoot[source]¶Bases: ironic.drivers.modules.pxe_base.PXEBaseMixin, ironic.drivers.base.BootInterface
capabilities = ['iscsi_volume_boot', 'ramdisk_boot', 'ipxe_boot']¶clean_up_instance(**kwargs)[source]¶Cleans up the boot of instance.
This method cleans up the environment that was setup for booting the instance. It unlinks the instance kernel/ramdisk in node’s directory in tftproot and removes the PXE config.
| Parameters: | task – a task from TaskManager. |
|---|---|
| Returns: | None |
prepare_instance(**kwargs)[source]¶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.
| Parameters: | task – a task from TaskManager. |
|---|---|
| Returns: | None |
prepare_ramdisk(**kwargs)[source]¶Prepares the boot of Ironic ramdisk using PXE.
This method prepares the boot of the deploy or rescue kernel/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. |
validate(**kwargs)[source]¶Validate the PXE-specific info for booting deploy/instance images.
This method validates the PXE-specific info for booting the ramdisk and instance on the node. If invalid, raises an exception; otherwise returns None.
| Parameters: | task – a task from TaskManager. |
|---|---|
| Returns: | None |
| Raises: | InvalidParameterValue, if some parameters are invalid. |
| Raises: | MissingParameterValue, if some required parameters are missing. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.