libvirt.tests: Add testcases for migration with copy-storage-inc/all.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcases for lvm type storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add abnormal testcases for storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Fix parameter error of migrate-setmaxdowntime.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.test: Add 'bridge' type interface test for iface

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add more testcases for iface test

Add some case for nonexist interface test, including
protocol test, stp test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add 'vlan' and 'bond' type test for iface

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
snapshot_create_as: Fix negative test with quiesce without ga on running domain

As qemu-guest-agent change, start and stop the ga process differ
in different guest os. On RHEL7 and fedora, as take over by
systemd, it could be autostarted when os up, kill the process
could fail as new process be started immediately. So for stop it,
first try to kill the process, if process still detected, then
use systemctl to stop the service.

Update TestFail to TestNAError when check qemu-guest-agent
service.

This fix issue:
https://github.com/autotest/tp-libvirt/issues/135

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh_change_media: Add a case to cover floppy write & read test

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_update-device: case expand and tiny bugs fix

1. Support different disk type: cdrom, floppy
2. Support different disk mode: none, readonly, shareable
3. Cover more sub test cases
4. Tiny bugs fix

Signed-off-by: Yanbing Du <ydu@redhat.com>
Add VG related test case
libvirt.tests: Fix migrate stress problems.

 * Vms will be popped in cross migration, so creating them again
   for cleanup.
 * If local vms use lan, geting address would be failed on remote
   host, so storing ips before migration.
 * Fix stress_args parameter.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add test case for vg_activate, vg_activate_all, vglvuuids, vgpvuuids
libvirt.test: Raise TestNAError if option not be supported

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix a bug for update-device test

Disk maybe doesn't contain source element, use
'disk.source' will get LibvirtXMLNotFoundError.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add multiple vms disk error_policy test cases.
snapshot_create_as: Add autodestroy negative case

Add negative test case for snapshot on created autodestroy domain.

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt_bench: make ttcp_from_guest_to_host works for vms rather than only for main_vm.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh_attach_detach_disk.cfg: Resolve a conflict in options '--mode readonly' and '--shareable'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
tests.migrate_copy_storage: Fix bugs.

 * LVM should be block device for domain.
 * New created vm should be cleaned up anyway.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>