Re: 答复: I'm now looking into kvm-unit-tests and encounted with some problems.

2015-09-08 Thread Lucas Meneghel Rodrigues
pci-testdev -kernel x86/emulator.flat -vnc none logs: FAIL: mov null, %ss Lucas Meneghel Rodrigues also reproduced this, it seems to be processor dependent. I haven't debugged it yet because it doesn't reproduce on the two systems I've tested on (Ivy Bridge i7 and Haswell Xeon E5). Can you

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-23 Thread Lucas Meneghel Rodrigues
On 23/05/13 05:50 AM, Michael S. Tsirkin wrote: Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication,

Re: [PATCH kvm-unittests v2 1/4] Add run_tests.sh

2013-04-12 Thread Lucas Meneghel Rodrigues
On Fri, 2013-04-12 at 13:27 +0200, Kevin Wolf wrote: This adds a convenient way to run all tests without having to set up Autotest. Signed-off-by: Kevin Wolf kw...@redhat.com --- run_tests.sh | 123 ++ x86-run | 9 +++-

Re: [PATCH] kvm-unit-test: more documentation and runner script

2013-02-28 Thread Lucas Meneghel Rodrigues
Meneghel Rodrigues wrote: On 02/27/2013 05:44 PM, Michael S. Tsirkin wrote: +Using qemu (supported since qemu 1.3): +qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/msr.flat I think it is worth here to point out

Re: [PATCH] kvm-unit-test: more documentation and runner script

2013-02-27 Thread Lucas Meneghel Rodrigues
On 02/27/2013 12:55 PM, Michael S. Tsirkin wrote: Add documentation about using qemu-system for unit tests. Add runner script to select the correct binary and flags. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- README | 10 +- x86-run | 27 +++ 2

Re: [PATCH] kvm-unit-test: more documentation and runner script

2013-02-27 Thread Lucas Meneghel Rodrigues
On 02/27/2013 05:44 PM, Michael S. Tsirkin wrote: +Using qemu (supported since qemu 1.3): +qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/msr.flat I think it is worth here to point out that with new qemu, after the

Re: [PATCH kvm-unit-test] get memory size from fwcfg

2013-02-11 Thread Lucas Meneghel Rodrigues
devices. This change seems backwards compatible, since instead of using port 0xd1 we're getting RAM size from the firmware, which should work for both cases. Given all that, this patch looks good to me. ACK. Reviewed-by: Lucas Meneghel Rodrigues l...@redhat.com Signed-off-by: Gleb Natapov g

Re: [PATCH] virt: Repairs Migration_multi_host_fd test Pylint correction.

2012-10-11 Thread Lucas Meneghel Rodrigues
On 10/11/2012 09:30 AM, Jiří Župka wrote: Pylint correction makes migration_multi_host_fd test dysfunctional. Ops, I'm sorry about that, applied! pull-request: https://github.com/autotest/virt-test/pull/55 Signed-off-by: Jiří Župka jzu...@redhat.com ---

Re: qemu-kvm: remove boot=on|off drive parameter compatibility

2012-10-04 Thread Lucas Meneghel Rodrigues
On 10/04/2012 07:48 AM, Jan Kiszka wrote: On 2012-10-03 15:19, Paolo Bonzini wrote: Il 03/10/2012 12:57, Lucas Meneghel Rodrigues ha scritto: Yep, I did send patches with the testdev device present on qemu-kvm.git to qemu.git a while ago, but there were many comments on the review, I ended up

Re: qemu-kvm: remove boot=on|off drive parameter compatibility

2012-10-04 Thread Lucas Meneghel Rodrigues
On 10/04/2012 09:27 AM, Jan Kiszka wrote: On 2012-10-04 14:10, Lucas Meneghel Rodrigues wrote: On 10/04/2012 07:48 AM, Jan Kiszka wrote: On 2012-10-03 15:19, Paolo Bonzini wrote: Il 03/10/2012 12:57, Lucas Meneghel Rodrigues ha scritto: Yep, I did send patches with the testdev device present

Re: [Qemu-devel] qemu-kvm: remove boot=on|off drive parameter compatibility

2012-10-03 Thread Lucas Meneghel Rodrigues
On 10/03/2012 06:55 AM, Gleb Natapov wrote: On Mon, Oct 01, 2012 at 03:26:05PM +0200, Jan Kiszka wrote: On 2012-10-01 15:19, Anthony Liguori wrote: Jan Kiszka jan.kis...@siemens.com writes: On 2012-10-01 11:31, Marcelo Tosatti wrote: It's not just about default configs. We need to validate

[PATCH] hw: Add test device for unittests execution

2012-10-03 Thread Lucas Meneghel Rodrigues
of the thread, and had guidance from Paolo about which ports to remove from the test device. CC: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Lucas Meneghel

Re: [PATCH] hw: Add test device for unittests execution

2012-10-03 Thread Lucas Meneghel Rodrigues
On 10/04/2012 12:49 AM, Lucas Meneghel Rodrigues wrote: Add a test device which supports the kvmctl ioports, so one can run the KVM unittest suite [1]. Usage: qemu -device testdev 1) Removed port 0xf1, since now kvm-unit-tests use serial 2) Removed exit code port 0xf4, since that can

Re: qemu.git/qemu-kvm.git bugs during migrate + reboot

2012-09-25 Thread Lucas Meneghel Rodrigues
On 09/25/2012 09:59 AM, Anthony Liguori wrote: Lucas Meneghel Rodrigues l...@redhat.com writes: Hi guys, We're seeing the following problem during upstream testing: qemu: VQ 0 size 0x80 Guest index 0x2d6 inconsistent with Host index 0x18: delta 0x2be qemu: warning: error while

qemu.git/qemu-kvm.git bugs during migrate + reboot

2012-09-20 Thread Lucas Meneghel Rodrigues
Hi guys, We're seeing the following problem during upstream testing: qemu: VQ 0 size 0x80 Guest index 0x2d6 inconsistent with Host index 0x18: delta 0x2be qemu: warning: error while loading state for instance 0x0 of device ':00:04.0/virtio-blk' load of migration failed

Re: Biweekly upstream qemu-kvm test report (using autotest) - Week 35

2012-08-30 Thread Lucas Meneghel Rodrigues
On Thu, Aug 30, 2012 at 8:37 AM, santwana santw...@linux.vnet.ibm.com wrote: Hi All, Please find the results of upstream testing. We are evaluating the failures and will be raising the issues with the appropriate community. Environment: Host Kernel: 3.5.0-rc6 KVM Version: 1.1.90 Date:

[PATCH] virt.kvm_monitor: Future proof migration handling on QMP monitor

2012-08-22 Thread Lucas Meneghel Rodrigues
...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/virt/kvm_monitor.py b/client/virt/kvm_monitor.py index 9d8ed87..932725b 100644 --- a/client/virt/kvm_monitor.py +++ b/client

[PATCH] virt.netperf: Use ssh_key lib rather than off limits server lib

2012-08-22 Thread Lucas Meneghel Rodrigues
to get ssh key setup) to use the ssh_key module, recently split out due to a similar mistake made by test authors. CC: Amos Kong ak...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/netperf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

[PATCH] virt.kvm: Handle migrate errors using QMP monitor properly

2012-08-21 Thread Lucas Meneghel Rodrigues
Zhou qz...@redhat.com CC: Gerd Hoffmann kra...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_monitor.py | 8 +++- client/virt/kvm_vm.py | 10 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/client/virt/kvm_monitor.py b

[PATCH] virt.kvm_vm: Autodetect whenever bootindex should be used

2012-08-21 Thread Lucas Meneghel Rodrigues
Also, avoid checking twice and use the result when to add boot=on/off to the command line. Signed-off-by: Gerd Hoffmann kra...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_vm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH] virt: Add Fedora 17 to the list of guests

2012-05-30 Thread Lucas Meneghel Rodrigues
Also, make it the default guest for KVM autotest. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests.cfg.sample | 18 - client/tests/libvirt/tests.cfg.sample | 21 ++-- client/virt/guest-os.cfg.sample | 28

Re: [Autotest] [PATCH] KVM test: use new functions in cdrom_test

2012-05-30 Thread Lucas Meneghel Rodrigues
By the way, looks good, applied to next. On Wed, May 30, 2012 at 11:51 AM, Lukáš Doktor ldok...@redhat.com wrote: I forgot add pull request link: https://github.com/autotest/autotest/pull/368 Dne 30.5.2012 16:43, Lukáš Doktor napsal(a): Use get_block and other framework functions in cdrom

Re: KVM test: Cdrom test

2012-05-26 Thread Lucas Meneghel Rodrigues
On Sat, 2012-05-26 at 09:59 +0200, Lukáš Doktor wrote: Hello guys, this is a repaired version of cdrom_test, the problems were mainly device names and symlinks. As a bonus it fixes bugs in virtio_scsi and usb_cdrom cdrom device definition in qemu_cmd. tested on F16 using ide,

[PATCH] kvm-unit-tests - unittests.cfg: Make extra_params specification uniform

2012-05-14 Thread Lucas Meneghel Rodrigues
Currently, extra_params is using : rather than = on unittests.cfg. Let's fix this and make all configuration assignments uniform on that file. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- x86/unittests.cfg |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86

[PATCH] vmexit: Update unittests.cfg with list of vmexit subtests

2012-05-14 Thread Lucas Meneghel Rodrigues
. I've found problems with qemu-kvm compiled from master HEAD, but it's not related to this patch, as all other unittests are failing (currently under investigation). Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- x86/unittests.cfg | 32 +++- 1 file

[PATCH 0/2] virt: Miscelaneous fixes

2012-05-14 Thread Lucas Meneghel Rodrigues
Here are some fixes found while working on kvm unittests and the multi_disk changes by Lukas. Lucas Meneghel Rodrigues (2): virt.kvm_installer: Don't fail a test if virtfs_proxy is not defined virt.virt_env_process: Reorganize screendump thread termination client/virt/kvm_installer.py

[PATCH 1/2] virt.kvm_installer: Don't fail a test if virtfs_proxy is not defined

2012-05-14 Thread Lucas Meneghel Rodrigues
This userspace program is not shipped on a regular qemu source code checkout, so its absence doesn't need to fail a test. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_installer.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/virt

[PATCH 2/2] virt.virt_env_process: Reorganize screendump thread termination

2012-05-14 Thread Lucas Meneghel Rodrigues
_screendump_thread_termination_event.wait(delay) AttributeError: 'NoneType' object has no attribute 'wait' Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/virt_env_process.py | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/virt/virt_env_process.py b

[PATCH 0/3] virt: Assorted bugfixes

2012-04-26 Thread Lucas Meneghel Rodrigues
Fixes for a bunch of bugs I've noticed on our internal test farm. Lucas Meneghel Rodrigues (3): Fix wrong reference to image functions virt.qemu_io: Make QemuIO inherit from object kvm.tests.qemu_io_blkdebug: Fix up use of python 2.4 construct client/tests/kvm/tests/enospc.py

[PATCH 1/3] Fix wrong reference to image functions

2012-04-26 Thread Lucas Meneghel Rodrigues
Now that they were moved to virt_utils. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/enospc.py |2 +- client/tests/kvm/tests/pci_hotplug.py |4 ++-- client/tests/kvm/tests/physical_resources_check.py |4 ++-- client

[PATCH 2/3] virt.qemu_io: Make QemuIO inherit from object

2012-04-26 Thread Lucas Meneghel Rodrigues
Constructs like MyClass(): Without explicit inheritance are not allowed on py 2.4. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/qemu_io.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/virt/qemu_io.py b/client/virt/qemu_io.py index

[PATCH 3/3] kvm.tests.qemu_io_blkdebug: Fix up use of python 2.4 construct

2012-04-26 Thread Lucas Meneghel Rodrigues
Replace it with a larger, more boring, but nevertheless, working python 2.4 implementation. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/qemu_io_blkdebug.py |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm

Re: Biweekly upstream qemu-kvm test report (using autotest) - Week 16

2012-04-19 Thread Lucas Meneghel Rodrigues
On Thu, 2012-04-19 at 14:59 +0530, Prem Karat wrote: Folks, This is a test report on upstream qemu-kvm testing (24853eece248d4a58d705c). Tests were executed using latest autotest git (6a15572d5307fa0b). This time we have tested 3 guests. We are analysing the test results further to

Re: [Autotest] Migration through file descriptor

2012-04-19 Thread Lucas Meneghel Rodrigues
Applied, thanks! On Thu, Apr 19, 2012 at 1:27 PM, Jiří Župka jzu...@redhat.com wrote: This patch series adds 1) support for migration over fd. 2) Add multihost migration test over fd. pull-request: https://github.com/autotest/autotest/pull/312

[PATCH] virt: trans_hugepage_swapping: Fix test to use current APIs

2012-04-18 Thread Lucas Meneghel Rodrigues
Test was using a reference to an old API that no longer exists in virt_utils. Instead, let's use the current methods to grab a VM class (methods of the env object). Also, use up to date methods to get an ssh session to the vm. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client

[PATCH] virt: RHEL-6-series.ks - Add coreutils and usbutils

2012-04-12 Thread Lucas Meneghel Rodrigues
Those packages are needed for some of the new tests added to the kvm test set. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/unattended/RHEL-6-series.ks |2 ++ 1 file changed, 2 insertions(+) diff --git a/client/virt/unattended/RHEL-6-series.ks b/client/virt

[PATCH] virt.tests.netstress_kill_guest: Workaround udev writing to serial

2012-03-07 Thread Lucas Meneghel Rodrigues
these situations. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/netstress_kill_guest.py | 22 +- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/client/virt/tests/netstress_kill_guest.py b/client/virt/tests

[PATCH] virt.tests.ethtool: Improving logging and fixing loop execution

2012-03-07 Thread Lucas Meneghel Rodrigues
Make sure we go through all tests available and record the failures. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/ethtool.py | 101 ++ 1 files changed, 63 insertions(+), 38 deletions(-) diff --git a/client/virt/tests

Re: [KVM-AUTOTEST] [KVM-autotest] Cgroup-kvm rework

2012-02-28 Thread Lucas Meneghel Rodrigues
On 02/27/2012 03:42 PM, Lukas Doktor wrote: Hi, This is a complete rework of cgroup test from subtests to singe-test-execution. It improves stability of testing and allows better test customisation. The speed is similar/faster in single variant execution and a bit slower in all-variants

[PATCH] virt: Fix migration bg command

2012-02-14 Thread Lucas Meneghel Rodrigues
In migration tests, the command we were using as a 'watchdog' command was tcpdump, but without specifying which interface it should listen to. As this may fail depending on the interface ordering, let's change the command to listen in all interfaces, since this way it's safer and the command won't

[PATCH] virt: Fix libvirt vm incompatibility with RHEL 5

2012-01-18 Thread Lucas Meneghel Rodrigues
There's no vnclisten param in the virt-install command shipped in RHEL 5, so let's add it to the command line only if does support this option. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/libvirt_vm.py |5 - 1 files changed, 4 insertions(+), 1 deletions

Re: [PATCH] libvirt_vm.py: Set ignore_status to False in virsh_cmd().

2012-01-12 Thread Lucas Meneghel Rodrigues
On 01/11/2012 05:06 AM, tangchen wrote: utils.run()'s parameter ignore_status is set to True in virsh_cmd(). In this case we are not able to know whether the command succeeds. This patch sets it to False, and utils.run() will throw an exception when command fails. Problem with this is that

[PATCH] virt: Fix issue #90 - MonitorSocketError installing SLES

2012-01-12 Thread Lucas Meneghel Rodrigues
Sometimes, before a KVM VM shuts down cleanly, a Monitor connection reset error might happen, even though it's not a fatal condition for the test. So, let's handle better MonitorErrors happening during the unattended install loop. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com

[PATCH] virt.tests: Fix issue #18 - set_link

2012-01-12 Thread Lucas Meneghel Rodrigues
With the recent introduction of an improved set_link interface (see 4ada095f8bd3a3435d6f51db0b4164c7d1122070 and a9ef23f9ed66ca5892f8a3c784b33093d6b5ced4), update the set_link test with it and resolve issue #18. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests

Re: [Autotest PATCH v2 0/4] Network performance regression

2012-01-06 Thread Lucas Meneghel Rodrigues
On 01/05/2012 01:05 AM, Amos Kong wrote: This patchset adds a new network perf testcase for Windows, refactors old netperf test, and support numa resource control. Process the raw results to a 'standard format' at the end of test, then we can analyze them with general module, compute average and

Re: [Autotest] [PATCH] virt: Add the parameter --vnclisten to the virt-install command

2012-01-03 Thread Lucas Meneghel Rodrigues
On 01/02/2012 11:50 PM, tangchen wrote: Hi~ Here is the problem:) Without vnclisten, guest is still accessable from localhost by vnc. But we cannot access guest from other host. And most of the time, we do the test on remote host, and in this situation, vnclisten is very useful.:) Ok, fair

Re: [Autotest] [PATCH] virt: Add the parameter --vnclisten to the virt-install command

2011-12-30 Thread Lucas Meneghel Rodrigues
On 12/30/2011 03:26 AM, tangchen wrote: Hi, My colleague happened to find that when installing a Guest, we cannot access to it by VNC because of the missing parameter --vnclisten=0.0.0.0 in virt-install. Here is the patch, please comment! :) Strange, I can access the guests using VNC just

[PATCH 0/5] virt: Config file unification

2011-12-29 Thread Lucas Meneghel Rodrigues
Make kvm and libvirt test configs mostly shared, so it's easy to maintain those config files. Chris Evich (5): virt: Adding common config among libvirt and kvm tests virt: Remove sample config from kvm and libvirt folders virt: Move vm_type into separate tests.cfg.sample virt: libvirt_vm:

[PATCH 3/5] virt: Move vm_type into separate tests.cfg.sample

2011-12-29 Thread Lucas Meneghel Rodrigues
Moved vm_type setting into seperate tests.cfg.sample so that base.cfg.sample can be shared between virt test types. Signed-off-by: Chris Evich cev...@redhat.com --- client/tests/kvm/tests.cfg.sample |5 + client/tests/libvirt/tests.cfg.sample |5 + client/virt/base.cfg.sample

[PATCH 4/5] virt: libvirt_vm: Avoid re-copying kernel and initrd on install

2011-12-29 Thread Lucas Meneghel Rodrigues
Added simple workaround for virt-install's insistence on re-copying kernel and initrd files from a specific directory layout. Added a note that this code should be cleaned up if/when corresponding part of unattended_install test is cleaned. Signed-off-by: Chris Evich cev...@redhat.com ---

[PATCH 5/5] virt: Fixup extra_params usage and config

2011-12-29 Thread Lucas Meneghel Rodrigues
Created a special category, 'kernel_params', for options passed to the kernel which we are booting, such as the installer kernels. With this patch we don't mess up with the other uses of extra_params still keeping consistency between libvirt and kvm tests. Signe-off-by: Lucas Meneghel Rodrigues l

Re: [PATCH] virt-test: support static ip address in framework

2011-12-20 Thread Lucas Meneghel Rodrigues
On 12/19/2011 11:11 AM, Amos Kong wrote: Sometime, we need to test with guest(s) which have static ip address(es). eg. No real/emulated DHCP server in test environment. eg. Test with old image we don't want to change the net config. eg. Test when DHCP exists problem. Ok Amos, looks reasonable.

Re: [PATCH][Autotest] Autotest: Add subtest inteface to client utils.

2011-12-20 Thread Lucas Meneghel Rodrigues
On 12/09/2011 10:50 AM, Jiří Župka wrote: This class and some decorators are for easy way of start function like a subtest. Subtests result are collected and it is posible for review on end of test. Subtest class and decorators should be placed in autotest_lib.client.utils. There is

[PATCH] virt.kvm_installer: Fix typo

2011-12-13 Thread Lucas Meneghel Rodrigues
Introduced with commit eda2ffce5c2ec514f404719010106bad1400d2bb. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_installer.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/kvm_installer.py b/client/virt/kvm_installer.py index

[PATCH] virt-test: Add a class NumaNode v2

2011-12-08 Thread Lucas Meneghel Rodrigues
Kong ak...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/base.cfg.sample |6 ++- client/virt/kvm_vm.py |8 +++ client/virt/virt_utils.py | 80 + client/virt/virt_utils_unittest.py | 112

[PATCH 1/2] virt test: Simplifying address cache messages and exceptions

2011-12-02 Thread Lucas Meneghel Rodrigues
easily understood by people not too familiar with the internals of autotest. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/virt_env_process.py |2 +- client/virt/virt_vm.py |8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client

[PATCH 2/2] Virt: virt_utils - Reducing verbosity of the remote login code

2011-12-02 Thread Lucas Meneghel Rodrigues
Make the remote login code only print messages if a debug flag is turned on. This way we can get rid of many lines that may clutter debug logs that are only really needed in special occasions. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/virt_utils.py | 22

[PATCH] KVM test: Check guest for kernel crashes during migration

2011-12-02 Thread Lucas Meneghel Rodrigues
-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_vm.py |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index 215687c..6747c2b 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -1451,6 +1451,8

[PATCH 0/2] qemu-io tests: More fine grained control of qemu paths

2011-12-01 Thread Lucas Meneghel Rodrigues
variables is very convenient and minimally intrusive. So, make it possible to set qemu paths through env variables, and also, print the paths of the qemu versions being tested, for clarity sake. Lucas Meneghel Rodrigues (2): check: print relevant path information common.config: Allow use of arbitrary

[PATCH 1/2] check: print relevant path information

2011-12-01 Thread Lucas Meneghel Rodrigues
Print the paths of the programs under test (qemu, qemu-img and qemu-io). Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- check |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/check b/check index 84ef3e5..8499a04 100755 --- a/check +++ b/check @@ -158,6

[PATCH 2/2] common.config: Allow use of arbitrary qemu* paths

2011-12-01 Thread Lucas Meneghel Rodrigues
to script execution, normal detection mechanism takes place. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- common.config | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common.config b/common.config index d5a72af..d07f435 100644 --- a/common.config +++ b

[PATCH 0/2] Suport for qemu-iotests from inside KVM autotest

2011-12-01 Thread Lucas Meneghel Rodrigues
testing a set of paths [qemu, qemu-img and qemu-io], implement a qemu-iotests that fetch the latest testsuite from git and run the available tests, with the appropriate qemu paths. Lucas Meneghel Rodrigues (2): KVM test: Make tests aware of the qemu-io path KVM test: Introduce qemu_iotests

[PATCH 1/2] KVM test: Make tests aware of the qemu-io path

2011-12-01 Thread Lucas Meneghel Rodrigues
As it is important for qemu-iotests that this particular program is used. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/base.cfg.sample |1 + client/tests/kvm/tests.cfg.sample |4 client/virt/kvm_installer.py | 24 3

[PATCH 2/2] KVM test: Introduce qemu_iotests for the KVM test

2011-12-01 Thread Lucas Meneghel Rodrigues
, with this approach it is easier to specify to the test suite which paths we want to get tested, which are under kvm autotest's control. This patch actually depends on a couple of patches sent to the qemu_iotest upstream maintainers. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com

[PATCH 1/4] KVM test: Avoid race condition on boot_savevm

2011-11-30 Thread Lucas Meneghel Rodrigues
this variable as the criteria for PASS/FAIL. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/boot_savevm.py |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/tests/boot_savevm.py b/client/tests/kvm/tests/boot_savevm.py

[PATCH 2/4] KVM test: boot_savevm: Add more debug and kernel panic detection

2011-11-30 Thread Lucas Meneghel Rodrigues
Print total time elapsed and number of save/load VM cycles performed during the test. Also, verify whether a kernel panic happened during the test execution. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/boot_savevm.py | 23 +-- 1 files

[PATCH 3/4] KVM test: subtests.cfg.sample: Decrease boot_savevm login timeout

2011-11-30 Thread Lucas Meneghel Rodrigues
This way we'll have much more stress by doing more save/load cycles during boot time. We did see some disk corruption problems using this value, but the condition is not 100% reproducible. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/subtests.cfg.sample |2

[PATCH 4/4] Virt: screendump thread - handle IOErrors on PPM conversion

2011-11-30 Thread Lucas Meneghel Rodrigues
Under some conditions, monitor screendumps can get truncated, generating IOError exceptions during PIL conversion. So handle those errors and log a warning rather than failing the entire screendump thread. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt

[PATCH] Virt Test: Add a new test nfs_corrupt v2

2011-11-29 Thread Lucas Meneghel Rodrigues
test works with Fedora 16 hosts, since nfs service name has changed on those hosts. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com Signed-off-by: Qingtang Zhou qz...@redhat.com --- client/tests/kvm/subtests.cfg.sample | 17 +++ client/virt/tests

Guest floppy regression hits qemu-kvm, qemu is not affected

2011-11-18 Thread Lucas Meneghel Rodrigues
Hi guys, Today during the last 'sanity' qemu-kvm testing, we've noticed a recurring problem: guest OS does not see the floppy, making the windows installs time out. This problem has been extensively discussed on qemu and qemu is fine here, problem is specific with qemu-kvm.

[PATCH] KVM test: Remove monotonic_time.tsc from the list of tests

2011-11-17 Thread Lucas Meneghel Rodrigues
The TSC is unstable on guests, hence there's no guarantee that this test will pass, it may pass or fail. Therefore, let's just remove it from the config. CC: Avi Kivity a...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- .../virt/autotest_control/monotonic_time.control

[PATCH 0/4] virt tests: Improvements to trans_hugepage subtest

2011-11-17 Thread Lucas Meneghel Rodrigues
Miscelaneous code cleanups and better logging for the operations executed during THP test setup. Lucas Meneghel Rodrigues (4): client.virt.tests: trans_hugepage.swapping: cleanups + move common area client.virt.tests: trans_hugepage.defrag - cleanups + move common area

[PATCH 1/4] client.virt.tests: trans_hugepage.swapping: cleanups + move common area

2011-11-17 Thread Lucas Meneghel Rodrigues
1) Remove unused imports 2) Change mistaken raise statement 3) Move it to the common test area Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/trans_hugepage_swapping.py | 115 - client/virt/tests/trans_hugepage_swapping.py | 113

[PATCH 3/4] client.virt.tests: trans_hugepage.base - cleanups + move common area

2011-11-17 Thread Lucas Meneghel Rodrigues
1) Removed unused imports 2) Removed unused variables 3) Moved to the common area Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/trans_hugepage.py | 127 -- client/virt/tests/trans_hugepage.py | 127

[PATCH 4/4] virt.virt_test_setup: Improve logging of the THP test setup

2011-11-17 Thread Lucas Meneghel Rodrigues
Make the utils.run(pgrep khugepaged) silent, also, print info on what are the config values for THP and what are the tests executed with khugepaged. This gives a much better idea of what is going on with the test. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt

[PATCH 2/4] client.virt.tests: trans_hugepage.defrag - cleanups + move common area

2011-11-17 Thread Lucas Meneghel Rodrigues
1) Removed unused imports 2) Trimmed down error message 3) Moved to the common area Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/trans_hugepage_defrag.py | 86 --- client/virt/tests/trans_hugepage_defrag.py | 86

[PATCH] Virt: Add Fedora 16 to the list of guests

2011-11-10 Thread Lucas Meneghel Rodrigues
Also, make it the default for virt tests. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/guest-os.cfg.sample | 27 +++ client/tests/kvm/tests.cfg.sample| 10 client/virt/unattended/Fedora-16.ks | 39

qemu and qemu.git - Migration + disk stress introduces qcow2 corruptions

2011-11-09 Thread Lucas Meneghel Rodrigues
Hi guys, here I am, reporting yet another issue with qemu. This time, it's something that was first reported in January, and Juan proposed a patch for it: http://comments.gmane.org/gmane.comp.emulators.qemu/89009 [PATCH 4/5] Reopen files after migration The symptom is, when running disk

Re: qemu and qemu.git - Migration + disk stress introduces qcow2 corruptions

2011-11-09 Thread Lucas Meneghel Rodrigues
On 11/09/2011 05:25 PM, Juan Quintela wrote: Lucas Meneghel Rodriguesl...@redhat.com wrote: Hi guys, here I am, reporting yet another issue with qemu. This time, it's something that was first reported in January, and Juan proposed a patch for it:

[PATCH] common_lib.cartesian_config: Turn missing includes into fatal errors

2011-11-08 Thread Lucas Meneghel Rodrigues
There's no point in including a file not necessary on a cartesian config file, so it's more likely that the file missing is actually a harmful problem. So turn the missing file into a MissingIncludeError and throw it. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/common_lib

Re: [Qemu-devel] qemu-kvm crashes doing migration with disks + blkdebug files (does not happen with qemu)

2011-11-07 Thread Lucas Meneghel Rodrigues
On 11/07/2011 07:29 AM, Kevin Wolf wrote: Am 05.11.2011 03:16, schrieb Lucas Meneghel Rodrigues: Hi folks, qemu-kvm is segfaulting when executing migration with blkdebug files. 19:50:02 DEBUG| Git repo qemu_kvm uri: git://github.com/avikivity/qemu.git 19:50:02 DEBUG| Git repo qemu_kvm branch

[PATCH 0/5] Improve KVM autotest error reporting

2011-11-07 Thread Lucas Meneghel Rodrigues
thread to the main test thread. It was also sent as: https://github.com/autotest/autotest/pull/62 Lucas Meneghel Rodrigues (5): virt.kvm_vm: Introduce background error queue virt.virt_env_process: fail tests due to guest screen inactivity virt tests: Introduce inactivity watcher

[PATCH 1/5] virt.kvm_vm: Introduce background error queue

2011-11-07 Thread Lucas Meneghel Rodrigues
(in the beginning or end of each test loop, where operations such as migrations are executed). Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/virt_test.py | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/client/virt/virt_test.py b

[PATCH 2/5] virt.virt_env_process: fail tests due to guest screen inactivity

2011-11-07 Thread Lucas Meneghel Rodrigues
for inactivity treshold (30 min). Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/unattended_install.py |1 + client/virt/virt_env_process.py | 39 +++ 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/client/virt/tests

[PATCH 3/5] virt tests: Introduce inactivity watcher for unattended_install

2011-11-07 Thread Lucas Meneghel Rodrigues
With this patch, if the screen got inactive during unattended install for more than 30 minutes, an error will be thrown. For any other tests, we'll just log a debug message, since in other tests we do not expect to see much action going on the screen. Signed-off-by: Lucas Meneghel Rodrigues l

[PATCH 5/5] KVM test: Verify qemu process before throwing monitor exceptions

2011-11-07 Thread Lucas Meneghel Rodrigues
the QemuSegFaultError if the process crashed: 22:08:44 DEBUG| QemuSegFaultError: Qemu crashed: /bin/sh: line 1: 6847 Aborted (core dumped) This will make analyzing such failures much easier. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_monitor.py | 24

[PATCH 4/5] virt.kvm_vm: Introduce vm.verify_userspace_crash()

2011-11-07 Thread Lucas Meneghel Rodrigues
In order to capture any qemu crashes, introduce a method that scans qemu output and throws an error if a core dump condition is found. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/kvm_vm.py | 18 ++ client/virt/libvirt_vm.py

[1.0 release work] Fix regressions found on recent KVM autotest qemu master 'sanity' jobs

2011-11-04 Thread Lucas Meneghel Rodrigues
Hi guys, As we understand that qemu is approaching 1.0, we think it's a good idea to share the issues we have been seeing on recent qemu.git sanity jobs: 1) Some condition is consistently making a RHEL 6.1 linux guest not able to bring up the network interface, causing login failures for all

Re: [1.0 release work] Fix regressions found on recent KVM autotest qemu master 'sanity' jobs

2011-11-04 Thread Lucas Meneghel Rodrigues
On Fri 04 Nov 2011 02:50:53 PM BRST, Kevin Wolf wrote: Am 04.11.2011 17:40, schrieb Lucas Meneghel Rodrigues: 2) The floppy regression problem which was reported some days ago on this mailing list still happens, Kevin did post a patch that resolves it [...] But still wasn't integrated

Re: [Qemu-devel] [1.0 release work] Fix regressions found on recent KVM autotest qemu master 'sanity' jobs

2011-11-04 Thread Lucas Meneghel Rodrigues
On Fri 04 Nov 2011 02:56:30 PM BRST, Anthony Liguori wrote: On 11/04/2011 11:40 AM, Lucas Meneghel Rodrigues wrote: Hi guys, As we understand that qemu is approaching 1.0, we think it's a good idea to share the issues we have been seeing on recent qemu.git sanity jobs: 1) Some condition

Re: [Qemu-devel] [1.0 release work] Fix regressions found on recent KVM autotest qemu master 'sanity' jobs

2011-11-04 Thread Lucas Meneghel Rodrigues
On 11/04/2011 02:56 PM, Anthony Liguori wrote: On 11/04/2011 11:40 AM, Lucas Meneghel Rodrigues wrote: Hi guys, As we understand that qemu is approaching 1.0, we think it's a good idea to share the issues we have been seeing on recent qemu.git sanity jobs: 1) Some condition is consistently

[PATCH] virt: Encode a webm video from vm screenshots v2

2011-11-04 Thread Lucas Meneghel Rodrigues
. Feature successfuly tested under Fedora 16. Changes from v1: * Fixed some last minute changes on parameter name * Turns on the service by default * Downgrade failure messages to info level Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/base.cfg.sample |6

[PATCH 0/6] Misc bugfixes found after libvirt merge

2011-11-04 Thread Lucas Meneghel Rodrigues
Also, give it back the ability to debug Fedora and RHEL6 guest issues. Lucas Meneghel Rodrigues (6): KVM test: Adding Ubuntu 11.10 to the list of known guests virt: fix rebase problem - ffsb.control going to the right place virt: fixing softlockup test script location Separate command

[PATCH 1/6] KVM test: Adding Ubuntu 11.10 to the list of known guests

2011-11-04 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/guest-os.cfg.sample| 11 +++ client/virt/unattended/Ubuntu-11-10.preseed | 42 +++ 2 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 client/virt/unattended

[PATCH 2/6] virt: fix rebase problem - ffsb.control going to the right place

2011-11-04 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/autotest_control/ffsb.control | 16 client/virt/autotest_control/ffsb.control | 16 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 client/tests/kvm

[PATCH 3/6] virt: fixing softlockup test script location

2011-11-04 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/softlockup.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) mode change 100644 = 100755 client/tests/cgroup/cgroup.py diff --git a/client/tests/cgroup/cgroup.py b/client/tests/cgroup/cgroup.py old mode

[PATCH 4/6] Separate command execution of watchdog commands

2011-11-04 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/tests/watchdog.py |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/virt/tests/watchdog.py b/client/virt/tests/watchdog.py index 446f250..603685f 100644 --- a/client/virt/tests

[PATCH 5/6] virt: Fixing location of blkdebug files

2011-11-04 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/blkdebug/default.conf | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 client/virt/blkdebug/default.conf diff --git a/client/virt/blkdebug/default.conf b/client/virt/blkdebug

[PATCH 6/6] virt: Drop 'rhgb quiet' from kernel cmdline on Fedora and RHEL6 guests

2011-11-04 Thread Lucas Meneghel Rodrigues
. Successfully tested with Fedora 15 guest. CC: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/virt/unattended/Fedora-10.ks |1 + client/virt/unattended/Fedora-11.ks |1 + client/virt/unattended/Fedora-12.ks |1 + client/virt

qemu-kvm crashes doing migration with disks + blkdebug files (does not happen with qemu)

2011-11-04 Thread Lucas Meneghel Rodrigues
Hi folks, qemu-kvm is segfaulting when executing migration with blkdebug files. 19:50:02 DEBUG| Git repo qemu_kvm uri: git://github.com/avikivity/qemu.git 19:50:02 DEBUG| Git repo qemu_kvm branch: master 19:50:30 INFO | Commit hash for qemu_kvm is 7879db7e9c09b92d9af1c143fbe2cc212ec89e4b (no

  1   2   3   4   5   6   7   8   9   10   >