Module Import alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Return CompareIs Call AttributeLoad NameLoad attr Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr Num body Return NameLoad If CompareIs Call AttributeLoad NameLoad attr Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad If UnaryOpNot NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad keyword IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Dict Str Str AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A logging oslo_utils encodeutils oslo_utils timeutils N/A requests N/A six N/A tooz tooz coordination tooz locking tooz utils N/A LOG N/A N/A logging getLogger __name__ _translate_failures N/A N/A func N/A N/A N/A Translates common requests exceptions into tooz exceptions. wrapper N/A N/A N/A args kwargs N/A N/A N/A N/A N/A func args kwargs N/A N/A N/A ValueError N/A e N/A N/A N/A N/A coordination raise_with_cause N/A coordination ToozError N/A N/A encodeutils exception_to_unicode e cause e N/A N/A N/A N/A requests exceptions RequestException N/A e N/A N/A N/A N/A coordination raise_with_cause N/A coordination ToozConnectionError N/A N/A encodeutils exception_to_unicode e cause e N/A N/A N/A six wraps func N/A wrapper N/A _Client N/A object N/A __init__ N/A N/A self host port protocol N/A N/A N/A N/A self host host N/A N/A self port port N/A N/A self protocol protocol N/A N/A self session N/A N/A requests Session N/A base_url N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self protocol :// N/A self host : N/A str N/A self port N/A property get_url N/A N/A self path N/A N/A N/A N/A N/A N/A self base_url /v2/ N/A N/A path lstrip / N/A get N/A N/A self url N/A kwargs N/A N/A N/A N/A kwargs pop make_url True N/A N/A url N/A N/A self get_url url N/A N/A N/A N/A N/A N/A self session get url kwargs json N/A put N/A N/A self url N/A kwargs N/A N/A N/A N/A kwargs pop make_url True N/A N/A url N/A N/A self get_url url N/A N/A N/A N/A N/A N/A self session put url kwargs json N/A delete N/A N/A self url N/A kwargs N/A N/A N/A N/A kwargs pop make_url True N/A N/A url N/A N/A self get_url url N/A N/A N/A N/A N/A N/A self session delete url kwargs json N/A self_stats N/A N/A self N/A N/A N/A N/A N/A N/A self session get N/A N/A self get_url /stats/self N/A N/A EtcdLock N/A N/A locking Lock N/A N/A _TOOZ_LOCK_PREFIX tooz_locks __init__ N/A N/A self lock_url name coord client ttl N/A 60 N/A N/A N/A N/A N/A super EtcdLock self __init__ name N/A N/A self client client N/A N/A self coord coord N/A N/A self lock None N/A N/A self ttl ttl N/A N/A self _lock_url lock_url N/A N/A self _node None N/A break_ N/A N/A self N/A N/A N/A reply N/A N/A N/A self client delete N/A self _lock_url make_url False N/A N/A N/A N/A reply get errorCode None N/A _translate_failures acquire N/A N/A self blocking N/A True N/A N/A N/A blocking timeout N/A N/A utils convert_blocking blocking N/A N/A timeout None N/A N/A watch N/A N/A timeutils StopWatch duration timeout N/A N/A N/A watch start N/A N/A watch None N/A True N/A N/A N/A N/A reply N/A N/A N/A self client put N/A self _lock_url make_url False timeout N/A watch N/A N/A watch leftover None data N/A ttl prevExist N/A self ttl false N/A N/A N/A N/A N/A requests exceptions RequestException N/A N/A N/A watch N/A N/A N/A watch leftover 0 N/A N/A False N/A N/A N/A N/A reply get errorCode None N/A N/A N/A self _node N/A reply N/A node N/A N/A N/A N/A N/A self coord _acquired_locks append self N/A True N/A N/A blocking N/A N/A False N/A N/A N/A reply N/A N/A N/A self client get N/A N/A self _lock_url N/A ?wait=true&waitIndex=%d N/A reply N/A index make_url False timeout N/A watch N/A N/A watch leftover None N/A N/A N/A N/A N/A requests exceptions RequestException N/A N/A N/A watch N/A N/A watch expired N/A N/A False N/A release N/A N/A self N/A N/A N/A N/A self N/A N/A self coord _acquired_locks N/A N/A lock_url N/A self _lock_url N/A lock_url N/A ?prevIndex=%s N/A N/A self _node N/A modifiedIndex N/A reply N/A N/A N/A self client delete lock_url make_url False N/A errorcode N/A N/A reply get errorCode N/A N/A errorcode None N/A N/A N/A N/A N/A N/A self coord _acquired_locks remove self N/A N/A self _node None N/A True N/A N/A N/A N/A LOG warn Unable to release '%s' due to %d, %s N/A self name errorcode N/A N/A reply get message N/A False N/A _translate_failures heartbeat N/A N/A self N/A N/A N/A Keep the lock alive. N/A poked N/A N/A N/A self client put N/A self _lock_url data N/A ttl prevExist N/A self ttl true make_url False N/A errorcode N/A N/A poked get errorCode N/A errorcode N/A N/A N/A N/A LOG warn Unable to heartbeat by updating key '%s' with extended expiry of %s seconds: %d, %s N/A self name N/A self ttl errorcode N/A N/A poked get message N/A _translate_failures N/A EtcdDriver N/A N/A coordination CoordinationDriver N/A N/A An etcd based driver.

    This driver uses etcd provide the coordination driver semantics and
    required API(s).
     N/A DEFAULT_TIMEOUT 30 N/A DEFAULT_HOST localhost N/A DEFAULT_PORT 2379 N/A lock_encoder_cls N/A utils Base64LockEncoder __init__ N/A N/A self member_id parsed_url options N/A N/A N/A N/A N/A N/A super EtcdDriver self __init__ N/A host N/A N/A parsed_url hostname N/A self DEFAULT_HOST N/A port N/A N/A parsed_url port N/A self DEFAULT_PORT N/A options N/A N/A utils collapse options N/A N/A self client N/A _Client host host port port protocol N/A N/A options get protocol http N/A default_timeout N/A N/A options get timeout N/A self DEFAULT_TIMEOUT N/A N/A self lock_encoder N/A N/A self lock_encoder_cls N/A N/A N/A self client get_url keys N/A N/A self lock_timeout N/A int N/A N/A options get lock_timeout default_timeout N/A N/A self _acquired_locks N/A N/A _start N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client self_stats N/A N/A N/A N/A N/A requests exceptions ConnectionError N/A e N/A N/A N/A N/A coordination ToozConnectionError N/A N/A encodeutils exception_to_unicode e N/A get_lock N/A N/A self name N/A N/A N/A N/A EtcdLock N/A N/A N/A self lock_encoder check_and_encode name name self N/A self client N/A self lock_timeout N/A heartbeat N/A N/A self N/A N/A N/A lock N/A self _acquired_locks N/A N/A N/A N/A lock heartbeat N/A watch_join_group N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod unwatch_join_group N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod watch_leave_group N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod unwatch_leave_group N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod watch_elected_as_leader N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod unwatch_elected_as_leader N/A N/A group_id callback N/A N/A N/A N/A tooz NotImplemented N/A staticmethod N/A