virt-libvirt: add configuration for virsh suspend

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: add test module for virsh suspend.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: some fixes to virsh suspend test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tools/check_patch.py: Speed and memory usage improvements

Turns out we had a bug in the code that verified whether
a file was tracked by git. With the bug fixed, a lot less
files will be scanned. Moreover, expand the list of
blacklisted extensions and paths, making it faster to
check the tree, even if you have logs and a large
data dir in it.

Also, instead of creating multiple file checker
objects, that will be stored in memory, refactor
the existing one to process several files and
use it. This greatly saves memory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: repair problem with undefined cpu_model

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility for forbid preprocess_env for multihost mig.

Useful for multihost migration when VM is already started.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds multihost cdrom tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Repair comment aexpect.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility to choose different data directory from params.

param:
  images_base_dir = "new path"

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds migration tests with restart NFS, iSCSI server.

iSCSI test supports only tgtd implementation. But there is prepared
interface for adding other type of iSCSI server.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds file which contain patterns which should be excluded.

Adds file which contain patterns which should be excluded
from tar package distributed to clients from the server.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
tests.cpu_hotplug: Fix a bracket typo

int(params.get(...), $int) should be probably default value of ...
=> int(params.get(..., $int))

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.utils_misc: Add log_last_traceback function

This is a copy of function from autotest.client.shared.base_utils.
Keep it here for few weeks in order to allow users with old autotest
run the current virttest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Log the original traceback when VM.create() fails

When self.make_create_command() raises an exception in VM.create()
it's catched and reraised. The problem is that the information about
actual failed line is lost. This patch logs the original traceback
and raise VMStartError instead.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu: unittest: Actually share unittest.cfg

Despite what I said in ff75623b17a4c690ed7b098d74149b8a642066b1,
we weren't actually shared qemu/tests/cfg/unittest.cfg. Fix it.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
virttest/gluster.py: to add the library for glusterfs support

Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
virttest/storage.py: to add the image file for glusterfs support

Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
qemu/cfg/tests.cfg: to add flag to enable the glusterfs support

Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
bootstrap: Only override base cfg files if they are git tracked

When bootstrap is run once, all files are updated
properly. However, as it runs on subsequent times,
modifications in the base cfg file will be ignored,
since the files were already populated. So, add the
additional criteria that the base cfg files can only
be overriden if the test specific file is git tracked.

This way, */update_config.py will always produce the
desired effect (actually replacing the local test
cfg files with the new, modified files).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
update_config.py: Add a verbose mode

Useful to see details of the config update process.

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