The ironic_inspector.common.ironic Module

exception ironic_inspector.common.ironic.NotFound(node_ident, code=404, *args, **kwargs)[source]

Bases: ironic_inspector.utils.Error

Node not found in Ironic.

ironic_inspector.common.ironic.capabilities_to_dict(caps)[source]

Convert the Node’s capabilities into a dictionary.

ironic_inspector.common.ironic.check_provision_state(node, with_credentials=False)[source]
ironic_inspector.common.ironic.dict_to_capabilities(caps_dict)[source]

Convert a dictionary into a string with the capabilities syntax.

ironic_inspector.common.ironic.get_client(token=None, api_version='1.11')[source]

Get Ironic client instance.

ironic_inspector.common.ironic.get_ipmi_address(node)[source]
ironic_inspector.common.ironic.get_node(node_id, ironic=None, **kwargs)[source]

Get a node from Ironic.

Parameters:
  • node_id – node UUID or name.
  • ironic – ironic client instance.
  • kwargs – arguments to pass to Ironic client.
Raises:

Error on failure

ironic_inspector.common.ironic.list_opts()[source]
ironic_inspector.common.ironic.reset_ironic_session()[source]

Reset the global session variable.

Mostly useful for unit tests.

Previous topic

The ironic_inspector.common.i18n Module

Next topic

The ironic_inspector.common.keystone Module

Project Source

This Page