Virt Test: Add a new test nfs_corrupt v2
PATCH 1/1 Virt Test: Add a new test nfs_corrupt v2
From: Qingtang Zhou <[email protected]>
Subtest nfs_corrupt is used to check the change of VM status when disk I/O error happen. Only test Linux platform, write disk by dd command. Setup NFS service by pre_command and post_command.
Update this case, using 'iptables' command to filter nfs connection instead of stop nfs service, because maybe there are some other nfs service provided on the same host.
Changes from v1:
* Move test setup to a class, to make better use
of object state, allowing for clearer, less
duplicated code.
* All the nfs directories are now located
on test.tmpdir.
* Now test works with Fedora 16 hosts, since
nfs service name has changed on those hosts.
--- client/tests/kvm/subtests.cfg.sample | 17 +++ client/virt/tests/nfs_corrupt.py | 255 ++++++++++++++++++++++++++++++++++ 2 files changed, 272 insertions(+), 0 deletions(-) create mode 100644 client/virt/tests/nfs_corrupt.py
client/tests/kvm/subtests.cfg.sample +17 -0
@@ -348,6 +348,23 @@ variants: type = stop_continue kill_vm_on_error = yes + - nfs_corrupt: + only Linux + type = nfs_corrupt + start_vm = no + images += " stg" + image_size_stg = "10G" + image_format_stg = "qcow2" + create_image_stg = no + force_create_image_stg = no + remove_image_stg = yes + drive_werror = stop + drive_cache = none + kill_vm = yes + post_command_noncritical = yes + wait_paused_timeout = 120 + nfs_stat_chk_re = "running" + - linux_s3: install setup image_copy unattended_install.cdrom only Linux type = linux_s3
client/virt/tests/nfs_corrupt.py new file +255 -0
255 lines not on this page · raw message
Signature · 1 line
1.7.7.3