Skip to content

Commit 106c880

Browse files
authored
[VIRT] fix for fedora_disk_load_migration test (RedHatQE#2251)
In some cases fio command may complete too fast, using --time_based argument instead of --loops Checking, disk usage before migration
1 parent 0f7901f commit 106c880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/virt/node/migration_and_maintenance/test_vm_disk_load_with_migration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ def running_fio_in_vm(vm_with_fio):
3737
# Random write/read - create a 1G file, and perform 4KB reads and writes using a 75%/25%
3838
LOGGER.info("Running fio in VM")
3939
fio_cmd = shlex.split(
40-
"sudo nohup /usr/bin/fio --loops=400 --runtime=600 --randrepeat=1 --ioengine=libaio --direct=1 "
40+
"sudo nohup /usr/bin/fio --time_based --runtime=600 --randrepeat=1 --ioengine=libaio --direct=1 "
4141
"--gtod_reduce=1 --name=test --filename=/home/fedora/random_read_write.fio --bs=4k --iodepth=64 "
4242
"--size=1G --readwrite=randrw --rwmixread=75 --numjobs=8 >& /dev/null &"
4343
)
4444
run_ssh_commands(host=vm_with_fio.ssh_exec, commands=fio_cmd)
45+
get_disk_usage(ssh_exec=vm_with_fio.ssh_exec)
4546

4647

4748
def get_disk_usage(ssh_exec):

0 commit comments

Comments
 (0)