From 10468fa5450adb64f3978b3be8091cd090652f70 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Fri, 19 May 2023 11:16:34 +0300 Subject: [PATCH] Use root to create dir and then transfer it to load user Signed-off-by: Andrey Berezin --- src/frostfs_testlib/load/k6.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frostfs_testlib/load/k6.py b/src/frostfs_testlib/load/k6.py index a748f67..d3939ae 100644 --- a/src/frostfs_testlib/load/k6.py +++ b/src/frostfs_testlib/load/k6.py @@ -13,6 +13,7 @@ from frostfs_testlib.load.load_config import ( ) from frostfs_testlib.processes.remote_process import RemoteProcess from frostfs_testlib.reporter import get_reporter +from frostfs_testlib.resources.load_params import LOAD_NODE_SSH_USER from frostfs_testlib.shell import Shell from frostfs_testlib.storage.dataclasses.wallet import WalletInfo @@ -154,7 +155,8 @@ class K6: @reporter.step_deco("Start K6 on initiator") def start(self) -> None: # Make working_dir directory - self.shell.exec(f"mkdir -p {self.load_params.working_dir}") + self.shell.exec(f"sudo mkdir -p {self.load_params.working_dir}") + self.shell.exec(f"sudo chown {LOAD_NODE_SSH_USER} {self.load_params.working_dir}") command = ( f"{self._k6_dir}/k6 run {self._generate_env_variables()} "