sapcc / asr1k-neutron-l3

Cisco ASR 1000 Neutron L3 driver
Apache License 2.0
4 stars 1 forks source link

start_rpc_listeners should be called by service worker, not on initialization #64

Closed notandy closed 3 years ago

notandy commented 3 years ago

start_rpc_listeners is usally called by a neutron.service.RpcWorker which is collected by the neutron.service Manager. ML2 Plugins can provide their start_rpc_listener callback by returning it via the ml2 mechanism get_workers() callback.

Why?

  1. it's the neutron/openstack way to register the RPC consumer workers.
  2. this way it honors the wsgi script that doesn't want the RPC consumers to spawn, they should soley be handeled by the rpc-server.