ironic.drivers.modules.ilo.raid module

iLO5 RAID specific methods

class ironic.drivers.modules.ilo.raid.Ilo5RAID[source]

Bases: ironic.drivers.base.RAIDInterface

Implementation of OOB RAIDInterface for iLO5.

apply_configuration(task, raid_config, create_root_volume=True, create_nonroot_volumes=False)[source]

Applies RAID configuration on the given node.

Parameters
  • task – A TaskManager instance.

  • raid_config – The RAID configuration to apply.

  • create_root_volume – Setting this to False indicates not to create root volume that is specified in raid_config. Default value is True.

  • create_nonroot_volumes – Setting this to False indicates not to create non-root volumes (all except the root volume) in raid_config. Default value is True.

  • delete_existing – Setting this to True indicates to delete RAID configuration prior to creating the new configuration.

Raises

InvalidParameterValue, if the RAID configuration is invalid.

Returns

states.DEPLOYWAIT if RAID configuration is in progress asynchronously or None if it is complete.

create_configuration(task, create_root_volume=True, create_nonroot_volumes=True)[source]

Create a RAID configuration on a bare metal using agent ramdisk.

This method creates a RAID configuration on the given node.

Parameters
  • task – a TaskManager instance.

  • create_root_volume – If True, a root volume is created during RAID configuration. Otherwise, no root volume is created. Default is True.

  • create_nonroot_volumes – If True, non-root volumes are created. If False, no non-root volumes are created. Default is True.

Raises

MissingParameterValue, if node.target_raid_config is missing or was found to be empty after skipping root volume and/or non-root volumes.

Raises

NodeCleaningFailure, on failure to execute clean step.

Raises

InstanceDeployFailure, on failure to execute deploy step.

delete_configuration(task)[source]

Delete the RAID configuration.

Parameters

task – a TaskManager instance containing the node to act on.

Raises

NodeCleaningFailure, on failure to execute clean step.

Raises

InstanceDeployFailure, on failure to execute deploy step.

get_properties()[source]

Return the properties of the interface.