None
Bases: ironic.drivers.base.ManagementInterface
CIMCManagement.
get_boot_device
(task)[source]¶Get the current boot device for a node.
Provides the current boot device of the node. Be aware that not all drivers support this.
Parameters: | task – a task from TaskManager. | ||||
---|---|---|---|---|---|
Raises: | MissingParameterValue if a required parameter is missing | ||||
Raises: | CIMCException if there is an error from CIMC | ||||
Returns: | a dictionary containing:
|
CIMCManagement.
get_properties
()[source]¶Return the properties of the interface.
Returns: | dictionary of <property name>:<property description> entries. |
---|
CIMCManagement.
get_sensors_data
(task)[source]¶Get sensors data method.
Parameters: | task – A TaskManager instance. |
---|---|
Raises: | FailedToGetSensorData when getting the sensor data fails. |
Raises: | FailedToParseSensorData when parsing sensor data fails. |
Returns: | Returns a consistent format dict of sensor data grouped by
sensor type, which can be processed by Ceilometer.
eg,{
'Sensor Type 1': {
'Sensor ID 1': {
'Sensor Reading': 'current value',
'key1': 'value1',
'key2': 'value2'
},
'Sensor ID 2': {
'Sensor Reading': 'current value',
'key1': 'value1',
'key2': 'value2'
}
},
'Sensor Type 2': {
'Sensor ID 3': {
'Sensor Reading': 'current value',
'key1': 'value1',
'key2': 'value2'
},
'Sensor ID 4': {
'Sensor Reading': 'current value',
'key1': 'value1',
'key2': 'value2'
}
}
}
|
CIMCManagement.
get_supported_boot_devices
(task)[source]¶Get a list of the supported boot devices.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | A list with the supported boot devices defined
in ironic.common.boot_devices . |
CIMCManagement.
set_boot_device
(task, device, persistent=True)[source]¶Set the boot device for a node.
Set the boot device to use on next reboot of the node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if an invalid boot device is specified. |
Raises: | MissingParameterValue if a required parameter is missing |
Raises: | CIMCException if there is an error from CIMC |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.