vmware-nsx/neutron
Maru Newby 6db48dd688 Ensure core plugin deallocation after every test
The unit tests were previously consuming an excessive amount of memory
(4GB+) due to plugin instances persisting in memory.  Deallocation was
not possible where a combination of circular references and mocking
was involved.  This patch ensures that only NeutronManager holds a
plugin reference and that all other references are instances of
weakref.proxy.  Residual memory footprint for tox executed on a
12-core machine has been reduced to ~1.3GB.  Plugin deallocation is
validated at the end of each test to prevent regressions.

This change also includes fixes to unit tests that depended on plugin
instances persisting across tests.

Partial-Bug: #1234857
Change-Id: Ia1f868c2d206eb72ef77d290d054f3c48ab58c94
2014-05-08 23:40:46 -07:00
..
agent Merge "Fix H302 violations" 2014-05-08 16:54:08 +00:00
api Fix H302 violations 2014-05-04 12:40:08 +02:00
cmd remove binaries under bin 2013-08-16 10:10:30 +08:00
common Fix H302 violations 2014-05-04 12:40:08 +02:00
db Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
debug Fix H302 violations 2014-05-04 12:40:08 +02:00
extensions Make VPNaaS 'InUse' exception more clear 2014-05-07 13:27:50 +00:00
locale Imported Translations from Transifex 2014-05-04 06:55:54 +00:00
notifiers Replace loopingcall in notifier with a delayed send 2014-04-22 16:22:02 +00:00
openstack Start ping listener also for postgresql 2014-05-08 01:37:17 -07:00
plugins Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
scheduler Merge "Enable flake8 E711 and E712 checking" 2014-04-23 01:01:16 +00:00
server Adds multiple RPC worker processes to neutron server 2014-03-04 00:50:20 +00:00
services lbaas on a network without gateway 2014-05-04 01:24:06 +00:00
tests Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07: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 Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
neutron_plugin_base_v2.py Add support for multiple RPC workers under Metaplugin 2014-04-15 13:29:27 +09:00
policy.py Call policy.init() once per API request 2014-04-04 07:54:23 -07:00
quota.py Remove last parts of Quantum compatibility shim 2014-03-31 23:31:23 -07:00
service.py Sync db code from oslo-incubator 2014-04-23 18:14:49 +03:00
version.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
wsgi.py Reference new get_engine() method from wsgi.py 2014-04-30 21:51:34 -07:00