yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64784
[Bug 1687896] Re: neutron-rpc-server fails to start on configuration that works under neutron-server
Reviewed: https://review.openstack.org/470831
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0ef8e2c16817830144acec07c4ea0164597df47c
Submitter: Jenkins
Branch: master
commit 0ef8e2c16817830144acec07c4ea0164597df47c
Author: Sean McCully <sean_mccully@xxxxxxxxx>
Date: Sun Jun 4 23:53:26 2017 -0400
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
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1687896
Title:
neutron-rpc-server fails to start on configuration that works under
neutron-server
Status in neutron:
Fix Released
Bug description:
I'm running neutron-api under uwsgi, but noticed it's not doing any rpc stuff,
so I figure that's what "neutron-rpc-server" is for. But it fails to start on
configuration that works under the normal "neutron-server".
Traceback (most recent call last):
File "/usr/local/bin/neutron-rpc-server", line 10, in <module>
sys.exit(main_rpc_eventlet())
File "/opt/stack/neutron/neutron/cmd/eventlet/server/__init__.py", line 23, in main_rpc_eventlet
server.boot_server(rpc_eventlet.eventlet_rpc_server)
File "/opt/stack/neutron/neutron/server/__init__.py", line 42, in boot_server
server_func()
File "/opt/stack/neutron/neutron/server/rpc_eventlet.py", line 33, in eventlet_rpc_server
rpc_workers_launcher = service.start_rpc_workers()
File "/opt/stack/neutron/neutron/service.py", line 269, in start_rpc_workers
rpc_workers = _get_rpc_workers()
File "/opt/stack/neutron/neutron/service.py", line 163, in _get_rpc_workers
if not plugin.rpc_workers_supported():
AttributeError: 'NoneType' object has no attribute 'rpc_workers_supported'
In neutron/neutron/service.py:
from neutron_lib.plugins import directory
def _get_rpc_workers():
plugin = directory.get_plugin()
service_plugins = directory.get_plugins().values()
I'm not sure what directory.get_plugin() does or how it works, but it doesn't
return anything of use apparently.
You should be able to reproduce quite easily by running
neutron-server --config-file neutron.conf
neutron-rpc-server --config-file neutron.conf
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1687896/+subscriptions
References