Bug 1962178 - [ovn] Reduce the writes to OVN SB database in metadata agent
Summary: [ovn] Reduce the writes to OVN SB database in metadata agent
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Jakub Libosvar
QA Contact: Roman Safronov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-19 13:03 UTC by Daniel Alvarez Sanchez
Modified: 2023-01-20 10:17 UTC (History)
12 users (show)

Fixed In Version: python-networking-ovn-7.3.1-1.20210714143305.4e24f4c.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:19:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 791997 0 None MERGED [ovn][metadata] Remove metadata readiness mechanism 2022-07-18 13:43:18 UTC
Red Hat Issue Tracker OSP-3996 0 None None None 2021-11-18 11:32:27 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:19:55 UTC

Description Daniel Alvarez Sanchez 2021-05-19 13:03:24 UTC
Right now, the metadata agent writes into the SB database to indicate that a network has been provisioned with metadata on a particular chassis.

This triggers updates to all clients monitoring the Chassis columns and makes neutron-server wait for an event during a VM boot up with a 15s timeouts.

On very loaded systems, it is very frequent to see the 15 seconds timeout expire so the mechanism becomes useless.

Also, on non loaded systems, the wait is not needed since cloud-init retries the metadata requests up to 20 times which exceeds by far the 15 seconds.

By eliminating this readiness mechanism we can set the grounds to make the metadata agent connect to slave instances for read-only operations.

Comment 2 Daniel Alvarez Sanchez 2021-05-19 13:05:14 UTC
This is a scale related enhancement

Comment 10 Roman Safronov 2021-10-11 16:46:14 UTC
Verified on RHOS-16.1-RHEL-8-20211007.n.1 with python3-networking-ovn-7.3.1-1.20210714143309.el8ost.noarch
Monitored SB DB and verified that there are no more writings to Chassis table external_ids when creating VMs. Used this command: sudo ovsdb-client monitor tcp:172.17.1.137:6642 OVN_Southbound Chassis external_ids. Before the fix there were neutron-metadata-proxy-networks parameter updates.

Comment 23 errata-xmlrpc 2021-12-09 20:19:32 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 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


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