Bug 1993688

Summary: neutron port list slow when trunk service plugin is enabled
Product: Red Hat OpenStack Reporter: vivek koul <vkoul>
Component: openstack-neutronAssignee: Slawek Kaplonski <skaplons>
Status: CLOSED ERRATA QA Contact: Candido Campos <ccamposr>
Severity: medium Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: bcafarel, chrisw, ldenny, ralonsoh, scohen
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-15.2.1-1.20210728183312.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-24 10:56:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vivek koul 2021-08-15 15:24:13 UTC
Description of problem:

openstack port list is terribly slow (it takes more than 1 minute) when we have a large number of ports (~3500) and the trunk service_plugins is enabled

We notice that there are thousands of SQL queries sent to the database that looks like this.

How reproducible:
Reproducible using latest registry.redhat.io/rhosp-rhel8/openstack-neutron-server-ovn:16.1.6 images

Comment 12 errata-xmlrpc 2022-03-24 10:56:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat OpenStack Platform 16.1 (openstack-neutron) security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0990