3aca3f7745
Now that all preparations are done, actually port the code to use oslo.messaging. This patch does as little as possible. Follow up patches that refactor and cleanup the code and configuration files, will be merged later. The reason for this is to make the patch as slim as possible, to make review process more smooth and concentrated. Details: * neutron/common/rpc.py: - added init() and cleanup() to set global RPC layer state. - added utility functions: get_server(), get_client(), get_notifier() that wrap up oslo.messaging API a bit, enforcing eventlet executor and setting serializer, among other things. - removed PluginRpcDispatcher, instead introduced PluginRpcSerializer to use as a default serializer for API callbacks. * neutron/common/rpc_compat.py: - emulated incubator RPC layer behaviour thru previously introduced stub classes (RpcCallback, RpcProxy, ...) using new oslo.messaging API. - switched to using new oslo.messaging exception types. * neutron/service.py: - expect multiple RPC listeners that are of MessageHandlingServer type, not GreenThread. * neutron/common/config.py: - initialize RPC layer in init() * setup.cfg: - added entry points for old notifier drivers to retain backward compatibility. * neutron/tests/...: - introduced fake_notifier to replace impl_fake. - faked out consume_in_thread() to avoid starting RPC listeners when running unit tests. - used 'fake' transport driver. - made sure neutron.test.* exceptions are caught. - initialize and clean up RPC layer for each test case. * Ported all affected code from using neutron.openstack.common.notifier API to oslo.messaging.Notifier. * rpc.set_defaults() was renamed to rpc.set_transport_defaults() * other changes not worth mentioning here. blueprint oslo-messaging DocImpact Change-Id: I5a91c34df6e300f2dc46217b1b16352fcc3039fc
30 lines
444 B
Plaintext
30 lines
444 B
Plaintext
pbr>=0.6,!=0.7,<1.0
|
|
|
|
Paste
|
|
PasteDeploy>=1.5.0
|
|
Routes>=1.12.3
|
|
anyjson>=0.3.3
|
|
argparse
|
|
Babel>=1.3
|
|
eventlet>=0.13.0
|
|
greenlet>=0.3.2
|
|
httplib2>=0.7.5
|
|
requests>=1.1
|
|
iso8601>=0.1.9
|
|
jsonrpclib
|
|
Jinja2
|
|
kombu>=2.4.8
|
|
netaddr>=0.7.6
|
|
python-neutronclient>=2.3.4,<3
|
|
SQLAlchemy>=0.7.8,<=0.9.99
|
|
WebOb>=1.2.3
|
|
python-keystoneclient>=0.9.0
|
|
alembic>=0.4.1
|
|
six>=1.7.0
|
|
stevedore>=0.14
|
|
oslo.config>=1.2.1
|
|
oslo.messaging>=1.3.0
|
|
oslo.rootwrap
|
|
|
|
python-novaclient>=2.17.0
|