Reviewed: https://review.openstack.org/617119 Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=593c04d10d9d67cc6f864ff37416951dd28584f5 Submitter: Zuul Branch: master
commit 593c04d10d9d67cc6f864ff37416951dd28584f5 Author: Slawek Kaplonski <email address hidden> Date: Sat Nov 10 15:48:20 2018 +0100
Import neutron.db.api module in common.utils
Patch [1] removed import of neutron.db.api module in neutron.common.utils. This cause some issues e.g. in networking-ovn projects because listeners:
@event.listens_for(orm.session.Session, "persistent_to_deleted") on _persistent_to_deleted() function [2] and
@event.listens_for(model_base.BASEV2, "attribute_instrument", propagate=True) on _listen_for_changes() function [3]
aren't created as they where before.
This patch adds import of this neutron.db.api module again just to ensure that those listeners are created properly.
[1] https://review.openstack.org/#/c/614252/ [2] https://github.com/openstack/neutron/blob/master/neutron/db/api.py#L110 [3] https://github.com/openstack/neutron/blob/master/neutron/db/api.py#L134
Closes-Bug: #1802369
Change-Id: I3e427ee5c904c34115aaf1afa67e1109ea58d603
Reviewed: https:/ /review. openstack. org/617119 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=593c04d10d9 d67cc6f864ff374 16951dd28584f5
Committed: https:/
Submitter: Zuul
Branch: master
commit 593c04d10d9d67c c6f864ff3741695 1dd28584f5
Author: Slawek Kaplonski <email address hidden>
Date: Sat Nov 10 15:48:20 2018 +0100
Import neutron.db.api module in common.utils
Patch [1] removed import of neutron.db.api module in common. utils.
neutron.
This cause some issues e.g. in networking-ovn projects because
listeners:
@event. listens_ for(orm. session. Session, "persistent_ to_deleted" ) to_deleted( ) function [2] and
on _persistent_
@event. listens_ for(model_ base.BASEV2, "attribute_ instrument" , propagate=True) for_changes( ) function [3]
on _listen_
aren't created as they where before.
This patch adds import of this neutron.db.api module again just to
ensure that those listeners are created properly.
[1] https:/ /review. openstack. org/#/c/ 614252/ /github. com/openstack/ neutron/ blob/master/ neutron/ db/api. py#L110 /github. com/openstack/ neutron/ blob/master/ neutron/ db/api. py#L134
[2] https:/
[3] https:/
Closes-Bug: #1802369
Change-Id: I3e427ee5c904c3 4115aaf1afa67e1 109ea58d603