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

random precondition fio job timeout with 1800s when run case fio_fb.py with config fio_fb_perf.json #10

Open
kwzhu123 opened this issue Jul 29, 2024 · 1 comment

Comments

@kwzhu123
Copy link

1.run test case fio_fb.py with config fio_fb_perf.json
2.when run to step random precondition, got assert : random precondition timed out. Failed to complete within 1800 seconds on x.x.x.x
3.in ocp-diag-autoval-ssd/src/autoval_ssd/lib/utils/fio_runner.py def create_fio_job, will set fio timeout:
if key == "RUNTIME":
self.fio_timeout = DiskUtils.get_seconds(value) + 600

and fio_fb_perf.json set random pattern run time to "RUNTIME": "1200s", this worked for patten test, but seq/random precondition used this fio timeout value too, if seq/random 1 loops used more than 1200+600=1800s, case will failed, need enhancement it.

log:
output.log

@kwzhu123
Copy link
Author

    for _cycle in range(1, precondition_loops + 1):
        job = self.create_fio_job(
            drives=drives,
            replace={},
            templ_filename=precondition_template,
        )
        AutovalLog.log_info("Starting preconditioning cycle %s on DUT" % _cycle)
        self.fio_timeout = 86400
        AutovalLog.log_info(f"For preconditioning {precondition_template} timeout is {self.fio_timeout}")
        result, output_file = self.run_fio_on_dut(
            job=job,
            remote=remote,
            timeout=self.fio_timeout,   **#need revert fio timeout to a long time or set to None**
            opts=fio_opts,
        )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant