Bug 1850147 - [ovn] Agent liveness checks create too many writes into OVN db
Summary: [ovn] Agent liveness checks create too many writes into OVN db
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: Lucas Alvares Gomes
QA Contact: Eduardo Olivares
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-23 15:28 UTC by Lucas Alvares Gomes
Modified: 2022-08-23 18:45 UTC (History)
6 users (show)

Fixed In Version: python-networking-ovn-7.2.1-0.20200626164637.4492ff3.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:08:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 737253 0 None MERGED [OVN] Avoid unnecessary DB writes during agent liveness check 2021-02-16 11:36:59 UTC
Red Hat Issue Tracker OSP-3155 0 None None None 2022-08-23 18:45:19 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:09:06 UTC

Description Lucas Alvares Gomes 2020-06-23 15:28:12 UTC
Reported at: https://bugs.launchpad.net/neutron/+bug/1883554

Every time the agent liveness check is triggered (via API or periodically every agent_down_time / 2 seconds), there are a lot of writes into the SB database on the Chassis table.
These writes triggers recomputation on ovn-controller running in all nodes having a considerable performance hit, especially under stress.

After this commit was merged [0] we avoided bumping nb_cfg too frequently but still we're performing writes into the Chassis table to often, from all the workers.

We should use the same logic in [1] to avoid writes that have happened recently.

[0] https://opendev.org/openstack/neutron/commit/647b7f63f9dafedfa9fb6e09e3d92d66fb512f0b
[1] https://github.com/openstack/neutron/blob/4de18104ae88a835544cefbf30c878aa49efc31f/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L1075

Comment 12 errata-xmlrpc 2021-09-15 07:08:44 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 (Red Hat OpenStack Platform (RHOSP) 16.2 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/RHEA-2021:3483


Note You need to log in before you can comment on or make changes to this bug.