Bug 1937705
| Summary: | GET API on SG takes more than 30 seconds at scale | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | anil venkata <vkommadi> | |
| Component: | openstack-nova | Assignee: | Slawek Kaplonski <skaplons> | |
| Status: | CLOSED ERRATA | QA Contact: | Alex Katz <akatz> | |
| Severity: | high | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 16.1 (Train) | CC: | bcafarel, chrisw, dasmith, eglynn, ekuris, ffernand, jhakimra, kchamart, ralonsoh, sbauza, scohen, sgordon, skaplons, smooney, vromanso | |
| Target Milestone: | z7 | Keywords: | Patch, Triaged | |
| Target Release: | 16.1 (Train on RHEL 8.2) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-nova-20.4.1-1.20210510133324.el8ost | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1960566 1962032 (view as bug list) | Environment: | ||
| Last Closed: | 2021-12-09 20:18:11 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: | ||||
| Bug Depends On: | 1962032 | |||
| Bug Blocks: | 1960566 | |||
|
Description
anil venkata
2021-03-11 11:35:35 UTC
Before we invest too much energy on this, it may be important to know the requirements in terms of what customers need.
It may be possible that number of security group rules is more important than the number of security groups. @atrag may know.
Should we need to address this BZ, the most viable way is to change the requester (nova in this case) to use pagination
and leverage what is already implemented in neutron API. That basically involves the usage of the "limit" and "marker"
parameters.
@db_api.retry_if_session_inactive()
def get_security_groups(self, context, filters=None, fields=None,
sorts=None, limit=None,
marker=None, page_reverse=False, default_sg=False)
https://github.com/openstack/neutron/blob/98db3b9c80a6309f7b91624c5eeea159f0b57081/neutron/db/securitygroups_db.py#L161-L164
https://docs.openstack.org/api-ref/network/v2/index.html#security-groups-security-groups
More info on pagination is available here:
https://docs.openstack.org/api-ref/network/v2/#pagination
Slawek, As it is very important patch for the scale (helpful for many customers), is it possible to backport it to OSP13? 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 (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), 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/RHBA-2021:3762 |