Comment 17 for bug 2045950

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/904246
Committed: https://opendev.org/openstack/neutron/commit/7ac9edac80132577ab285484cd48f9a859153350
Submitter: "Zuul (22348)"
Branch: stable/yoga

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)