Skip to content

Commit

Permalink
DAOS-16265 test: Fix erasurecode/rebuild_fio.py out of space
Browse files Browse the repository at this point in the history
The erasurecode/rebuild_fio.py test runs out of space in self.test_dir
due to the same path being used for the control metadata path in MD on
SSD mode.  The test log file is also quite large with 24 test variants.

Skip-unit-tests: true
Skip-fault-injection-test: true
Test-tag: EcodFioRebuild
Skip-func-hw-test-large-md-on-ssd: false

Required-githooks: true

Signed-off-by: Phil Henderson <[email protected]>
  • Loading branch information
phender committed Aug 27, 2024
1 parent e3869b7 commit 1464270
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/tests/ftest/util/apricot/apricot/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,13 @@ def setUp(self):
self.log.debug("Common test directory (%s) contents:", os.path.dirname(self.test_dir))
all_hosts = include_local_host(self.host_info.all_hosts)
test_dir_parent = os.path.dirname(self.test_dir)
result = run_remote(self.log, all_hosts, f"df -h {test_dir_parent}")
if int(max(re.findall(r" ([\d+])% ", result.joined_stdout) + ["0"])) > 90:
run_remote(self.log, all_hosts, f"du -sh {test_dir_parent}/*")
_result = run_remote(self.log, all_hosts, f"df -h {test_dir_parent}")
_details = NodeSet()
for _host, _stdout in _result.all_stdout.items():
if int(max(re.findall(r"\s+([\d]+)%\s+", _stdout) + ["0"])) > 90:
_details.add(_host)
if _details:
run_remote(self.log, _details, f"du -sh {test_dir_parent}/*")
self.log.info("-" * 100)

if not self.start_servers_once or self.name.uid == 1:
Expand Down

0 comments on commit 1464270

Please sign in to comment.