libvirt.tests: Enhancements of stress migration tests.

* Support migration in thread for expanding.
* Fix bugs and some pylint problems.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add cross migration test for virsh_migrate_stress.

Cross migration:
local     =====      remote
           <-         vm1
vm2        ->
~~
           <-         vm2
vm3        ->

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add migration testcases when vms are booting.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Expand stress type for migration stress test.

 * Seperate cpu and memory stress of stress tool.
 * Add timeout parameter for migration threads.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Running stress tool on host for stress migration.

Do migration when stress tool is running on host:
1.Half of total memory is consumed.
2.Host is short of memory(Free memory is not enough for vms.)

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add network check after migration for stress migration test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.testcases: Enhancements of stress migration.

* Use common parameters for remote info and vm info.
* Use specific parameters for stress tool.
* Fix pylint complaints for stress migration module.
* Fix pep8 errors.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Fix typo in virsh schedinfo(qemu) test

os.path.join("/cgroup/cpu", "/libvirt/qemu", "vm1") will
return "/libvirt/qemu/vm1", not "/cgroup/cpu/libvirt/qemu/vm1",
so I modify 'libvirt_cgroup_path' default value from
"/libvirt/qemu" to "libvirt/qemu"

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
add scsi-target-utils pkg to support migrate.after_extensive_io.iscsi

support RHEL.5/6 Fedora
and disable legacy rhel guests as they dont have such pkg

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
virsh_uri: Change TestError to TestNAError

Following lead of similar tests that use the EXAMPLE.COM
checking, use TestNAError rather than TestError to result
in SKIP instead of ERROR for test

Signed-off-by: John Ferlan <jferlan@redhat.com>
virt.tests: fix typo in unattended_install test

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #956 from liyangfnst/schedinfo

virt-libvirt: Fix typo in virsh schedinfo(qemu) test
libvirt-svirt: Add test for VM starting and destroying in svirt.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-svirt:Add test for save and restore in svirt

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_vm: fix save_to_file and restore_from_file method.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
iometer_windows.performance.msi_on: disable WinXP/2003 as it dont support msi

WinXP/2003 dont support MSI, so this case
is expected to fail

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Ubuntu guest system_reset_bootable fix

As Ubuntu would make grub stop OS selection screen
when it encountering power loss, thus case after
system_reset_bootable would be blocked, adding
a workaround, OS older then 12.04 are not cared.

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Merge pull request #840 from yumingfei/stress_migration

libvirt.tests: Add migration test for virsh_migrate_stress.
libvirt-xml: improvement for network xml

Add slot for 'portgroup', 'bandwidth_inbound', 'bandwidth_outbound'

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-xml: implement interface in devices.

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