neutron/neutron/tests/unit/services/logapi
Ihar Hrachyshka f69389004a Revert "Revert "Automatically expire obsolete relationships""
This reverts commit a75014792a.

This is the second attempt to merge the patch after the previous one resulted
in revert due to multiple gate breakages in dependent projects (neutron-lbaas,
vmware-nsx, heat, networking-odl). This second attempt is validated with a set
of depends-on patches for all projects that were affected during the first
failed attempt.

The original commit message for the patch is included below for context.

===

Listen for foreign key changes and expire related relationships.

With this, we can remove OVO code that refreshes / detaches models on
each fetch. The patch also removes a bunch of expunge calls in plugin
code.

writer.using context manager is added to _get_subnets so that segment
plugin's _notify_subnet_updated handler that calls to _get_subnets
doesn't use the facade-less context.session that in specific cases may
cache old models from previous sessions when used in mixed
facade/facade-less environment.

This patch bumps SQLAlchemy minimal requirement to >= 1.2.0 because
pending_to_persistent event didn't exist before this version. It could be >=
1.1.0 if not for the fact that all 1.1.x releases have a bug that results in
breakage of test_update_with_none_and_own_mac_for_duplicate_ip due to obscure
import ordering issue in the library.

(The issue is fixed by https://github.com/zzzeek/sqlalchemy/commit/
63ff0140705207198545e3a0d7868a5ba8486e93)

Partially-Implements: blueprint enginefacade-switch
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db

Co-Authored-By: Michael Bayer <mike_mp@zzzcomputing.com>
Depends-On: If4b28110f460f6ac77ace1bbb02967ea986d4cab
Depends-On: I9f1e76cb24838533572b5fbe269ff96a24ce4af1
Change-Id: I0d65d19204da8ce30addfa5faff68544534b7853
2018-04-26 22:04:07 +00:00
..
agent Fix mocking of ovsdb connection in UT 2018-01-12 12:11:58 +00:00
common use log api plugin const from neutron-lib 2017-11-30 11:07:06 -07:00
drivers Make log extension more generic 2018-03-08 16:58:01 +07:00
rpc [log]: Add driver api and rpc stuff for logging 2017-11-29 16:21:46 +07:00
__init__.py [log]: implement logging plugin 2017-07-12 13:30:50 +07:00
base.py [log]: implement logging plugin 2017-07-12 13:30:50 +07:00
test_logging_plugin.py Revert "Revert "Automatically expire obsolete relationships"" 2018-04-26 22:04:07 +00:00