ironic.drivers.modules.redfish.utils module

ironic.drivers.modules.redfish.utils module

class ironic.drivers.modules.redfish.utils.SessionCache(driver_info)[source]

Bases: object

Cache of HTTP sessions credentials

AUTH_CLASSES = {'auto': <class 'sushy.auth.SessionOrBasicAuth'>, 'basic': <class 'sushy.auth.BasicAuth'>, 'session': <class 'sushy.auth.SessionAuth'>}
ironic.drivers.modules.redfish.utils.get_system(node)[source]

Get a Redfish System that represents a node.

Parameters

node – an Ironic node object

Raises

RedfishConnectionError when it fails to connect to Redfish

Raises

RedfishError if the System is not registered in Redfish

ironic.drivers.modules.redfish.utils.get_update_service(node)[source]

Get a node’s update service.

Parameters

node – an Ironic node object

Raises

RedfishConnectionError when it fails to connect to Redfish

Raises

RedfishError when the UpdateService is not registered in Redfish

ironic.drivers.modules.redfish.utils.parse_driver_info(node)[source]

Parse the information required for Ironic to connect to Redfish.

Parameters

node – an Ironic node object

Returns

dictionary of parameters

Raises

InvalidParameterValue on malformed parameter(s)

Raises

MissingParameterValue on missing parameter(s)

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.