The ironic_inspector.main Module

ironic_inspector.main.add_version_headers(res)[source]
ironic_inspector.main.api(path, is_public_api=False, rule=None, verb_to_rule_map=None, **flask_kwargs)[source]

Decorator to wrap api methods.

Performs flask routing, exception conversion, generation of oslo context for request and API access policy enforcement.

Parameters
  • path – flask app route path

  • is_public_api – whether this API path should be treated as public, with minimal access enforcement

  • rule – API access policy rule to enforce. If rule is None, the ‘default’ policy rule will be enforced, which is “deny all” if not overridden in policy confif file.

  • verb_to_rule_map – if both rule and this are given, defines mapping between http verbs (uppercase) and strings to format the ‘rule’ string with

  • kwargs – all the rest kwargs are passed to flask app.route

ironic_inspector.main.api_continue()[source]
ironic_inspector.main.api_introspection(node_id)[source]
ironic_inspector.main.api_introspection_abort(node_id)[source]
ironic_inspector.main.api_introspection_data(node_id)[source]
ironic_inspector.main.api_introspection_reapply(node_id)[source]
ironic_inspector.main.api_introspection_statuses()[source]
ironic_inspector.main.api_root()[source]
ironic_inspector.main.api_rule(uuid)[source]
ironic_inspector.main.api_rules()[source]
ironic_inspector.main.check_api_version()[source]
ironic_inspector.main.convert_exceptions(func)[source]
ironic_inspector.main.error_response(exc, code=500)[source]
ironic_inspector.main.generate_introspection_status(node)[source]

Return a dict representing current node status.

Parameters

node – a NodeInfo instance

Returns

dictionary

ironic_inspector.main.generate_resource_data(resources)[source]
ironic_inspector.main.get_app()[source]

Get the flask instance.

ironic_inspector.main.get_client_compat()[source]
ironic_inspector.main.get_random_topic()[source]
ironic_inspector.main.handle_404(error)[source]
ironic_inspector.main.rule_repr(rule, short)[source]
ironic_inspector.main.start_coordinator()[source]

Create a coordinator instance for non-standalone case.

ironic_inspector.main.version_root(version)[source]