neutron-rpc-server fails with no plugins loaded

Neutron RPC Server fails with exception
"object has no attribute 'rpc_workers_supported'".

Change-Id: I0997789bb61635ed36e4b95f03fc7d396511e19f
Closes-Bug: #1687896
(cherry picked from commit 0ef8e2c168)
This commit is contained in:
Sean McCully 2017-06-04 23:53:26 -04:00 committed by Kevin Benton
parent 633b452e28
commit 0f91f7d3dc
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@
from oslo_log import log
from neutron._i18n import _LI
from neutron import manager
from neutron import service
LOG = log.getLogger(__name__)
@ -30,7 +31,9 @@ def eventlet_rpc_server():
LOG.info(_LI("Eventlet based AMQP RPC server starting..."))
try:
rpc_workers_launcher = service.start_rpc_workers()
manager.init()
workers = service._get_rpc_workers() + service._get_plugins_workers()
rpc_workers_launcher = service._start_workers(workers)
except NotImplementedError:
LOG.info(_LI("RPC was already started in parent process by "
"plugin."))