]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pecan WSGI: prevent plugins from opening AMQP connections
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 24 Jul 2015 11:32:56 +0000 (04:32 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Thu, 13 Aug 2015 22:10:48 +0000 (15:10 -0700)
commit2ba2456f9dae2a4cf30804a562c08832c24b6231
treecc0ea0c01f76b23ba89e8f05ad269a6dc75c694f
parenta7b91632fc65ab9d2687298c68b1d715866d0356
Pecan WSGI: prevent plugins from opening AMQP connections

The Pecan WSGI server is supposed to server REST requests only.
As several plugins initialize their RPC interfaces upon initialization,
this results in establishing undesired connections to the AMQP server.

This patch does not alter plugin behavior or initialization process,
but ensures that the setup_rpc operation performed by a plugin has no
effect when executed in the Pecan WSGI server.

This patch also performs some refactoring for server launchers.

Change-Id: I56384f5f964ea90d72babf911aa5639989e9c3d8
neutron/cmd/eventlet/server/__init__.py
neutron/common/rpc.py
neutron/server/__init__.py
neutron/server/wsgi_eventlet.py [new file with mode: 0644]
neutron/server/wsgi_pecan.py [new file with mode: 0755]
setup.cfg