The ironic.common.context Module

class ironic.common.context.RequestContext(is_public_api=False, **kwargs)[source]

Bases: oslo_context.context.RequestContext

Extends security contexts from the oslo.context library.

ensure_thread_contain_context()[source]

Ensure threading contains context

For async/periodic tasks, the context of local thread is missing. Set it with request context and this is useful to log the request_id in log messages.

classmethod from_dict(values, **kwargs)[source]
to_policy_values()[source]