
In most cases FirewallPluginDb has opened reader/writer contexts for its db access, but not in all. Once instance in which this can fail is when the port AFTER_UPDATE event handler is called. This method might call get_fwg_attached_to_port() outside of a transaction, which currently automatically opens one. This will explicitly fail when a transaction guard is hit with an exception: RuntimeError: Must not be called in a transaction To avoid this, we add a reader context to get_fwg_attached_to_port() and while we're at it we're adding this to all FirewallPluginDb methods that do a model_query db query - just to be on the safe side. Change-Id: Iabb9bc6877059bcc46d64b7fc2d0728e6002610b Closes-Bug: #2114919
Team and repository tags
Welcome!
This package contains the code for the Neutron Firewall as a Service (FWaaS) service. This package requires Neutron to run.
External Resources:
The homepage for Neutron is: https://launchpad.net/neutron. Use this site for asking for help, and filing bugs. We use a single Launchpad page for all Neutron projects.
Code is available on git.openstack.org at: <https://opendev.org/openstack/neutron-fwaas>.
Please refer to Neutron documentation for more information: Neutron README.rst
Get release notes: Neutron FWaaS Release Notes
Description
Languages
Python
97.8%
Shell
2.1%
Mako
0.1%