Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env: attach logs in case of IR deployment failure #812

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ def deploy_inner_ring_nodes(self, count=1):
with allure.step("Wait until all IR nodes are READY"):
for ir_node in self.inner_ring_nodes:
logger.info(f"Wait until IR: {ir_node} is READY")
ir_node._wait_until_ready()
try:
ir_node._wait_until_ready()
except Exception as e:
allure.attach.file(ir_node.stderr, name="ir node logs", extension="txt")
raise e

@allure.step("Deploy storage node")
def deploy_storage_nodes(self, count=1, node_attrs: Optional[dict] = None):
Expand Down
Loading