Fedora 18: remove sg3_utils package from kickstart file

As it's not present in the DVD image.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Guest support: add Fedora 19 asset file

Pointing to the latest and greatest, newly released Fedora.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Guest support: add Fedora 19 kickstart file

It is basically a copy of the Fedora 18 file, with the only exception
the development-libs package group does not exist on Fedora 19.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Guest support: add Fedora 19 x86_64, i386 and ppc64 configuration

This was tested with guest installs on x86_64 and i386. Test on
real ppc64 hardware still pending.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
qemu.qemu_vm: spice related bug fix

This patch fix several spice related script issue.

1.
19:20:54 ERROR| Original Traceback (most recent call last):
  File "/usr/code/autotest/client/tests/virt/virttest/qemu_vm.py", line 2240, in create
    self.devices = self.make_create_command()
  File "/usr/code/autotest/client/tests/virt/virttest/qemu_vm.py", line 1916, in make_create_command
    cmd += add_spice()
  File "/usr/code/autotest/client/tests/virt/virttest/qemu_vm.py", line 1034, in add_spice
    if (not os.path.exists(prefix) and
  File "/usr/lib64/python2.6/genericpath.py", line 18, in exists
    st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

2.
Traceback (most recent call last):
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 426, in _exec
    _call_test_function(self.execute, *p_args, **p_dargs)
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 853, in _call_test_function
    raise error.UnhandledTestFail(e)
UnhandledTestFail: Unhandled KeyError: 'spice_port'    [context: migrating 'virt-tests-vm1']
Traceback (most recent call last):
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 846, in _call_test_function
    return func(*args, **dargs)
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 299, in execute
    postprocess_profiled_run, args, dargs)
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 216, in _call_run_once
    *args, **dargs)
  File "/root/ypu/autotest_upstream_master/client/shared/test.py", line 322, in run_once_profiling
    self.run_once(*args, **dargs)
  File "/root/ypu/autotest_upstream_master/client/tests/virt/virt.py", line 133, in run_once
    run_func(self, params, env)
  File "/root/ypu/autotest_upstream_master/client/tests/virt/qemu/tests/timedrift_with_migration.py", line 59, in run_timedrift_with_migration
    vm.migrate()
  File "/root/ypu/autotest_upstream_master/client/shared/error.py", line 138, in new_fn
    return fn(*args, **kwargs)
  File "/root/ypu/autotest_upstream_master/client/tests/virt/virttest/qemu_vm.py", line 3149, in migrate
    dest_port = clone.spice_options['spice_port']
KeyError: 'spice_port'

3.
simple the way to send spice related human/qmp monitor in vm.migrate().

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virsh: Fix typo

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: enhancement of class utils_libguestfs.LibguestfsBase.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_libguestfs: Add guestfish about classes.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Add a sample test about guestfish.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_libguestfs: Replace dictionary args.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest: Add unittest for utils_libguestfs module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_libguestfs: Fix GuestfishSession constructor

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.env_process: Update iscsi setup related code

As iscsi setup need update the params to get the right image_name
move it from image pre/post function to preprocess/postprocess.
And update the params for the whole tests.
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.env_process : add pci msi on/off support in autotest

Using this patch you can enable or disable pci msi by modify the
guest disk directly before test start.
if you want to disable (pci=nomsi) pci msi before test, just set:
    pci_msi_sensitive = yes
    disable_pci_msi = yes
in tests.cfg.

Install python-libguestfs before using this patch.

chang_log:
    V2 from V1:
        using python guestfs lib.
    V3 from v2:
        remove the env setting, make case more independent
        modify the default configure

Yunping Zheng <yunzheng@redhat.com>
add commas of qemu cpu flags in cfg, not qemu_vm(issue 604)

otherwise would generate qemu cmd like -cpu SandyBridge,,+sep
This fix is for https://github.com/autotest/virt-test/issues/604

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
utils_cgroup: Fix the remaining imports

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.env_process: Process all images at once

Previously each image check paused and unpaused the VM. With this
patch it pause vm, checks all images and unpause again (if required).

Additionally this processes the all remaining images in case of
failure thus image check failure won't prevent other images to be
checked/deleted (in postprocess).

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.env_process: Avoid autotest hang in postprocess

When process fails in postprocess, screendump thread is not killed
and autotest hangs forever.

Additionally continue with postprocess when some part fails and reraise
the exception at the end.

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