Sebastian Lohff 13c9c9a433 Use reader context for DB queries
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
2025-06-18 18:37:22 +02:00
2024-11-14 09:14:53 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2019-04-19 19:49:09 +00:00
2022-03-01 01:01:47 +00:00
2024-11-14 09:14:53 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2022-03-01 01:01:47 +00:00
2025-06-04 10:30:07 +00:00
2022-07-28 12:35:06 +00:00
2022-03-01 01:01:47 +00:00
2025-04-16 22:26:47 +09:00

Team and repository tags

image

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
Firewall services for OpenStack Neutron.
Readme 41 MiB
Languages
Python 97.8%
Shell 2.1%
Mako 0.1%