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>
virsh_domxml_to_native test improvements

Various changes to make the test function:
    Adjust the read process cmdline based on the knowledge that on
        Fedora 18 or later host, the qemu-kvm command line argument
        can be changed to be "qemu-system-x86_64 accel=kvm"
    Adjust the splitting of the command line from a list of each element
        that was separated by a space to a more ordered and natural
        looking list of items with "-option [arg]" on one line rather
        than adjacent "-option" "argument" elements
    Adjust the logic to perform better diffs using sets and determining
        what is in one list and not the other
    If differences are found, print them and in which order to make for
        easier debugging of problems

Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virttest: Log top commit message

Rather than just print the top SHA1, it is frequently
useful for quick reference to print the top commit
message.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Get rid of the installer registration concept

This is a legacy of the days where the kvm kernel modules would
be installed either by compiling the source code or via "kmod"
like packages, and the loading and unloading of kernel modules
would depend on that.

Nowadays, we can assume that the kvm modules always come from
the kernel packages.

One last piece of refiniment here would be to remove the module
loading/unloading feature from the base installer code.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
libvirt.tests.virsh_cmd: Fix invalid syntax

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.virsh: Fix void return of domiftune

That function was supposed to return a CmdResult object,
but it wasn't due to a rebase mistake.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_desc PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_numatune PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_node_memtune PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt.virsh_cmd: virsh_snapshot_disk PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
shutdown: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
v2v: convert_remote_vm PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_monitor: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.virtio_console: Fix variable overwriting

err value was overwritten by thread return number which resulted in
incorrectly reported failed tests as pass.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>