Use get_ovn_ovsdb_retry_max_interval()

Use the config option instead of a hard-coded 180 in
OvnNbIdlForLb class.

Change-Id: Ida43d9123ab3e26b9cf4b0cbe157be187d7d1241
This commit is contained in:
Brian Haley 2020-11-24 17:55:23 -05:00
parent 5b0715d967
commit 037d3d071a
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ from ovn_octavia_provider.i18n import _
from ovn_octavia_provider.ovsdb import impl_idl_ovn
from ovn_octavia_provider.ovsdb import ovsdb_monitor
config.register_opts()
LOG = log.getLogger(__name__)
@ -163,7 +164,8 @@ class OvnNbIdlForLb(ovsdb_monitor.OvnIdl):
atexit.register(self.stop)
@tenacity.retry(
wait=tenacity.wait_exponential(max=180),
wait=tenacity.wait_exponential(
max=config.get_ovn_ovsdb_retry_max_interval()),
reraise=True)
def _get_ovsdb_helper(self, connection_string):
return idlutils.get_schema_helper(connection_string, self.SCHEMA)