vmware-nsx/neutron
Ihar Hrachyshka 3aca3f7745 Port to oslo.messaging
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
2014-06-19 12:58:01 +02:00
..
agent Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
api Port to oslo.messaging 2014-06-19 12:58:01 +02:00
cmd Port to oslo.messaging 2014-06-19 12:58:01 +02:00
common Port to oslo.messaging 2014-06-19 12:58:01 +02:00
db Port to oslo.messaging 2014-06-19 12:58:01 +02:00
debug Fix H302 violations 2014-05-04 12:40:08 +02:00
extensions Merge "multiprovidernet: fix a comment" 2014-06-11 06:43:59 +00:00
hacking Add missing translation support 2014-05-19 12:16:56 +02:00
locale Imported Translations from Transifex 2014-06-18 06:09:04 +00:00
notifiers Merge "Use list copy for events in nova notifier" 2014-06-12 13:30:08 +00:00
openstack Port to oslo.messaging 2014-06-19 12:58:01 +02:00
plugins Port to oslo.messaging 2014-06-19 12:58:01 +02:00
scheduler Merge "Enable flake8 E711 and E712 checking" 2014-04-23 01:01:16 +00:00
server Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
services Port to oslo.messaging 2014-06-19 12:58:01 +02:00
tests Port to oslo.messaging 2014-06-19 12:58:01 +02:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
auth.py Return request-id in API response 2014-02-10 04:58:38 +09:00
context.py Fix H302 violations 2014-05-04 12:40:08 +02:00
hooks.py Remove pyudev dependency 2014-02-25 14:28:35 +00:00
manager.py Introduce RpcCallback class 2014-06-16 12:44:22 +02:00
neutron_plugin_base_v2.py Add support for multiple RPC workers under Metaplugin 2014-04-15 13:29:27 +09:00
policy.py Port to oslo.messaging 2014-06-19 12:58:01 +02:00
quota.py Remove last parts of Quantum compatibility shim 2014-03-31 23:31:23 -07:00
service.py Port to oslo.messaging 2014-06-19 12:58:01 +02:00
version.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
wsgi.py Notify systemd when starting Neutron server 2014-06-17 17:27:16 +02:00