From a364ceeb34db1b9af490fdbb2d0e78c1c4768dc2 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Sun, 9 Mar 2025 12:28:30 +0200 Subject: [PATCH] sni_proxy.py: add option to select the temp directory used since when we are working inside podman we can't mount /tmp and we need the exact same direcorty mount as host for sni_proxy to work as expected --- ccmlib/utils/sni_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccmlib/utils/sni_proxy.py b/ccmlib/utils/sni_proxy.py index f529f280..34b2f712 100644 --- a/ccmlib/utils/sni_proxy.py +++ b/ccmlib/utils/sni_proxy.py @@ -194,8 +194,8 @@ def get_cluster_info(cluster, port=9142): return nodes_info -def refresh_certs(cluster, nodes_info): - with tempfile.TemporaryDirectory() as tmp_dir: +def refresh_certs(cluster, nodes_info, tmp_directory=None): + with tempfile.TemporaryDirectory(dir=tmp_directory) as tmp_dir: dns_names = ['cql.cluster-id.scylla.com'] + \ [f'{node.host_id}.cql.cluster-id.scylla.com' for node in nodes_info] generate_ssl_stores(tmp_dir, dns_names=dns_names)