Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad Str attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Num Assign NameStore Num Assign NameStore Num While CompareLt NameLoad NameLoad body TryExcept body TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num Assign NameStore Call AttributeLoad Str attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Return NameLoad Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num Expr Call NameLoad NameLoad Str Num Assign NameStore Num Assign NameStore Num While CompareLt NameLoad NameLoad body TryExcept body TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num Assign NameStore Call AttributeLoad Str attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Return NameLoad Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Num Assign NameStore Num Assign NameStore Num While CompareLt NameLoad NameLoad body TryExcept body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num Assign NameStore Call AttributeLoad Str attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AugAssignAdd NameStore Num If CompareEq NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Return NameLoad Expr Call NameLoad NameLoad Str Num If CompareIn NameLoad ListLoad Str Str body Expr Call NameLoad NameLoad Str Num Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Num If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Return NameLoad Expr Call NameLoad NameLoad Str Num Expr Call NameLoad NameLoad Str Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad Num Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad NameLoad Str Num If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Num While NameLoad body If Call NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Expr Call NameLoad NameLoad Str Num While NameLoad body If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad NameLoad Str Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Str Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num
N/A N/A 
Watcher module for framework and volumedriver
 N/A sys N/A time N/A uuid N/A logging ovs.extensions.storage.persistentfactory PersistentFactory ovs.log.logHandler LogHandler N/A logger N/A N/A LogHandler get extensions name watcher _log N/A N/A log_target entry level N/A N/A N/A 
    Logs an entry
     N/A N/A level 0 N/A N/A N/A N/A logger debug N/A N/A [{0}] {1} format log_target entry N/A services_running N/A N/A target N/A N/A N/A 
    Check all services are running
    :param target: Target to check
    :return: Boolean
     N/A N/A N/A key N/A N/A ovs-watcher-{0} format N/A str N/A N/A uuid uuid4 N/A value N/A str N/A N/A time time N/A N/A target framework N/A N/A N/A _log target Testing volatile store... 0 N/A max_tries 5 N/A tries 0 N/A N/A tries max_tries N/A N/A N/A N/A N/A N/A N/A N/A logging disable N/A logging WARNING ovs.extensions.storage.volatilefactory VolatileFactory N/A N/A VolatileFactory store None N/A volatile N/A N/A VolatileFactory get_client N/A N/A N/A volatile set key value N/A N/A N/A N/A volatile get key value N/A N/A N/A N/A volatile delete key N/A N/A N/A N/A volatile delete key N/A N/A N/A N/A logging disable N/A logging NOTSET N/A N/A N/A Exception N/A message N/A N/A N/A _log target N/A N/A   Error during volatile store test: {0} format message 2 N/A key N/A N/A ovs-watcher-{0} format N/A str N/A N/A uuid uuid4 N/A N/A N/A time sleep 1 N/A tries 1 N/A N/A tries max_tries N/A N/A N/A _log target   Volatile store not working correctly 2 N/A False N/A N/A _log target N/A N/A   Volatile store OK after {0} tries format tries 0 N/A N/A _log target Testing persistent store... 0 N/A max_tries 5 N/A tries 0 N/A N/A tries max_tries N/A N/A N/A N/A N/A N/A N/A N/A logging disable N/A logging WARNING N/A persistent N/A N/A PersistentFactory get_client N/A N/A N/A persistent set key value N/A N/A N/A N/A persistent get key value N/A N/A N/A N/A persistent delete key N/A N/A N/A N/A persistent delete key N/A N/A N/A N/A logging disable N/A logging NOTSET N/A N/A N/A Exception N/A message N/A N/A N/A _log target N/A N/A   Error during persistent store test: {0} format message 2 N/A key N/A N/A ovs-watcher-{0} format N/A str N/A N/A uuid uuid4 N/A N/A N/A time sleep 1 N/A tries 1 N/A N/A tries max_tries N/A N/A N/A _log target   Persistent store not working correctly 2 N/A False N/A N/A _log target N/A N/A   Persistent store OK after {0} tries format tries 0 N/A N/A target volumedriver N/A N/A N/A _log target Testing arakoon (voldrv)... 0 N/A max_tries 5 N/A tries 0 N/A N/A tries max_tries N/A N/A N/A ovs.extensions.db.etcd.configuration EtcdConfiguration ovs.extensions.storage.persistent.pyrakoonstore PyrakoonStore N/A cluster_name N/A str N/A N/A EtcdConfiguration get /ovs/framework/arakoon_clusters|voldrv N/A client N/A PyrakoonStore cluster cluster_name N/A N/A N/A client set key value N/A N/A N/A N/A client get key value N/A N/A N/A N/A client delete key N/A N/A N/A N/A client delete key N/A N/A N/A Exception N/A message N/A N/A N/A _log target N/A N/A   Error during arakoon (voldrv) test: {0} format message 2 N/A key N/A N/A ovs-watcher-{0} format N/A str N/A N/A uuid uuid4 N/A N/A N/A time sleep 1 N/A tries 1 N/A N/A tries max_tries N/A N/A N/A _log target   Arakoon (voldrv) not working correctly 2 N/A False N/A N/A _log target   Arakoon (voldrv) OK 0 N/A N/A target N/A framework volumedriver N/A N/A N/A _log target Test rabbitMQ... 0 N/A pika ovs.extensions.db.etcd.configuration EtcdConfiguration N/A rmq_servers N/A N/A EtcdConfiguration get /ovs/framework/messagequeue|endpoints N/A good_node False N/A server rmq_servers N/A N/A N/A N/A connection_string N/A N/A {0}://{1}:{2}@{3}/%2F format N/A N/A EtcdConfiguration get /ovs/framework/messagequeue|protocol N/A N/A EtcdConfiguration get /ovs/framework/messagequeue|user N/A N/A EtcdConfiguration get /ovs/framework/messagequeue|password server N/A connection N/A N/A pika BlockingConnection N/A N/A pika URLParameters connection_string N/A channel N/A N/A connection channel N/A N/A N/A channel basic_publish ovs-watcher N/A str N/A N/A time time N/A N/A pika BasicProperties content_type text/plain delivery_mode 1 N/A N/A N/A connection close N/A good_node True N/A N/A N/A Exception N/A message N/A N/A N/A _log target N/A N/A   Error during rabbitMQ test on node {0}: {1} format server message 2 N/A N/A good_node False N/A N/A N/A _log target   No working rabbitMQ node could be found 2 N/A False N/A N/A _log target   RabbitMQ test OK 0 N/A N/A _log target All tests OK 0 N/A True N/A N/A N/A Exception N/A ex N/A N/A N/A _log target N/A N/A Unexpected exception: {0} format ex 2 N/A False N/A N/A N/A __name__ __main__ N/A N/A given_target N/A N/A sys argv N/A 1 N/A mode N/A N/A sys argv N/A 2 N/A N/A _log given_target Starting service 1 N/A N/A mode wait N/A N/A N/A _log given_target Waiting for master services 1 N/A True N/A N/A N/A services_running given_target N/A N/A N/A _log given_target Master services available 1 N/A N/A N/A sys exit 0 N/A N/A N/A time sleep 5 N/A N/A mode check N/A N/A N/A _log given_target Checking master services 1 N/A True N/A N/A N/A N/A services_running given_target N/A N/A N/A _log given_target One of the master services is unavailable 1 N/A N/A N/A sys exit 1 N/A N/A N/A time sleep 5 N/A N/A _log given_target Invalid parameter 1 N/A N/A N/A time sleep 60 N/A N/A N/A sys exit 1