Re: [libvirt] [sandbox][PATCH v2] Fix delete of running container

2013-08-08 Thread Wayne Sun
On 08/07/2013 09:34 PM, Daniel P. Berrange wrote: On Wed, Aug 07, 2013 at 09:24:14PM +0800, Wayne Sun wrote: Delete running container is not supprted and will report an error. Related to bug: https://bugzilla.redhat.com/show_bug.cgi?id=994495 Signed-off-by: Wayne Sun g...@redhat.com --- bin

[libvirt] [sandbox][PATCH v3] Fix delete of running container

2013-08-08 Thread Wayne Sun
connection to get dom status. Signed-off-by: Wayne Sun g...@redhat.com --- bin/virt-sandbox-service | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox-service index 550d46c..03873c9 100755 --- a/bin/virt-sandbox-service +++ b/bin

[libvirt] [sandbox][PATCH] Fix delete of running containers

2013-08-07 Thread Wayne Sun
The stop function is removed since 0.5.0, update delete function using virsh destroy to stop container. Signed-off-by: Wayne Sun g...@redhat.com --- bin/virt-sandbox-service |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/virt-sandbox-service b/bin/virt-sandbox

Re: [libvirt] [sandbox][PATCH] Fix delete of running containers

2013-08-07 Thread Wayne Sun
On 08/07/2013 08:08 PM, Daniel P. Berrange wrote: On Wed, Aug 07, 2013 at 07:56:05PM +0800, Wayne Sun wrote: The stop function is removed since 0.5.0, update delete function using virsh destroy to stop container. Signed-off-by: Wayne Sun g...@redhat.com --- bin/virt-sandbox-service |6

[libvirt] [sandbox][PATCH v2] Fix delete of running container

2013-08-07 Thread Wayne Sun
Delete running container is not supprted and will report an error. Related to bug: https://bugzilla.redhat.com/show_bug.cgi?id=994495 Signed-off-by: Wayne Sun g...@redhat.com --- bin/virt-sandbox-service | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bin

[libvirt] [sandbox][PATCH] Fix nits in virt-sandbox-service when raise ValueError

2013-05-28 Thread Wayne Sun
Put error msg in list when raise ValueError. This fix is for bug: [virt-sandbox-service] execute command with unsupported URI error msg is not right https://bugzilla.redhat.com/show_bug.cgi?id=967705 Signed-off-by: Wayne Sun g...@redhat.com --- bin/virt-sandbox-service |4 ++-- 1 files

[libvirt] [test-API][PATCH] Add 2 emulatorpin cases cover config and live flags

2013-05-27 Thread Wayne Sun
?id=916493 is fixed, so the test can run successfully now. Signed-off-by: Wayne Sun g...@redhat.com --- repos/setVcpus/emulatorpin_config.py | 97 +++ repos/setVcpus/emulatorpin_live.py | 98 2 files changed, 195 insertions

[libvirt] [test-API][PATCH] Add env check function for memory_params_live

2013-05-22 Thread Wayne Sun
In this case, domain memory cgroup path is hardcoded and fail the case after cgroup path changed recently. To avoid such failure, add check function for lscgroup command before run this case, if check fail then skip this case. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain

[libvirt] [test-API][PATCH v2] Add 2 host node memory API cases

2013-02-21 Thread Wayne Sun
with better readability node_memory: direct fetch info in /sys/devices/system/node/node* other than using command 'numastat' Signed-off-by: Wayne Sun g...@redhat.com --- cases/numa_param.conf| 8 repos/numa/node_mem_param.py | 81 repos/numa

[libvirt] [test-API][PATCH] Add 2 host node memory API cases

2013-02-19 Thread Wayne Sun
add 2 host node memory cases and update conf - node_mem_param: tuning host node memory parameters. - node_memory: get host node memory info, including host free memory, node free memory and node memory stats. - numa_param conf is updated with the 2 new cases Signed-off-by: Wayne Sun g

[libvirt] [test-API][PATCH v2] Add 7 memory API related cases

2013-02-18 Thread Wayne Sun
. Signed-off-by: Wayne Sun g...@redhat.com --- cases/domain_memory_test.conf| 99 +++ repos/domain/memory_params_config.py | 96 ++ repos/domain/memory_params_live.py | 112 +++ repos/domain

[libvirt] [test-API][PATCH] Add 7 memory API related cases

2013-02-17 Thread Wayne Sun
set_maxmem_config: test set maximum memory with config flag set_memory_config: test set current memory with config flag set_memory_live: test set current memory with live flag memory hotplug is not supported yet, so live set max memory case is not added. Signed-off-by: Wayne Sun g...@redhat.com --- cases

[libvirt] [test-API][PATCH] Fix the screenshot case

2013-01-21 Thread Wayne Sun
Fix missing sharemod and nonexist filename Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/screenshot.py |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/repos/domain/screenshot.py b/repos/domain/screenshot.py index c0db17f..8284fb4 100644 --- a/repos/domain

[libvirt] [test-API][PATCH] Add storage cases of pool list, pool lookup and volume lookup

2013-01-17 Thread Wayne Sun
and path * add cases into storage_dir.conf Signed-off-by: Wayne Sun g...@redhat.com --- cases/storage_dir.conf| 14 +++ repos/storage/pool_list_active.py | 50 + repos/storage/pool_lookup.py | 74 + repos/storage

[libvirt] [test-API][PATCH] Add the volume clone case

2013-01-14 Thread Wayne Sun
-off-by: Wayne Sun g...@redhat.com --- cases/storage_dir.conf | 14 +++ cases/storage_logical.conf | 14 +++ cases/storage_netfs.conf | 14 +++ global.cfg |2 + repos/storage/vol_clone.py | 81 5 files changed

[libvirt] [test-API][PATCH] Update activate pool case

2013-01-14 Thread Wayne Sun
* delete the unused function * fix column length and some other nits Signed-off-by: Wayne Sun g...@redhat.com --- repos/storage/activate_pool.py | 45 +-- 1 files changed, 20 insertions(+), 25 deletions(-) diff --git a/repos/storage/activate_pool.py b/repos

[libvirt] [test-API][PATCH] Add find storage pool sources cases

2013-01-10 Thread Wayne Sun
Signed-off-by: Wayne Sun g...@redhat.com --- cases/find_storage_pool_sources.conf | 31 +++ repos/storage/find_iscsi_pool_sources.py | 72 repos/storage/find_logical_pool_sources.py | 82 repos/storage

[libvirt] [test-API][PATCH] Add volume resize case with delta flag

2013-01-07 Thread Wayne Sun
resize API with flag VIR_STORAGE_VOL_RESIZE_DELTA * using volume info API to get volume info and check * add dir volume resize conf Signed-off-by: Wayne Sun g...@redhat.com --- cases/storage_dir_vol_resize_delta.conf | 47 +++ repos/storage/vol_resize_delta.py | 75

[libvirt] [test-API][PATCH v2] Add volume upload and download cases

2013-01-06 Thread Wayne Sun
and 1048576, because upload size is set as 1M. * both case use blocking stream. * sample conf is added. v2: * move digest function to utils * rename cases with prefix 'dir_' to emphasise that they are only for dir vol testing Signed-off-by: Wayne Sun g...@redhat.com --- cases

[libvirt] [test-API][PATCH] Add dir volume wipe cases

2013-01-06 Thread Wayne Sun
, some algorithm might fail due to scrub version. * the check method in wipe pattern case for each algorithm is the same, only to make sure digest before and after wipe is different. Signed-off-by: Wayne Sun g...@redhat.com --- cases/storage_dir_vol_wipe.conf | 132

[libvirt] [test-API][PATCH] Add logical volume download and upload cases

2013-01-06 Thread Wayne Sun
to provide volume format. * check method is the same with dir vol download/upload cases. Signed-off-by: Wayne Sun g...@redhat.com --- cases/storage_logical_vol_upload_download.conf | 179 repos/storage/logical_vol_download.py | 125 + repos/storage

[libvirt] [test-API][PATCH] Add volume upload and download cases

2012-12-28 Thread Wayne Sun
as 1M. * both case use blocking stream. * sample conf is added. Signed-off-by: Wayne Sun g...@redhat.com --- cases/storage_vol_upload_download.conf | 127 ++ repos/storage/vol_download.py | 157 +++ repos/storage/vol_upload.py| 183

[libvirt] [test-API][PATCH] set_vcpus_*: Add check point with vcpusFlags API

2012-12-14 Thread Wayne Sun
* add check with vcpusFlags API, it return current or max vcpu base on given flags Signed-off-by: Wayne Sun g...@redhat.com --- repos/setVcpus/set_vcpus_config.py | 28 repos/setVcpus/set_vcpus_live.py |8 2 files changed, 32 insertions(+), 4

[libvirt] [test-API][PATCH v2] Add 2 vcpupin cases cover config and live flags

2012-12-13 Thread Wayne Sun
functions to utils * the format cpulist functions could be reused for cases need parse param with '-', '^' and ','. Signed-off-by: Wayne Sun g...@redhat.com --- cases/vcpupin.conf | 67 +++ repos/setVcpus/vcpupin_config.py | 109

[libvirt] [test-API][PATCH] Add two numa parameters cases

2012-12-13 Thread Wayne Sun
domain pid status with allowed memory list to confirm the nodeset. * The mode check in live case is marked as TODO for later. Signed-off-by: Wayne Sun g...@redhat.com --- cases/numa_param.conf | 51 + repos/numa/numa_param_config.py | 119

[libvirt] [test-API][PATCH] Add 2 vcpupin cases cover config and live flags

2012-12-06 Thread Wayne Sun
* use pinVcpuFlags to pin domain vcpu to host cpu * 2 cases cover config and live flags * cpulist with '^', '-' and ',' is supported to give multiple host cpus * vcpus and vcpuPinInfo are used as part of the checking * a sample conf is added Signed-off-by: Wayne Sun g...@redhat.com --- cases

[libvirt] [test-API][PATCH v4] Add test case of set vcpus with flags

2012-11-30 Thread Wayne Sun
params to select flags and setting Signed-off-by: Wayne Sun g...@redhat.com --- cases/set_vcpus_flags.conf | 67 repos/setVcpus/set_vcpus_config.py | 99 repos/setVcpus/set_vcpus_live.py | 96

[libvirt] [test-API][PATCH v3] Add test case of set vcpus with flags

2012-11-29 Thread Wayne Sun
states * the sample conf is only one scenario of hotplug domain vcpus v3: merge config and maximum case to config * maximum flag can only work when domain is shutoff, merge it to config case to simplify code Signed-off-by: Wayne Sun g...@redhat.com --- cases/set_vcpus_flags.conf | 67

[libvirt] [test-API][PATCH v2] Add test case of set vcpus with flags

2012-11-28 Thread Wayne Sun
states * the sample conf is only one scenario of hotplug domain vcpus Signed-off-by: Wayne Sun g...@redhat.com --- cases/set_vcpus_flags.conf | 64 +++ repos/setVcpus/set_vcpus_config.py | 69 + repos/setVcpus/set_vcpus_live.py| 96

Re: [libvirt] [test-API][PATCH] balloon_memory: add time break before dump xml

2012-11-27 Thread Wayne Sun
On 11/27/2012 04:36 PM, Guannan Ren wrote: On 11/27/2012 03:02 PM, Wayne Sun wrote: the xml dumped after setMemory is not accurate due to time delay, so take 10 sec sleep before dump to show the right xml info Why it is necessary to sleep for a while, I don't think adding a sleep

[libvirt] [test-API][PATCH] balloon_memory: add time break before dump xml

2012-11-26 Thread Wayne Sun
the xml dumped after setMemory is not accurate due to time delay, so take 10 sec sleep before dump to show the right xml info Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/balloon_memory.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/repos/domain

[libvirt] [test-API][PATCH] Add test case of set vcpus with flags

2012-11-20 Thread Wayne Sun
Use setVcpusFlags API to set domain vcpu with flags, domain could be active or not. Flags could be '0', 'live', 'config', 'maximum' and their combinations, use '|' between flags for combinations. A sample conf file also added. Signed-off-by: Wayne Sun g...@redhat.com --- cases

[libvirt] [test-API][PATCH] Fix a problem in cpu_affinity

2012-11-15 Thread Wayne Sun
int() with base 16 will cause problem when cpu number bigger than 10, so change it as default with base 10. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/cpu_affinity.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/repos/domain/cpu_affinity.py b/repos

[libvirt] [test-API][PATCH] Add cpu hotplug test case

2012-11-15 Thread Wayne Sun
Test hotplug domain CPU, loop increase cpu to max then decrease to min. Now qemu did not support decrease plug of cpu, so decrease part will fail, leave it in the case to keep integrity. Signed-off-by: Wayne Sun g...@redhat.com --- cases/cpu_hotplug.conf | 38 +++ repos/domain

[libvirt] [test-API][PATCH v2] utils: Update remote_exec_pexpect function and sync cases

2012-08-27 Thread Wayne Sun
After delete duplicate remote_exec_pexect function, the left function with same name causes some problem with cases, so update the function and sync all cases using it. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/cpu_topology.py |2 +- repos/snapshot/file_flag.py |8

[libvirt] [test-API][PATCH] Fix a typo in commit b111531

2012-08-27 Thread Wayne Sun
Signed-off-by: Wayne Sun g...@redhat.com --- src/env_inspect.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/env_inspect.py b/src/env_inspect.py index cf036f7..222ffb1 100644 --- a/src/env_inspect.py +++ b/src/env_inspect.py @@ -77,7 +77,7 @@ def sharemod_init

[libvirt] [test-API][PATCH] Fix problem in create netfs pool and logical volume

2012-08-27 Thread Wayne Sun
/backup/logical_pool for create logical volume, rhel6 and rhel7 command is slightly differnet with rhel5, so make the change to fit for all version. Signed-off-by: Wayne Sun g...@redhat.com --- repos/storage/create_logical_volume.py |6 +++--- repos/storage/create_netfs_pool.py |2 +- 2

[libvirt] [test-API][PATCH] utils: Update remote_exec_pexpect function and sync cases

2012-08-20 Thread Wayne Sun
After delete duplicate remote_exec_pexect function, the left function with same name causes some problem with cases, so update the function and sync all cases using it. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/cpu_topology.py|8 +++--- repos/domain/define.py

[libvirt] [test-API][PATCH 2/3] Modify function name to avoid key word 'check' in framework

2012-08-17 Thread Wayne Sun
Modfiy the function name to avoid generating check case and doing params check before the case run. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/cpu_topology.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/domain/cpu_topology.py b/repos

[libvirt] [test-API][PATCH 3/3] Target path should not with lines in pool xml

2012-08-17 Thread Wayne Sun
error: Failed to create pool from aa.xml error: cannot open path ' /tmp/netfs ': No such file or directory Signed-off-by: Wayne Sun g...@redhat.com --- repos/storage/xmls/netfs_pool.xml |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/repos/storage/xmls

[libvirt] [test-API][PATCH 1/3] Delete the duplicate function

2012-08-17 Thread Wayne Sun
Signed-off-by: Wayne Sun g...@redhat.com --- utils/utils.py | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index eade10d..b174a58 100644 --- a/utils/utils.py +++ b/utils/utils.py @@ -514,24 +514,6 @@ def remote_exec

[libvirt] [test-API][PATCH 1/2] New get_conn function in utils

2012-08-16 Thread Wayne Sun
The get_conn function return connection object from libvirt module. This function could be used by both framework and testcases. The patch includes: * get_conn in utils/utils.py * sync env_inspect.py using the new function Signed-off-by: Wayne Sun g...@redhat.com --- src/env_inspect.py

[libvirt] [test-API][PATCH 2/2] Update cases with libvirtd restart problem

2012-08-16 Thread Wayne Sun
Restart libvirtd during test will break conn from framework. Update cases with: * Add notes in case description * Using get_conn to reconnect in cases Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/ownership_test.py |6 -- repos/libvirtd/qemu_hang.py |1

Re: [libvirt] [test-API][PATCH 1/2] New get_conn function in utils

2012-08-16 Thread Wayne Sun
On 08/16/2012 06:07 PM, Osier Yang wrote: On 2012年08月16日 17:00, Wayne Sun wrote: The get_conn function return connection object from libvirt module. This function could be used by both framework and testcases. The patch includes: * get_conn in utils/utils.py * sync env_inspect.py

Re: [libvirt] [test-API][PATCH 1/2] Reconnct libvirt after libvirtd restart

2012-08-08 Thread Wayne Sun
On 08/07/2012 09:15 PM, Guannan Ren wrote: On 08/06/2012 03:46 PM, Wayne Sun wrote: In domain_nfs_start case, libvirtd will be restarted during test, which broke existing connection. User need re-init connection in test case, for this: * Using sharedmod data dictionary to store

[libvirt] [test-API][PATCH v2] Reconnct libvirt after libvirtd restart

2012-08-08 Thread Wayne Sun
* In case domain_nfs_start, use get_conn to get new connectin after libvirtd restarted. Signed-off-by: Wayne Sun g...@redhat.com --- repos/sVirt/domain_nfs_start.py |9 +++-- src/env_inspect.py | 22 ++ utils/utils.py | 29

[libvirt] [test-API][PATCH] Delete the unused util param

2012-08-07 Thread Wayne Sun
The util is undefined and cause case run fail, it's with no use and should be deleted. Signed-off-by: Wayne Sun g...@redhat.com --- repos/interface/create.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/interface/create.py b/repos/interface/create.py

[libvirt] [test-API][PATCH 1/2] Reconnct libvirt after libvirtd restart

2012-08-06 Thread Wayne Sun
can update it or framework release it at last. * Using sharemod_init in env_inspect to re-init conn in domain_nfs_start. Signed-off-by: Wayne Sun g...@redhat.com --- repos/sVirt/domain_nfs_start.py | 11 +-- src/env_inspect.py |1 - src/generator.py

[libvirt] [test-API][PATCH 2/2] Replace env.conf with global.conf in env_parser

2012-08-06 Thread Wayne Sun
Only update the expection info when parsing. Signed-off-by: Wayne Sun g...@redhat.com --- src/env_parser.py | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/env_parser.py b/src/env_parser.py index f02af57..ddda727 100644 --- a/src

[libvirt] [test-API][PATCH] Fix xml parser problem when node have both attribute and value

2012-08-02 Thread Wayne Sun
': u'bytes'}, 'value': u'536870912000'}} Also when fetch the attribute key, should use a new param (attrkey) other than exist key in outside loop. Signed-off-by: Wayne Sun g...@redhat.com --- utils/xml_parser.py | 22 +- 1 files changed, 17 insertions(+), 5 deletions

[libvirt] [test-API][PATCH] Fix logical volume create problem

2012-08-01 Thread Wayne Sun
* capacity should be int type * delete unused capacity suffix convert * fix xml param name Signed-off-by: Wayne Sun g...@redhat.com --- repos/storage/create_logical_volume.py |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/repos/storage

[libvirt] [test-API][PATCH 2/2] Define domain from xml should support image format option

2012-07-31 Thread Wayne Sun
* add imageformat as optional param in define * modify define xml for image format support Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/define.py |1 + repos/domain/xmls/kvm_guest_define.xml |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff

[libvirt] [test-API][PATCH 1/2] Fix the undefined local variable problem in remote_exec

2012-07-31 Thread Wayne Sun
* subproc_flag should be global when used between functions * print error msg when exception happened Signed-off-by: Wayne Sun g...@redhat.com --- utils/utils.py |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index 455e9cf

[libvirt] [test-API][PATCH] Add 3 APIs in snapshotAPI

2012-02-13 Thread Wayne Sun
* new APIs get_parent(self, domname, snapname, flag = 0) children_num(self, domname, snapname, flag) children_names_list(self, domname, snapname, flag) the flag in children_num and children_names_list could be in 0-7, which is the OR operation result of

[libvirt] [test-API][PATCH] Add new APIs and fix problems in connectAPI

2012-02-08 Thread Wayne Sun
* add 8 new APIs get_sys_info(self, flag = 0) get_memory_stats(self, cellNum, flag = 0) get_cpu_stats(self, cpuNum, flag = 0) is_alive(self) change_begin(self, flag = 0) change_commit(self, flag = 0) change_rollback(self, flag = 0) suspend_for_duration(self,

[libvirt] [test-API][PATCH] Add 8 new APIs in domainAPI

2012-02-07 Thread Wayne Sun
* new APIs reset(self, domname, flag = 0) get_vcpu_pin_info(self, domname, flag) is_updated(self, domname) inject_NMI(self, domname, flag = 0) open_console(self, domname, dev_name, stream, flag = 0) open_graphics(self, domname, idx, fd, flag = 1) screenshot(self,

[libvirt] [test-API][PATCH v2 2/2] Add and update functions in streamAPI

2012-02-06 Thread Wayne Sun
* accpet connection object and stream flag as parameter in __init__ remove connect function for connction is given in as parameter. * remove newStream() from each function create new stream object in __init__. function also need flags parameter. * Add 5 new functions

[libvirt] [test-API][PATCH 2/2] Add and update functions in streamAPI

2012-01-31 Thread Wayne Sun
* only accpet stream object as parameter in __init__ * remove newStream() from each function stream object should be pass in as parameter, not create new at each function. function also need flags parameter. * Add 5 new functions screenshot(self, domain, screen, flags = 0)

[libvirt] [test-API][PATCH 1/2] Add 2 new functions in storageAPI

2012-01-31 Thread Wayne Sun
* download(self, poolname, volname, stream, offset, length, flags = 0) * upload(self, poolname, volname, stream, offset, length, flags = 0) --- lib/storageAPI.py | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/lib/storageAPI.py b/lib/storageAPI.py

[libvirt] [test-API][PATCH 2/2] Fix problem of a logger instance

2012-01-19 Thread Wayne Sun
--- utils/Python/format.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utils/Python/format.py b/utils/Python/format.py index 5de8eb0..9c119dd 100644 --- a/utils/Python/format.py +++ b/utils/Python/format.py @@ -33,7 +33,7 @@ class Format(object): def

[libvirt] [test-API][PATCH 1/2] Fix compatibility problem on python 2.4

2012-01-19 Thread Wayne Sun
* switch rpartition with rsplit * adjust the style --- generator.py | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/generator.py b/generator.py index 9a2ed06..6108963 100644 --- a/generator.py +++ b/generator.py @@ -124,10 +124,14 @@ class

[libvirt] [test-API][PATCH v2] Add and update functions in domainAPI

2011-12-30 Thread Wayne Sun
* add 9 new block related functions block_pull(self, domname, device, bandwidth = 0, flag = 0) block_resize(self, domname, device, size, flag = 0) block_job_abort(self, domname, device, flag = 0) block_job_set_speed(self, domname, device, bandwidth, flag = 0)

Re: [libvirt] [test-API][PATCH] Add and update functions in domainAPI

2011-12-30 Thread Wayne Sun
Osier, Thanks, v2 have been send out. Wayne Sun Best Regards! On 12/30/2011 03:51 PM, Osier Yang wrote: On 2011年12月30日 14:47, Wayne Sun wrote: * add 9 new block related functions block_pull(self, domname, path, bandwidth = 0, flag = 0) block_resize(self, domname, path, size

[libvirt] [test-API][PATCH] Add and update functions in domainAPI

2011-12-29 Thread Wayne Sun
* add 9 new block related functions block_pull(self, domname, path, bandwidth = 0, flag = 0) block_resize(self, domname, path, size, flag = 0) block_job_abort(self, domname, path, flag = 0) block_job_set_speed(self, domname, path, bandwidth, flag = 0) get_block_job_info(self,

Re: [libvirt] [test-API][PATCH 2/2] Add test case set_cpu_shares.py for setting cpu scheduler info

2011-12-13 Thread Wayne Sun
On 12/13/2011 11:45 AM, Nan Zhang wrote: * repos/domain/set_cpu_shares.py: set the value of cpu_shares property of the guest. --- repos/domain/set_cpu_shares.py | 121 1 files changed, 121 insertions(+), 0 deletions(-) create mode 100644

Re: [libvirt] [test-API][PATCH 1/2] Add test case get_cpu_shares.py for cpu scheduler info testing

2011-12-13 Thread Wayne Sun
On 12/13/2011 11:45 AM, Nan Zhang wrote: * repos/domain/get_cpu_shares.py: get the value of cpu_shares property of the guest. --- lib/domainAPI.py |2 +- repos/domain/get_cpu_shares.py | 117 2 files changed, 118 insertions(+), 1

[libvirt] [test-API][PATCH] Update clean part for cases

2011-11-20 Thread Wayne Sun
* add clean function for missing ones * clean the system configuration files which been touched --- repos/domain/balloon_memory.py |2 ++ repos/domain/cpu_topology.py |5 + repos/domain/ownership_test.py | 10 ++ repos/libvirtd/qemu_hang.py |

[libvirt] [test-API][PATCH 2/2] Add optional argument uuid in create and install module

2011-10-14 Thread Wayne Sun
--- repos/domain/create.py|6 -- repos/domain/install_image.py |5 +++-- repos/domain/install_linux_cdrom.py | 12 +++- repos/domain/install_linux_net.py | 13 - repos/domain/install_windows_cdrom.py | 12 +++- 5 files

[libvirt] [test-API][PATCH 1/2] Update define module with remote define

2011-10-14 Thread Wayne Sun
* Add support for define domain on remote host Added optional argument target_machine, username and password. If they are provided, define domain on remote host, else define domain on local. * added new optional argument uuid it supports define domain with given static uuid if

[libvirt] (no subject)

2011-10-14 Thread Wayne Sun
For last patch of update migrate module, remote define domain is deleted in migrate. Now add this function into define module in this fix. Also update modules which include create, define and installation for the new option uuid added. [test-API][PATCH 1/2] Update define module with remote

[libvirt] [test-API][PATCH 0/5] Update migrate module

2011-10-13 Thread Wayne Sun
Current migrate module include the remote_guest_define function which has problem with transient guest created on local, it can't find persistent domain xml on local and copy to remote. This series fixes aim to solve this problem. First, remote_guest_define function in migrate is removed, then

[libvirt] [test-API][PATCH 4/5] Add new element uuid in xmlgenerator

2011-10-13 Thread Wayne Sun
* uuid xml element will be created and append to domain xml only if uuid option in params is provided --- utils/Python/xmlgenerator.py |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/utils/Python/xmlgenerator.py b/utils/Python/xmlgenerator.py index

[libvirt] [test-API][PATCH 1/5] Remove remote_guest_define function in migrate

2011-10-13 Thread Wayne Sun
* this function will fail when domain is created on local, no persistent config xml generated, so can't be copied and used on dst for define domain --- repos/domain/migrate.py | 31 +-- 1 files changed, 5 insertions(+), 26 deletions(-) diff --git

[libvirt] [test-API][PATCH 3/5] Update add_option_value function in parser

2011-10-13 Thread Wayne Sun
* Option should be added to the last dictionary in caselist. The old function will cause problem when multiple dictionaries in caselist have same testkey. --- parser.py | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/parser.py b/parser.py index

[libvirt] [test-API][PATCH 2/5] Add new variable static_uuid into env.cfg

2011-10-13 Thread Wayne Sun
--- env.cfg |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/env.cfg b/env.cfg index b5e404a..f0373b6 100644 --- a/env.cfg +++ b/env.cfg @@ -112,6 +112,9 @@ defaultvcpu = 1 # default the memory size(kilobytes) to use for defining or installing a guest defaultmem =

[libvirt] [test-API][PATCH 5/5] Update the migration case conf file

2011-10-13 Thread Wayne Sun
For patch size consideration, only one file chage is display here --- .../migration/ssh_persistent_paused_with_dst.conf | 192 +++ .../migration/ssh_persistent_running_with_dst.conf | 192 +++ cases/migration/ssh_transient_paused_with_dst.conf | 200

[libvirt] [test-API][PATCH] Fix typos for existing problems

2011-09-15 Thread Wayne Sun
--- cases/basic_nodedevice.conf |2 +- lib/nodedevAPI.py |2 +- lib/storageAPI.py |2 +- repos/nodedevice/detach.py| 22 +++--- repos/storage/define_scsi_pool.py |2 +- 5 files changed, 15 insertions(+), 15

[libvirt] [test-API][PATCH v2 2/4] Add libvirtd restart test case

2011-09-14 Thread Wayne Sun
+1,180 @@ +#!/usr/bin/evn python + Restart libvirtd testing. A running guest is required in this test. +During libvirtd restart, the guest remains running and not affected +by libvirtd restart. +libvirtd:restart +guestname +#GUESTNAME# + + +__author__ = 'Wayne Sun: g

[libvirt] [test-API][PATCH v2 1/4] Add init module under libvirtd

2011-09-14 Thread Wayne Sun
* repos/libvirtd/__init__.py --- 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 repos/libvirtd/__init__.py diff --git a/repos/libvirtd/__init__.py b/repos/libvirtd/__init__.py new file mode 100644 index 000..e69de29 -- 1.7.1 -- libvir-list mailing list

[libvirt] [test-API][PATCH v2 3/4] Add libvirtd upstart test case

2011-09-14 Thread Wayne Sun
/upstart.py diff --git a/repos/libvirtd/upstart.py b/repos/libvirtd/upstart.py new file mode 100644 index 000..904baa9 --- /dev/null +++ b/repos/libvirtd/upstart.py @@ -0,0 +1,213 @@ +#!/usr/bin/env python +Upstart libvirtd testing + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__ = 'Thu

[libvirt] [test-API][PATCH v2 4/4] Add qemu_hang test case under libvirtd

2011-09-14 Thread Wayne Sun
libvird get hang. For doing this +test, a running domain is required. +libvirtd:qemu_hang +guestname +#GUESTNAME# + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__ = 'Thu Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__

[libvirt] [test-API][PATCH v4] Add test module ownership_test

2011-09-14 Thread Wayne Sun
in this case. + domain:ownership_test + guestname + #GUESTNAME# + dynamic_ownership + enable|disable + use_nfs + enable|disable + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__ = 'Mon Jul 25, 2011' +__version__ = '0.1.0' +__credits__

[libvirt] [test-API][PATCH v2] Add test case for start domain on nfs storage

2011-09-14 Thread Wayne Sun
should be enabled + and enforcing on host. + sVirt:domain_nfs_start + guestname + #GUESTNAME# + dynamic_ownership + enable|disable + virt_use_nfs + on|off + root_squash + yes|no + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__

[libvirt] [test-API][PATCH] Add test case for start domain on nfs storage

2011-09-06 Thread Wayne Sun
should be enabled + and enforcing on host. + sVirt:domain_nfs_start + guestname + #GUESTNAME# + dynamic_ownership + enable|disable + virt_use_nfs + on|off + root_squash + yes|no + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__

[libvirt] [test-API][PATCH] Add libvirtd restart test case

2011-09-01 Thread Wayne Sun
+ Restart libvirtd testing. A running guest is required in this test. +During libvirtd restart, the guest remains running and not affected +by libvirtd restart. +libvirtd:restart +guestname +#GUESTNAME# + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__ = 'Thu

[libvirt] [test-API][PATCH] Fix a typo which block windows cdrom install

2011-08-31 Thread Wayne Sun
--- repos/domain/install_windows_cdrom.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/repos/domain/install_windows_cdrom.py b/repos/domain/install_windows_cdrom.py index 9cf9e3b..b8333e2 100644 --- a/repos/domain/install_windows_cdrom.py +++

[libvirt] [test-API][PATCH v3] Add ownership_test.py test case

2011-08-29 Thread Wayne Sun
+ #GUESTNAME# + dynamic_ownership + 0|1 + use_nfs + enable|disable + + use_nfs is a flag for decide using root_squash nfs or not + + +__author__ = 'Wayne Sun: g...@redhat.com' +__date__ = 'Mon Jul 25, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C

[libvirt] [test-API][PATCH v2] Add ownership_test.py test case

2011-08-25 Thread Wayne Sun
file. Test could be on + local or root_squash nfs. + domain:ownership_test + guestname + #GUESTNAME# + dynamic_ownership + 0|1 + use_nfs + 0|1 + + use_nfs is a flag for decide using nfs or not + + +__author__ = 'Wayne Sun: g...@redhat.com

[libvirt] [test-API][PATCH] Fix the missing ret variable problem

2011-08-23 Thread Wayne Sun
--- repos/remoteAccess/tls_setup.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/repos/remoteAccess/tls_setup.py b/repos/remoteAccess/tls_setup.py index 80d6b42..4e7f24e 100644 --- a/repos/remoteAccess/tls_setup.py +++ b/repos/remoteAccess/tls_setup.py @@ -343,6

[libvirt] [libvirt-test-API][PATCH] fix the problem of return None value of self.conn

2011-08-16 Thread Wayne Sun
--- lib/connectAPI.py |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/connectAPI.py b/lib/connectAPI.py index 702a088..cfa4fea 100644 --- a/lib/connectAPI.py +++ b/lib/connectAPI.py @@ -44,7 +44,7 @@ class ConnectAPI(object): def open(self, uri):

[libvirt] [libvirt-test-API][PATCH 2/2] Add clean part for install_windows_cdrom

2011-07-24 Thread Wayne Sun
* Add cleanup function install_windows_cdrom_clean --- repos/domain/install_windows_cdrom.py | 88 +++- 1 files changed, 74 insertions(+), 14 deletions(-) diff --git a/repos/domain/install_windows_cdrom.py b/repos/domain/install_windows_cdrom.py index

[libvirt] [libvirt-test-API][PATCH 1/2] Add cleap part for install_linux_net

2011-07-24 Thread Wayne Sun
* Add the install_linux_net_clean function --- repos/domain/install_linux_net.py | 58 + 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/repos/domain/install_linux_net.py b/repos/domain/install_linux_net.py index 924bb05..21ae378 100644 ---

[libvirt] [libvirt-test-API][PATCH 2/2] Add clean part for install_windows_cdrom

2011-07-24 Thread Wayne Sun
* Add cleanup function install_windows_cdrom_clean --- repos/domain/install_windows_cdrom.py | 88 +++- 1 files changed, 74 insertions(+), 14 deletions(-) diff --git a/repos/domain/install_windows_cdrom.py b/repos/domain/install_windows_cdrom.py index

[libvirt] [libvirt-test-API][PATCH 1/2] Add cleap part for install_linux_net

2011-07-24 Thread Wayne Sun
* Add the install_linux_net_clean function --- repos/domain/install_linux_net.py | 58 + 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/repos/domain/install_linux_net.py b/repos/domain/install_linux_net.py index 924bb05..21ae378 100644 ---