Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword Num keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Num keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Num keyword Call NameLoad Str Call AttributeLoad NameLoad attr Str keyword Num keyword Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call Call NameLoad NameLoad Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call Call NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If CompareLt Num AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Raise Call NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad handlers ExceptHandler type NameLoad body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list
N/A N/A inspect N/A os N/A random oslo_concurrency processutils oslo_config cfg oslo_log log logging oslo_messaging server rpc_server oslo_service loopingcall oslo_service service common_service oslo_utils excutils oslo_utils importutils neutron._i18n _ _LE _LI neutron.common config neutron.common rpc n_rpc neutron context neutron.db api session neutron manager neutron worker neutron wsgi N/A service_opts N/A N/A N/A cfg IntOpt periodic_interval default 40 help N/A _ Seconds between running periodic tasks N/A N/A cfg IntOpt api_workers help N/A _ Number of separate API worker processes for service. If not specified, the default is equal to the number of CPUs available for best performance. N/A N/A cfg IntOpt rpc_workers default 1 help N/A _ Number of RPC worker processes for service N/A N/A cfg IntOpt rpc_state_report_workers default 1 help N/A _ Number of RPC worker processes dedicated to state reports queue N/A N/A cfg IntOpt periodic_fuzzy_delay default 5 help N/A _ Range of seconds to randomly delay when starting the periodic task scheduler to reduce stampeding. (Disable by setting to 0) N/A CONF N/A cfg CONF N/A N/A N/A CONF register_opts service_opts N/A LOG N/A N/A logging getLogger __name__ WsgiService N/A object N/A N/A Base class for WSGI based services.

    For each api you define, you must also define these flags:
    :<api>_listen: The address on which to listen
    :<api>_listen_port: The port on which to listen

     __init__ N/A N/A self app_name N/A N/A N/A N/A self app_name app_name N/A N/A self wsgi_app None N/A start N/A N/A self N/A N/A N/A N/A self wsgi_app N/A _run_wsgi N/A self app_name N/A wait N/A N/A self N/A N/A N/A N/A N/A N/A self wsgi_app wait N/A N/A NeutronApiService N/A WsgiService N/A N/A Class for neutron-api service. create N/A N/A cls app_name N/A neutron N/A N/A N/A N/A config setup_logging N/A service N/A cls app_name N/A service N/A classmethod N/A serve_wsgi N/A N/A cls N/A N/A N/A N/A N/A service N/A N/A cls create N/A N/A N/A service start N/A N/A N/A Exception N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG exception N/A _LE Unrecoverable error: please check log for details. N/A service N/A start_plugin_workers N/A N/A N/A N/A N/A launchers N/A N/A plugin N/A N/A N/A manager NeutronManager get_unique_service_plugins N/A N/A plugin_worker N/A N/A getattr plugin get_workers tuple N/A N/A launcher N/A N/A common_service ProcessLauncher N/A cfg CONF N/A N/A N/A launcher launch_service plugin_worker N/A N/A N/A launchers append launcher N/A launchers N/A RpcWorker N/A N/A worker NeutronWorker N/A N/A Wraps a worker to be handled by ProcessLauncher N/A start_listeners_method start_rpc_listeners __init__ N/A N/A self plugins N/A N/A N/A N/A self _plugins plugins N/A N/A self _servers N/A N/A start N/A N/A self N/A N/A N/A N/A N/A N/A super RpcWorker self start N/A plugin N/A self _plugins N/A N/A N/A hasattr plugin N/A self start_listeners_method N/A N/A N/A N/A servers N/A N/A getattr plugin N/A self start_listeners_method N/A N/A N/A NotImplementedError N/A N/A N/A N/A N/A N/A self _servers extend servers N/A wait N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _wait N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE done with wait N/A N/A _wait N/A N/A self N/A N/A N/A N/A N/A LOG debug calling RpcWorker wait() N/A server N/A self _servers N/A N/A N/A isinstance server N/A rpc_server MessageHandlingServer N/A N/A N/A N/A LOG debug calling wait on %s server N/A N/A N/A server wait N/A N/A N/A N/A LOG debug NOT calling wait on %s server N/A N/A N/A LOG debug returning from RpcWorker wait() N/A stop N/A N/A self N/A N/A N/A N/A N/A LOG debug calling RpcWorker stop() N/A server N/A self _servers N/A N/A N/A isinstance server N/A rpc_server MessageHandlingServer N/A N/A N/A N/A LOG debug calling stop on %s server N/A N/A N/A server stop N/A reset N/A N/A N/A N/A N/A N/A N/A config reset_service N/A staticmethod N/A RpcReportsWorker N/A RpcWorker N/A N/A start_listeners_method start_rpc_state_reports_listener N/A serve_rpc N/A N/A N/A N/A N/A plugin N/A N/A N/A manager NeutronManager get_plugin N/A service_plugins N/A N/A N/A N/A N/A manager NeutronManager get_service_plugins values N/A N/A N/A N/A cfg CONF rpc_workers 1 N/A N/A N/A N/A N/A cfg CONF set_override rpc_workers 1 N/A N/A N/A N/A plugin rpc_workers_supported N/A N/A N/A N/A LOG debug Active plugin doesn't implement start_rpc_listeners N/A N/A 0 N/A N/A cfg CONF rpc_workers N/A N/A N/A N/A LOG error N/A _LE 'rpc_workers = %d' ignored because start_rpc_listeners is not implemented. N/A N/A cfg CONF rpc_workers N/A N/A NotImplementedError N/A N/A N/A rpc N/A RpcWorker service_plugins N/A N/A N/A LOG debug using launcher for rpc, workers=%s N/A N/A cfg CONF rpc_workers N/A N/A N/A session dispose N/A launcher N/A N/A common_service ProcessLauncher N/A cfg CONF wait_interval 1.0 N/A N/A N/A launcher launch_service rpc workers N/A N/A cfg CONF rpc_workers N/A N/A N/A N/A N/A cfg CONF rpc_state_report_workers 0 N/A N/A plugin rpc_state_report_workers_supported N/A N/A rpc_state_rep N/A RpcReportsWorker N/A plugin N/A N/A N/A LOG debug using launcher for state reports rpc, workers=%s N/A N/A cfg CONF rpc_state_report_workers N/A N/A N/A launcher launch_service rpc_state_rep workers N/A N/A cfg CONF rpc_state_report_workers N/A launcher N/A N/A N/A Exception N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG exception N/A _LE Unrecoverable error: please check log for details. N/A _get_api_workers N/A N/A N/A N/A N/A workers N/A N/A cfg CONF api_workers N/A N/A workers N/A N/A workers N/A N/A processutils get_worker_count N/A workers N/A _run_wsgi N/A N/A app_name N/A N/A N/A app N/A N/A config load_paste_app app_name N/A N/A app N/A N/A N/A N/A LOG error N/A _LE No known API applications configured. N/A N/A N/A run_wsgi_app app N/A run_wsgi_app N/A N/A app N/A N/A N/A server N/A N/A wsgi Server Neutron N/A N/A N/A server start app N/A N/A cfg CONF bind_port N/A N/A cfg CONF bind_host workers N/A _get_api_workers N/A N/A N/A LOG info N/A _LI Neutron service started, listening on %(host)s:%(port)s N/A host port N/A N/A cfg CONF bind_host N/A N/A cfg CONF bind_port N/A server N/A Service N/A N/A n_rpc Service N/A N/A Service object for binaries running on hosts.

    A service takes a manager and enables rpc by listening to queues based
    on topic. It also periodically runs tasks on the manager.
     __init__ N/A N/A self host binary topic manager report_interval periodic_interval periodic_fuzzy_delay N/A None None None args kwargs N/A N/A N/A self binary binary N/A N/A self manager_class_name manager N/A manager_class N/A N/A importutils import_class N/A self manager_class_name N/A N/A self manager N/A manager_class host host args kwargs N/A N/A self report_interval report_interval N/A N/A self periodic_interval periodic_interval N/A N/A self periodic_fuzzy_delay periodic_fuzzy_delay N/A N/A N/A self saved_args N/A self saved_kwargs N/A args kwargs N/A N/A self timers N/A N/A N/A N/A N/A super Service self __init__ host topic manager N/A self manager N/A start N/A N/A self N/A N/A N/A N/A N/A N/A self manager init_host N/A N/A N/A N/A super Service self start N/A N/A self report_interval N/A N/A pulse N/A N/A loopingcall FixedIntervalLoopingCall N/A self report_state N/A N/A N/A pulse start interval N/A self report_interval initial_delay N/A self report_interval N/A N/A N/A N/A self timers append pulse N/A N/A self periodic_interval N/A N/A N/A self periodic_fuzzy_delay N/A N/A initial_delay N/A N/A random randint 0 N/A self periodic_fuzzy_delay N/A N/A initial_delay None N/A periodic N/A N/A loopingcall FixedIntervalLoopingCall N/A self periodic_tasks N/A N/A N/A periodic start interval N/A self periodic_interval initial_delay initial_delay N/A N/A N/A N/A self timers append periodic N/A N/A N/A N/A self manager after_start N/A __getattr__ N/A N/A self key N/A N/A N/A manager N/A N/A N/A self __dict__ get manager None N/A N/A getattr manager key N/A create N/A N/A cls host binary topic manager report_interval periodic_interval periodic_fuzzy_delay N/A None None None None None None None N/A N/A Instantiates class and passes back application object.

        :param host: defaults to CONF.host
        :param binary: defaults to basename of executable
        :param topic: defaults to bin_name - 'neutron-' part
        :param manager: defaults to CONF.<topic>_manager
        :param report_interval: defaults to CONF.report_interval
        :param periodic_interval: defaults to CONF.periodic_interval
        :param periodic_fuzzy_delay: defaults to CONF.periodic_fuzzy_delay

         N/A N/A host N/A N/A host N/A CONF host N/A N/A binary N/A N/A binary N/A N/A N/A os path basename N/A N/A N/A N/A inspect stack N/A -1 N/A 1 N/A N/A topic N/A N/A topic N/A N/A N/A binary rpartition neutron- N/A 2 N/A topic N/A N/A topic replace - _ N/A N/A manager N/A N/A manager N/A N/A CONF get N/A %s_manager topic None N/A N/A report_interval None N/A N/A report_interval N/A CONF report_interval N/A N/A periodic_interval None N/A N/A periodic_interval N/A CONF periodic_interval N/A N/A periodic_fuzzy_delay None N/A N/A periodic_fuzzy_delay N/A CONF periodic_fuzzy_delay N/A service_obj N/A cls host binary topic manager report_interval report_interval periodic_interval periodic_interval periodic_fuzzy_delay periodic_fuzzy_delay N/A service_obj N/A classmethod kill N/A N/A self N/A N/A N/A Destroy the service object. N/A N/A N/A self stop N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A super Service self stop N/A x N/A self timers N/A N/A N/A N/A N/A N/A x stop N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Exception occurs when timer stops N/A N/A self timers N/A N/A wait N/A N/A self N/A N/A N/A N/A N/A N/A super Service self wait N/A x N/A self timers N/A N/A N/A N/A N/A N/A x wait N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Exception occurs when waiting for timer N/A reset N/A N/A self N/A N/A N/A N/A N/A config reset_service N/A periodic_tasks N/A N/A self raise_on_error N/A False N/A N/A Tasks to be run at a periodic interval. N/A ctxt N/A N/A context get_admin_context N/A N/A N/A N/A self manager periodic_tasks ctxt raise_on_error raise_on_error N/A report_state N/A N/A self N/A N/A N/A Update the state of this service. N/A N/A N/A