neutron/neutron/agent/ovn/metadata
Terry Wilson 5783e95288 Ensure ovsdb_probe_interval set before connect()
Setting the ovsdb_probe_interval after Connection.start() is
called means that the probe interval is not changed from
python-ovs's default of 5s until after the initial copy of the
database is retrieved. On busy systems, this can time out and
cause infinite reconnects.

This patch passes the probe_interval argument to the ovs.db.Idl
class so that it can be set as part of creating the jsonrpc
Session.

Some unit tests were removed and replaced with a functional test
which ensures not just that set_probe_interval is called, but that
the value is actually set before the connection is established.

Closes-bug: #1905611
Change-Id: I8c940ac8f7632c69607dea7220146ef59d55ed56
2020-11-25 19:55:32 +00:00
..
__init__.py [OVN] Move OVN metadata agent 2019-12-09 10:48:39 +00:00
agent.py Use metadata constants from n-lib 2020-09-04 15:08:30 +00:00
driver.py [OVN] Move OVN metadata agent 2019-12-09 10:48:39 +00:00
ovsdb.py Ensure ovsdb_probe_interval set before connect() 2020-11-25 19:55:32 +00:00
server.py [OVN][OVS] Different metadata_workers default based on driver 2020-09-09 09:39:13 +01:00