commit 7ac9edac80132577ab285484cd48f9a859153350
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Dec 14 15:45:48 2023 +0000
Improve the SG RPC callback ``security_group_info_for_ports``
This method populates the SG rules in a dictionary. Each SG rule
inherits the "stateful" value of the SG. Prior to this patch, each
SG rule was isuing a database call to retrieve the SG register.
In this patch, the SG "stateful" retrieval is done in one database
query for all SG. That improves the performance of this method
reducing the database access to only one single call.
This improvement, as commented in the LP bug, affects to
ML2/LinuxBridge. ML2/OVS agent uses a cached RPC implementation
that not requires to perform any RPC call/database query.
Conflicts: neutron/objects/securitygroup.py
Closes-Bug: #2045950
Change-Id: Iafd0419a1d1eeb25d5589edc2570ebf287450957
(cherry picked from commit 6b6abb9698318a0b5db09f0c4d30a47438a94643)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/904246 /opendev. org/openstack/ neutron/ commit/ 7ac9edac8013257 7ab285484cd48f9 a859153350
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 7ac9edac8013257 7ab285484cd48f9 a859153350
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Dec 14 15:45:48 2023 +0000
Improve the SG RPC callback ``security_ group_info_ for_ports` `
This method populates the SG rules in a dictionary. Each SG rule
inherits the "stateful" value of the SG. Prior to this patch, each
SG rule was isuing a database call to retrieve the SG register.
In this patch, the SG "stateful" retrieval is done in one database
query for all SG. That improves the performance of this method
reducing the database access to only one single call.
This improvement, as commented in the LP bug, affects to LinuxBridge. ML2/OVS agent uses a cached RPC implementation
ML2/
that not requires to perform any RPC call/database query.
Conflicts:
neutron/ objects/ securitygroup. py
Closes-Bug: #2045950 25d5589edc2570e bf287450957 b5db09f0c4d30a4 7438a94643)
Change-Id: Iafd0419a1d1eeb
(cherry picked from commit 6b6abb9698318a0