raise timeout for test_host_ip_change/test.py::test_user_access_ip_change

This commit is contained in:
Nikita Mikhaylov 2021-05-28 17:37:05 +03:00
parent 7b04181dd9
commit 095f06c8a3
2 changed files with 6 additions and 4 deletions

View File

@ -126,7 +126,7 @@ class ClickHouseCluster:
"""
def __init__(self, base_path, name=None, base_config_dir=None, server_bin_path=None, client_bin_path=None,
odbc_bridge_bin_path=None, library_bridge_bin_path=None, zookeeper_config_path=None,
odbc_bridge_bin_path=None, library_bridge_bin_path=None, zookeeper_config_path=None,
custom_dockerd_host=None):
for param in list(os.environ.keys()):
print("ENV %40s %s" % (param, os.environ[param]))
@ -455,7 +455,10 @@ class ClickHouseCluster:
run_and_check(self.base_cmd + ["up", "--force-recreate", "--no-deps", "-d", node.name])
node.ip_address = self.get_instance_ip(node.name)
node.client = Client(node.ip_address, command=self.client_bin_path)
node.wait_for_start(start_timeout=20.0, connection_timeout=600.0) # seconds
print("Restart node with ip change")
# In builds with sanitizer the server can take a long time to start
node.wait_for_start(start_timeout=60.0, connection_timeout=600.0) # seconds
print("Restarted")
return node
def get_instance_ip(self, instance_name):
@ -1524,7 +1527,7 @@ class ClickHouseInstance:
if self.stay_alive:
entrypoint_cmd = CLICKHOUSE_STAY_ALIVE_COMMAND.replace("{main_config_file}", self.main_config_name)
print("Entrypoint cmd: {}".format(entrypoint_cmd))
networks = app_net = ipv4_address = ipv6_address = net_aliases = net_alias1 = ""