No-op management interface implementation.
Bases: ironic.drivers.base.ManagementInterface
No-op management interface implementation.
Using this implementation requires the boot order to be preconfigured to first try PXE booting, then fall back to hard drives.
Get the current boot device for a node.
Provides the current boot device of the node. Be aware that not all drivers support this.
task – A task from TaskManager.
MissingParameterValue if a required parameter is missing
A dictionary containing:
Ahe boot device, one of ironic.common.boot_devices
or
None if it is unknown.
Whether the boot device will persist to all future boots or not, None if it is unknown.
Return the properties of the interface.
dictionary of <property name>:<property description> entries.
Get sensors data method.
task – A TaskManager instance.
FailedToGetSensorData when getting the sensor data fails.
FailedToParseSensorData when parsing sensor data fails.
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'
}
}
}
Get a list of the supported boot devices.
task – A task from TaskManager.
A list with the supported boot devices defined
in ironic.common.boot_devices
.
Set the boot device for a node.
Set the boot device to use on next reboot of the node.
task – A task from TaskManager.
device – The boot device, one of
ironic.common.boot_devices
.
persistent – Boolean value. True if the boot device will persist to all future boots, False if not. Default: False.
InvalidParameterValue if an invalid boot device is specified.
MissingParameterValue if a required parameter is missing
Validate the driver-specific Node deployment info.
This method validates whether the ‘driver_info’ and/or ‘instance_info’ properties of the task’s node contains the required information for this interface to function.
This method is often executed synchronously in API requests, so it should not conduct long-running checks.
task – A TaskManager instance containing the node to act on.
InvalidParameterValue on malformed parameter(s)
MissingParameterValue on missing parameter(s)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.