[sqlalchemy-20][vnpaas] Parent instance <VPNService at xxx> is not bound to a Session

Bug #2008775 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Undecided
Unassigned

Bug Description

The method ``BaseIPsecVPNDriver.create_vpnservice`` is using a SQL object outside a DB context. The "vpnservice" object retrieved in [1] is used in the next line but outside the read context used to retrieve it.

Logs: https://paste.opendev.org/show/bC9xTO39Www41MAKrnOy/

[1]https://github.com/openstack/neutron-vpnaas/blob/d34ff613d720c4990f41c417060e32f92f19f25a/neutron_vpnaas/services/vpn/service_drivers/base_ipsec.py#L174

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.