Module ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore TupleLoad Num Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore IfExp NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore IfExp NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num If BoolOpAnd NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Str AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Dict Str Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad TryExcept body Return Call Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str orelse Raise decorator_list decorator_list
N/A oslo_config cfg oslo_log log logging oslo_utils importutils nova exception nova.i18n _ N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A cfg CONF N/A ironic None N/A IRONIC_API_VERSION N/A 1 8 IronicClientWrapper N/A object N/A N/A Ironic client wrapper class that encapsulates authentication logic. __init__ N/A N/A self N/A N/A N/A Initialise the IronicClientWrapper for use.

        Initialise IronicClientWrapper by loading ironicclient
        dynamically so that ironicclient is not a dependency for
        Nova.
         N/A ironic N/A N/A ironic None N/A N/A ironic N/A N/A importutils import_module ironicclient N/A N/A N/A hasattr ironic exc N/A N/A N/A ironic exc N/A N/A importutils import_module ironicclient.exc N/A N/A N/A hasattr ironic client N/A N/A N/A ironic client N/A N/A importutils import_module ironicclient.client N/A N/A self _cached_client None N/A _invalidate_cached_client N/A N/A self N/A N/A N/A Tell the wrapper to invalidate the cached ironic-client. N/A N/A self _cached_client None N/A _get_client N/A N/A self retry_on_conflict N/A True N/A N/A max_retries N/A retry_on_conflict N/A N/A CONF ironic api_max_retries 1 N/A retry_interval N/A retry_on_conflict N/A N/A CONF ironic api_retry_interval 0 N/A N/A retry_on_conflict N/A N/A self _cached_client None N/A N/A N/A self _cached_client N/A auth_token N/A N/A CONF ironic admin_auth_token N/A N/A auth_token None N/A N/A kwargs N/A os_username os_password os_auth_url os_tenant_name os_service_type os_endpoint_type ironic_url N/A N/A CONF ironic admin_username N/A N/A CONF ironic admin_password N/A N/A CONF ironic admin_url N/A N/A CONF ironic admin_tenant_name baremetal public N/A N/A CONF ironic api_endpoint N/A N/A kwargs N/A os_auth_token ironic_url auth_token N/A N/A CONF ironic api_endpoint N/A N/A N/A CONF ironic cafile N/A N/A N/A kwargs N/A os_cacert N/A N/A CONF ironic cafile N/A N/A kwargs N/A ca_file N/A N/A CONF ironic cafile N/A N/A kwargs N/A max_retries max_retries N/A N/A kwargs N/A retry_interval retry_interval N/A N/A kwargs N/A os_ironic_api_version N/A %d.%d IRONIC_API_VERSION N/A N/A N/A cli N/A N/A N/A ironic client get_client N/A IRONIC_API_VERSION N/A 0 kwargs N/A retry_on_conflict N/A N/A N/A self _cached_client cli N/A N/A N/A N/A N/A ironic exc Unauthorized N/A N/A msg N/A _ Unable to authenticate Ironic client. N/A N/A N/A LOG error msg N/A N/A N/A exception NovaException msg N/A cli N/A _multi_getattr N/A N/A self obj attr N/A N/A N/A Support nested attribute path for getattr().

        :param obj: Root object.
        :param attr: Path of final attribute to get. E.g., "a.b.c.d"

        :returns: The value of the final named attribute.
        :raises: AttributeError will be raised if the path is invalid.
         N/A attribute N/A N/A attr split . N/A N/A obj N/A getattr obj attribute N/A obj N/A call N/A N/A self method N/A args kwargs N/A N/A Call an Ironic client method and retry on stale token.

        :param method: Name of the client method to call as a string.
        :param args: Client method arguments.
        :param kwargs: Client method keyword arguments.
        :param retry_on_conflict: Boolean value. Whether the request should be
                                  retried in case of a conflict error
                                  (HTTP 409) or not. If retry_on_conflict is
                                  False the cached instance of the client
                                  won't be used. Defaults to True.
         N/A retry_on_conflict N/A N/A kwargs pop retry_on_conflict True N/A attempt N/A range 2 N/A N/A client N/A N/A self _get_client retry_on_conflict retry_on_conflict N/A N/A N/A N/A N/A N/A self _multi_getattr client method args kwargs N/A N/A N/A N/A N/A ironic exc Unauthorized N/A N/A N/A attempt N/A N/A N/A N/A self _invalidate_cached_client N/A N/A N/A LOG debug The Ironic client became unauthorized. Will attempt to reauthorize and try again. N/A N/A N/A N/A