Merge "Use get_ovn_ovsdb_retry_max_interval()"

This commit is contained in:
Zuul 2021-03-05 22:36:09 +00:00 committed by Gerrit Code Review
commit eac731ef31

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