opencomputeproject / ocp-diag-autoval-ssd

MIT License
13 stars 1 forks source link

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

Open kwzhu123 opened 3 months ago

kwzhu123 commented 3 months ago

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 commented 3 months ago
    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,
        )