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

DAOS-12946 test: fix telemetry_pool_metrics with ior error #12478

Merged
merged 10 commits into from
Jun 30, 2023
15 changes: 6 additions & 9 deletions src/tests/ftest/telemetry/telemetry_pool_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from avocado.core.exceptions import TestFail
from ior_test_base import IorTestBase
from telemetry_test_base import TestWithTelemetry

Expand Down Expand Up @@ -152,14 +151,12 @@ def test_telemetry_pool_metrics(self):
metrics_init = self.get_metrics(metric_names)

# Run ior command.
try:
self.update_ior_cmd_with_pool(False)
self.ior_cmd.dfs_oclass.update(self.dfs_oclass)
self.ior_cmd.dfs_chunk.update(self.ior_cmd.transfer_size.value)
self.run_ior_with_pool(
timeout=200, create_pool=False, create_cont=False)
except TestFail:
self.log.info("#ior command failed!")
self.update_ior_cmd_with_pool(False)
self.ior_cmd.dfs_oclass.update(self.dfs_oclass)
self.ior_cmd.dfs_chunk.update(self.ior_cmd.transfer_size.value)
# NOTE DAOS-12946: Not catching ior failures is intended. Indeed, to properly test the
# metrics we have to exactly know how much data have been transferred.
self.run_ior_with_pool(timeout=200, create_pool=False, create_cont=False)

# collect second set of pool metric data after read/write
metrics_end = self.get_metrics(metric_names)
Expand Down