Skip to content

Commit

Permalink
Add debug to docker_compose_restart_storage_nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
  • Loading branch information
vvarg229 committed Sep 21, 2023
1 parent d315cf6 commit d1ebdf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytest_tests/testsuites/failovers/test_failover_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def docker_compose_restart_storage_nodes(self):
wait_all_storage_nodes_returned(self.cluster)
with allure.step("Log resync status"):
for node in self.cluster.storage_nodes:
envs = subprocess.run(["docker", "exec", "-it", node.name, "env"])
# docker inspect -f '{{range $index, $value := .Config.Env}}{{$value}} {{end}}' s01
envs = subprocess.run(["docker", "inspect", "-f", "'{{range $index, $value := .Config.Env}}{{$value}} {{end}}'", node.name])
logger.error(f"ENV from {node.name}: {envs}")
envs = subprocess.run(["docker", "inspect", "-f", "'{{range $index, $value := .Config.Env}}{{$value}} {{end}}'", node.name], capture_output=True)
env_stdout = envs.stdout.decode("utf-8")
logger.error(f"ENV from {node.name}: {env_stdout}")

@pytest.fixture(scope="function")
@allure.title("Enable metabase resync on start")
Expand Down

0 comments on commit d1ebdf4

Please sign in to comment.