Module ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Global identifier If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return Call NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword NameLoad Raise Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad attr Str decorator_list decorator_list
N/A keystoneclient session keystone oslo_config cfg oslo_log log logging sahara exceptions ex sahara.i18n _ sahara.i18n _LE N/A CONF N/A cfg CONF N/A LOG N/A N/A logging getLogger __name__ N/A _SESSION_CACHE None N/A SESSION_TYPE_CINDER cinder N/A SESSION_TYPE_KEYSTONE keystone N/A SESSION_TYPE_NEUTRON neutron N/A SESSION_TYPE_NOVA nova N/A SESSION_TYPE_INSECURE insecure cache N/A N/A N/A N/A N/A _SESSION_CACHE N/A N/A _SESSION_CACHE N/A N/A _SESSION_CACHE N/A SessionCache N/A _SESSION_CACHE N/A SessionCache N/A object N/A N/A A cache of keystone Session objects

    When a requested Session is not currently cached, it will be
    acquired from specific information in this module. Sessions should
    be referenced by their OpenStack project name and not the service
    name, this is to allow for multiple service implementations
    while retaining the ability to generate Session objects. In all
    cases, the constant values in this module should be used to
    communicate the session type.

     __init__ N/A N/A self N/A N/A N/A create a new SessionCache N/A N/A self _sessions N/A N/A N/A self _session_funcs N/A SESSION_TYPE_CINDER SESSION_TYPE_KEYSTONE SESSION_TYPE_NEUTRON SESSION_TYPE_NOVA SESSION_TYPE_INSECURE N/A self get_cinder_session N/A self get_keystone_session N/A self get_neutron_session N/A self get_nova_session N/A self get_insecure_session N/A _set_session N/A N/A self session_type session N/A N/A N/A Set the session for a given type.

        :param session_type: the type of session to set.

        :param session: the session to associate with the type
         N/A N/A N/A self _sessions N/A session_type session N/A get_session N/A N/A self session_type N/A SESSION_TYPE_INSECURE N/A N/A Return a Session for the requested type

        :param session_type: the type of Session to get, if None an insecure
        session will be returned.

        :raises SaharaException: if the requested session type is not
        found.
         N/A session_function N/A N/A N/A self _session_funcs get session_type N/A session_function N/A N/A N/A session_function N/A N/A N/A N/A LOG error N/A N/A N/A _LE Requesting an unknown session type (type: {type}) format type session_type N/A N/A N/A ex SaharaException N/A N/A N/A _ Session type {type} not recognized format type session_type N/A get_insecure_session N/A N/A self N/A N/A N/A session N/A N/A N/A self _sessions get SESSION_TYPE_INSECURE N/A N/A session N/A N/A session N/A N/A keystone Session verify False N/A N/A N/A self _set_session SESSION_TYPE_INSECURE session N/A session N/A get_cinder_session N/A N/A self N/A N/A N/A session N/A N/A N/A self _sessions get SESSION_TYPE_CINDER N/A N/A session N/A N/A N/A N/A N/A N/A CONF cinder api_insecure N/A N/A CONF cinder ca_file N/A N/A session N/A N/A keystone Session cert N/A N/A CONF cinder ca_file verify True N/A N/A session N/A N/A self get_insecure_session N/A N/A N/A self _set_session SESSION_TYPE_CINDER session N/A session N/A get_keystone_session N/A N/A self N/A N/A N/A session N/A N/A N/A self _sessions get SESSION_TYPE_KEYSTONE N/A N/A session N/A N/A N/A N/A N/A N/A CONF keystone api_insecure N/A N/A CONF keystone ca_file N/A N/A session N/A N/A keystone Session cert N/A N/A CONF keystone ca_file verify True N/A N/A session N/A N/A self get_insecure_session N/A N/A N/A self _set_session SESSION_TYPE_KEYSTONE session N/A session N/A get_neutron_session N/A N/A self N/A N/A N/A session N/A N/A N/A self _sessions get SESSION_TYPE_NEUTRON N/A N/A session N/A N/A N/A N/A N/A N/A CONF neutron api_insecure N/A N/A CONF neutron ca_file N/A N/A session N/A N/A keystone Session cert N/A N/A CONF neutron ca_file verify True N/A N/A session N/A N/A self get_insecure_session N/A N/A N/A self _set_session SESSION_TYPE_NEUTRON session N/A session N/A get_nova_session N/A N/A self N/A N/A N/A session N/A N/A N/A self _sessions get SESSION_TYPE_NOVA N/A N/A session N/A N/A N/A N/A N/A N/A CONF nova api_insecure N/A N/A CONF nova ca_file N/A N/A session N/A N/A keystone Session cert N/A N/A CONF nova ca_file verify True N/A N/A session N/A N/A self get_insecure_session N/A N/A N/A self _set_session SESSION_TYPE_NOVA session N/A session N/A token_for_auth N/A N/A self auth N/A N/A N/A N/A N/A N/A N/A N/A N/A self get_keystone_session get_auth_headers auth get X-Auth-Token N/A N/A