neutron-lib/neutron_lib
Boden R a37d43018b rehome rpc and related plumbing
As shown in the history of this patch, along with the work in [1], we've
discussed rehoming neutron.common.rpc into lib a number of times before.
One of the main reasons we've decided not to rehome in the past is that
we'd hoped the neutron.common.rcp.BackingOffClient and related plumbing
could be put into oslo.messaging. However, it's 2 years later and that
still hasn't happened [2][3].

This patch proposes we just move forward with the rehome so that we can
begin to untangle the consumers [4]. There's no reason we can't
reiterate on this code in lib; it's no more difficult than in neutron.

This patch includes rehoming of:
- neutron.common.rpc, the only difference in the lib version is that
we dynamically add all neutron_lib.exceptions by default (_DFT_EXMODS).
- neutron.common.exceptions, but exceptions are broken out into their
respective exception modules rather than lumping all together in a
generic single module.
- The fake notifier and RPC fixture, without any real changes.
- A new runtime util method to dynamically load all modules for a
package.

For a sample neutron consumption patch see [5] that was tested with
PS10 herein.

[1] https://review.openstack.org/#/q/project:openstack/neutron-lib+message:rpc
[2] https://review.openstack.org/#/c/407722/
[3] https://bugs.launchpad.net/oslo.messaging/+bug/1667445
[4] http://codesearch.openstack.org/?q=from%20neutron.common%20import%20rpc
[5] https://review.openstack.org/#/c/579989/

Change-Id: I0052ba65973a993e088943056879bc6e982bd0b5
2018-07-12 13:13:21 -06:00
..
agent Add port bindings to RPC topics resources 2018-04-27 11:03:34 -05:00
api Merge "Cleanup unused key-value in the attribute of l3" 2018-07-02 14:53:11 +00:00
callbacks Add bandit to pep8 gate 2018-06-14 11:38:33 -04:00
clients Fix list_resource_providers filters 2018-05-24 21:30:03 +02:00
db Add bandit to pep8 gate 2018-06-14 11:38:33 -04:00
exceptions rehome rpc and related plumbing 2018-07-12 13:13:21 -06:00
hacking Fix N536 - Use assertIsNone regex 2017-07-13 21:27:35 -04:00
legacy Move some common test and framework goo into neutron-lib 2016-01-29 23:45:49 -07:00
locale/zh_CN/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:47:27 +00:00
objects rehome model_query and its dependencies 2018-04-20 06:18:11 -06:00
plugins remove CORE and L3 from neutron_lib.constants 2018-06-14 07:53:46 -06:00
services rehome qos service DriverBase class 2017-06-13 09:06:33 -06:00
tests rehome rpc and related plumbing 2018-07-12 13:13:21 -06:00
utils rehome rpc and related plumbing 2018-07-12 13:13:21 -06:00
__init__.py Removes unnecessary utf-8 encoding 2016-12-28 17:08:10 +07:00
_i18n.py Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
_policy.py Revisit exported policy module 2017-01-12 11:41:53 -08:00
constants.py remove CORE and L3 from neutron_lib.constants 2018-06-14 07:53:46 -06:00
context.py Adopted to new oslo.context code to remove deprecation warnings 2018-01-19 10:26:37 -08:00
fixture.py rehome rpc and related plumbing 2018-07-12 13:13:21 -06:00
rpc.py rehome rpc and related plumbing 2018-07-12 13:13:21 -06:00
version.py Setup for devref documentation 2015-12-07 18:50:07 +00:00
worker.py Enable module reference 2017-07-05 12:09:10 +09:00