Set IPv6 instance to the node object

This commit is contained in:
Konstantin Bogdanov 2024-09-03 18:36:32 +02:00
parent 58b84e9e3d
commit 1f5eb2cd2c
No known key found for this signature in database

View File

@ -2112,6 +2112,7 @@ class ClickHouseCluster:
self.base_cmd + ["up", "--force-recreate", "--no-deps", "-d", node.name]
)
node.ip_address = self.get_instance_ip(node.name)
node.ipv6_address = self.get_instance_global_ipv6(node.name)
node.client = Client(node.ip_address, command=self.client_bin_path)
logging.info("Restart node with ip change")
@ -3182,6 +3183,7 @@ class ClickHouseCluster:
for instance in self.instances.values():
instance.docker_client = self.docker_client
instance.ip_address = self.get_instance_ip(instance.name)
instance.ipv6_address = self.get_instance_global_ipv6(instance.name)
logging.debug(
f"Waiting for ClickHouse start in {instance.name}, ip: {instance.ip_address}..."