Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kulachenko <[email protected]>
  • Loading branch information
vvarg229 committed Sep 19, 2023
1 parent f990ec9 commit e458005
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pytest_tests/testsuites/object/test_object_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,16 @@ class TestObjectLockWithGrpc(ClusterTestBase):
def docker_compose_restart_storage_nodes(self):
stop_storage_nodes(self.cluster.storage_nodes)
# Not using docker-compose restart because the container needs to be started with new environment variables.
subprocess.run(["docker-compose", "-f", DOCKER_COMPOSE_STORAGE_CONFIG_FILE, "down"])
subprocess.run(["docker-compose", "-f", DOCKER_COMPOSE_STORAGE_CONFIG_FILE, "up", "-d"])
with allure.step("Docker-compose down"):
subprocess.run(["docker-compose", "-f", DOCKER_COMPOSE_STORAGE_CONFIG_FILE, "down"])
with allure.step("Docker-compose up"):
subprocess.run(["docker-compose", "-f", DOCKER_COMPOSE_STORAGE_CONFIG_FILE, "up", "-d"])
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"])
logger.error(f"ENV from {node.name}: {envs}")
logger.error(f"Node {node.name} resync status: {node.get_resync_status()}")

@pytest.fixture()
def new_locked_storage_object(
Expand Down

0 comments on commit e458005

Please sign in to comment.