The ironic.drivers.modules.ilo.boot Module

Boot Interface for iLO drivers and its supporting methods.

class ironic.drivers.modules.ilo.boot.IloVirtualMediaBoot[source]

Bases: ironic.drivers.base.BootInterface

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

Cleans up the boot of instance.

This method cleans up the environment that was setup for booting the instance. It ejects virtual media

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

Cleans up the boot of ironic ramdisk.

This method cleans up virtual media devices setup for the deploy ramdisk.

Parameters:task – a task from TaskManager.
Returns:None
Raises:IloOperationError, if some operation on iLO failed.
get_properties()[source]
prepare_instance(*args, **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. It does the following depending on boot_option for deploy:

  • If the boot_option requested for this deploy is ‘local’ or image is a whole disk image, then it sets the node to boot from disk.
  • Otherwise it finds/creates the boot ISO to boot the instance image, attaches the boot ISO to the bare metal and then sets the node to boot from CDROM.
Parameters:task – a task from TaskManager.
Returns:None
Raises:IloOperationError, if some operation on iLO failed.
prepare_ramdisk(*args, **kwargs)[source]

Prepares the boot of deploy ramdisk using virtual media.

This method prepares the boot of the deploy ramdisk after reading relevant information from the node’s driver_info and instance_info.

Parameters:
  • task – a task from TaskManager.
  • ramdisk_params – the parameters to be passed to the ramdisk.
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.

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