Re: [Autotest] [PATCH] KVM Test: Switch current working folder in unattended_install.py.

2011-05-22 Thread Feng Yang
= UnattendedInstallConfig(test, params) unattended_install_config.setup() changed to case result folder. So our unattended_install always fails at could not find ks.iso. Then I send this patch. I will recheck our local code and configure. Thanks very much! Feng Yang Signed-off-by: Feng Yangfy

Re: [Autotest] [PATCH] KVM Test: add -w parameter in nc command in kvm_utils.py

2010-10-27 Thread Feng Yang
- Lucas Meneghel Rodrigues l...@redhat.com wrote: From: Lucas Meneghel Rodrigues l...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Thursday, October 28, 2010 4:26:17 AM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re

Re: [KVM-AUTOTEST PATCH 4/5] KVM test: kvm_subprocess: rename get_command_status_output() and friends

2010-10-26 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: autot...@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish mgold...@redhat.com Sent: Wednesday, October 27, 2010 12:49:43 AM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject:

[PATCH] KVM Test: add -w parameter in nc command in kvm_utils.py

2010-10-20 Thread Feng Yang
this issue. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_utils.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index a51c857..526d38d 100644 --- a/client/tests/kvm/kvm_utils.py +++ b

Re: [PATCH] KVM Test: Set bootstatuspolicy to ignoreallfailures for Win2008 and r2 in autounattend.xml

2010-10-20 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Wednesday, October 20, 2010 4:49:29 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [PATCH

Re: [PATCH] KVM Test: add -w parameter in nc command in kvm_utils.py

2010-10-20 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Wednesday, October 20, 2010 5:11:32 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [PATCH

Re: [PATCH] KVM Test: add -w parameter in nc command in kvm_utils.py

2010-10-20 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Wednesday, October 20, 2010 6:48:42 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [PATCH

[PATCH] KVM Test: Set bootstatuspolicy to ignoreallfailures for Win2008 and r2 in autounattend.xml

2010-10-19 Thread Feng Yang
Windows 2008 image is easy to go to startup repair screen, which make many of our cases fail. This patch will disable startup repair screen in win2008 which caused by shutdown failures. Signed-off-by: Feng Yang fy...@redhat.com --- .../kvm/unattended/win2008-32-autounattend.xml | 10

[PATCH V2] KVM Test: Update cmd() help function in kvm_monitor.py to support parameters.

2010-07-23 Thread Feng Yang
following Human monitor command parameter order in command. 2. Still could not work on some special command. such as migrate [-d] . Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_monitor.py | 46 -- 1 files changed, 34 insertions

[PATCH 1/2] KVM Test: Update cmd() help function in kvm_monitor.py to support parameters.

2010-06-28 Thread Feng Yang
This function allow user send qmp command with parameters. e.g. balloon value=1073741824 Also log command to debug. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_monitor.py | 32 1 files changed, 24 insertions(+), 8 deletions(-) diff

Re: [Autotest] [PATCH 1/2] KVM Test: Update cmd() help function in kvm_monitor.py to support parameters.

2010-06-28 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Monday, June 28, 2010 5:18:29 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [Autotest

[PATCH] KVM Test: Fix invalid literal bug in ioquit

2010-06-21 Thread Feng Yang
Sometime check_cmd could not finish in setting time. Then o=, so int(o) will cause ValueError: invalid literal for int() with base 10: '' So change to check return status. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/ioquit.py |6 +++--- client/tests/kvm

Re: [PATCH] KVM Test: Fix invalid literal bug in ioquit

2010-06-21 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Monday, June 21, 2010 7:19:58 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [PATCH] KVM

[Autotest][PATCH] KVM Test: Support netdev parameter in make_qemu_command.

2010-06-09 Thread Feng Yang
If qemu support netdev parameter, It will be added to qemu command line by default. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_vm.py | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm

[Autotest][PATCH V2] KVM Test: Extend migration test to test unix, exec and migrate_cancel

2010-06-07 Thread Feng Yang
to dest VM. Note: for_migration parameter in create() in kvm_vm.py is useless now. Corresponding code have been deleted from create(). Keep this parameter in order to keep interface stability. It may be delete later. Please use extra_params for migration. Signed-off-by: Feng Yang fy...@redhat.com

[Autotest][PATCH] KVM Test: Remove qemu prompt from send_monitor_cmd return data.

2010-06-07 Thread Feng Yang
Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_vm.py |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 3943207..9f9f697 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py

[PATCH] KVM Test: Make login timeout configurable.

2010-05-27 Thread Feng Yang
/shutdown.py client/tests/kvm/tests/timedrift.py client/tests/kvm/tests/timedrift_with_migration.py client/tests/kvm/tests/timedrift_with_reboot.py client/tests/kvm/tests/vlan_tag.py client/tests/kvm/tests/yum_update.py Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/autoit.py

Re: [Autotest][PATCH] KVM Test: Extend migration test to test unix, exec and migrate_cancel

2010-05-26 Thread Feng Yang
Thanks for your comments!! Any comment is welcome. I will carefully consider all comments Thanks very much! Feng Yang - Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm

[Autotest][PATCH] KVM Test: Extend migration test to test unix, exec and migrate_cancel

2010-05-25 Thread Feng Yang
Update migrate() in kvm_test_utils.py to support unix, exec protocol and migration cancel test. Add four migration sub test. There are tcp, unix, exec and mig_cancel. migrate_cancel only work in tcp protocol. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_test_utils.py

[Autotest][PATCH V3] KVM Test: Add ioquit test case

2010-05-24 Thread Feng Yang
Emulate the powercut under IO workload(dd so far) using kill -9. Then check image in post command. This case want to make sure powercut under IO workload will not break qcow2 image. Now it only work on linux. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/ioquit.py

Re: [KVM-AUTOTEST PATCH] KVM test: use command line option wrapper functions

2010-05-20 Thread Feng Yang
- Lucas Meneghel Rodrigues l...@redhat.com wrote: From: Lucas Meneghel Rodrigues l...@redhat.com To: Michael Goldish mgold...@redhat.com Cc: Feng Yang fy...@redhat.com, autot...@test.kernel.org, kvm@vger.kernel.org Sent: Thursday, May 20, 2010 6:57:23 PM GMT +08:00 Beijing / Chongqing

Re: [KVM-AUTOTEST PATCH] KVM test: use command line option wrapper functions

2010-05-19 Thread Feng Yang
Hi, Michael Thanks for your patch. We plan add netdev parameter support in make_qemu_command. Since you are working on this part. Could you add netdev support in your patch? hopeful netdev can be default supported in make_qemu_command if qemu support it. Thanks very much! I think the point

Re: [Autotest] [PATCH] KVM Test: Make remote_scp() more robust.

2010-05-18 Thread Feng Yang
- Michael Goldish mgold...@redhat.com wrote: From: Michael Goldish mgold...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Monday, May 17, 2010 11:05:37 PM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re: [Autotest

[Autotest][PATCH V2] KVM Test: Add ioquit test case

2010-05-14 Thread Feng Yang
Emulate the powercut under IO workload(dd so far) using kill -9. Then check image in post command. This case want to make sure powercut under IO workload will not break qcow2 image. Now it only work on linux. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/ioquit.py

[Autotest][PATCH] KVM Test: Update qemu-ifup script to set bridge's forwarding delay to 0.

2010-05-10 Thread Feng Yang
Our pxe case always fail. The problem is that the bridge takes some time to enter the forwarding state. Before that, packages are simply dropped by the bridge. If one sets: $ brctl setfd bridge 0 # forward delay = 0 It works. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm

[Autotest][PATCH] KVM Test: Make remote_scp() more robust.

2010-05-07 Thread Feng Yang
to 600, it should be enough. 2. Add -v in scp command to catch more infomation. Also add Exit status and stalled match prompt in remote_scp(). Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_utils.py | 36 client/tests/kvm/kvm_vm.py

Re: [Autotest] [PATCH 3/3] KVM Test: Add ioquit test case

2010-05-06 Thread Feng Yang
Hi, Lucas Thanks for your comment. I am sorry for no response so long time. I will update it according to your comment. Also thanks Michael for his comment. - Lucas Meneghel Rodrigues l...@redhat.com wrote: From: Lucas Meneghel Rodrigues l...@redhat.com To: Feng Yang fy

Re: [Autotest] [PATCH] KVM Test: Fix bug that check_image.py will check removed image.

2010-04-14 Thread Feng Yang
- Lucas Meneghel Rodrigues l...@redhat.com wrote: From: Lucas Meneghel Rodrigues l...@redhat.com To: Feng Yang fy...@redhat.com Cc: autot...@test.kernel.org, kvm@vger.kernel.org Sent: Thursday, April 15, 2010 8:05:41 AM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi Subject: Re

[PATCH] KVM Test: Make sar profiler could work in python 2.4

2010-04-12 Thread Feng Yang
Popen.terminate() is new in python 2.6, which make sar profiler could not work in python older than 2.6. So replace Popen.terminate() with os.kill. Add a necessary space in sar command. Signed-off-by: Feng Yang fy...@redhat.com --- client/profilers/sar/sar.py | 10 ++ 1 files changed

[PATCH] KVM Test: Fix bug that check_image.py will check removed image.

2010-04-12 Thread Feng Yang
then remove the image? Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/scripts/check_image.py |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/scripts/check_image.py b/client/tests/kvm/scripts/check_image.py index 4056fb8..de163e7 100755

[PATCH 1/3] KVM Test: Add control file dbench.control.200 for dbench

2010-04-07 Thread Feng Yang
This control file set seconds to 200. It is used by ioquit script. Signed-off-by: Feng Yang fy...@redhat.com --- .../tests/kvm/autotest_control/dbench.control.200 | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm/autotest_control

[PATCH 2/3] KVM Test: Add function run_autotest_background and wait_autotest_background.

2010-04-07 Thread Feng Yang
Add function run_autotest_background and wait_autotest_background to kvm_test_utils.py. This two functions is used in ioquit test script. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/kvm_test_utils.py | 68 +++- 1 files changed, 67 insertions

[PATCH 3/3] KVM Test: Add ioquit test case

2010-04-07 Thread Feng Yang
Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/tests/ioquit.py | 54 client/tests/kvm/tests_base.cfg.sample |4 ++ 2 files changed, 58 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm/tests/ioquit.py diff --git

[PATCH] Update sar command and handle OSError error.

2010-03-29 Thread Feng Yang
traceback. Sometimes it tried to kill an already terminated process which can cause a traceback. Signed-off-by: Feng Yang fy...@redhat.com --- client/profilers/sar/sar.py |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/profilers/sar/sar.py b/client/profilers/sar

[PATCH] Correct wrong table name 'tko_test_view' in tko/frontend.py.

2010-03-22 Thread Feng Yang
Change tko_test_view to tko_test_view_2. autotest_web do not have tko_test_view table. Signed-off-by: Feng Yang fy...@redhat.com --- tko/frontend.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tko/frontend.py b/tko/frontend.py index 9033c20..0fd61f9 100644 --- a/tko

[PATCH] Change decimal_places from 31 to 2 in frontend/tko/models.py

2010-03-22 Thread Feng Yang
decimal_places must less-than-or-equal-to max_digits in 'numeric(max_digits, decimal_places)' in mysql syntax. max_digits is 12, so decimal_places must = 12. Set decimal_places to 2. Signed-off-by: Feng Yang fy...@redhat.com --- frontend/tko/models.py |2 +- 1 files changed, 1 insertions

[PATCH] KVM Test: Add check_image script as post_command script of qcow2 variant.

2010-02-24 Thread Feng Yang
Add check_image.py in scripts folder. It will performance qemu-img info and qemu-img check. Add check_image.py as post command of qcow2 variant. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/scripts/check_image.py | 96 +++ client/tests/kvm

Re: [Autotest] [PATCH] KVM Test: Add check_image script as post_command script of qcow2 variant.

2010-02-22 Thread Feng Yang
Hi Lucas Thanks for your comments! I am sorry for replying your email so late! A new patch will be sent out according to your comments. Best Regards Feng Yang - Lucas Meneghel Rodrigues l...@redhat.com wrote: From: Lucas Meneghel Rodrigues l...@redhat.com To: Feng Yang fy...@redhat.com

[Autotest][PATCH] KVM Test: Add check_image script as post_command script of qcow2 variant.-V2

2010-02-22 Thread Feng Yang
Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/scripts/check_image.py | 85 +++ client/tests/kvm/tests_base.cfg.sample |4 ++ 2 files changed, 89 insertions(+), 0 deletions(-) create mode 100755 client/tests/kvm/scripts/check_image.py diff

[PATCH] KVM Test: Add check_image script as post_command script of qcow2 variant.

2010-01-29 Thread Feng Yang
Add check_image.py in scripts folder. It will performance qemu-img info and qemu-img check. Add check_image.py as post command of qcow2 variant. Signed-off-by: Feng Yang fy...@redhat.com --- client/tests/kvm/scripts/check_image.py | 89 +++ client/tests/kvm

[Autotest][PATCH] Correct tko_kernels and tko_patches table name in tko/compose_query.cgi

2010-01-24 Thread Feng Yang
Table name in tko database have been changed. So update table name in tko/compose_query.cgi. This patch will fix error Table 'tko.kernels' doesn't exist: in 'Results database' page. Signed-off-by: Feng Yang fy...@redhat.com --- tko/compose_query.cgi |2 +- 1 files changed, 1 insertions(+), 1