ironic.common.raid module

ironic.common.raid module

ironic.common.raid.get_logical_disk_properties(raid_config_schema)[source]

Get logical disk properties from RAID configuration schema.

This method reads the logical properties and their textual description from the schema that is passed.

Parameters:raid_config_schema – A dictionary which is the schema to be used for getting properties that may be specified for the logical disk.
Returns:A dictionary containing the logical disk properties as keys and a textual description for them as values.
ironic.common.raid.update_raid_info(node, raid_config)[source]

Update the node’s information based on the RAID config.

This method updates the node’s information to make use of the configured RAID for scheduling purposes (through properties[‘capabilities’] and properties[‘local_gb’]) and deploying purposes (using properties[‘root_device’]).

Parameters:
  • node – a node object
  • raid_config – The dictionary containing the current RAID configuration.
Raises:

InvalidParameterValue, if ‘raid_config’ has more than one root volume or if node.properties[‘capabilities’] is malformed.

ironic.common.raid.validate_configuration(raid_config, raid_config_schema)[source]

Validates the RAID configuration passed using JSON schema.

This method validates a RAID configuration against a RAID configuration schema.

Parameters:
  • raid_config – A dictionary containing RAID configuration information
  • raid_config_schema – A dictionary which is the schema to be used for validation.
Raises:

InvalidParameterValue, if validation of the RAID configuration fails.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.