[PATCH 0 of 2] [TEST] #2 Adding new test RPCS/10_create_storagevolume.py

# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1251275502 25200 # Node ID bd5411ebb634f6cf0945aa4e2f6896eb4221c03f # Parent 3c09a49a30f4bc1e6544736612508d3f99308083 [TEST] Adding vol_list to xm_virt_util.py. Tested with KVM on F11 with current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> diff -r 3c09a49a30f4 -r bd5411ebb634 suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py Mon Aug 24 13:28:13 2009 -0700 +++ b/suites/libvirt-cim/lib/XenKvmLib/xm_virt_util.py Wed Aug 26 01:31:42 2009 -0700 @@ -237,6 +237,17 @@ return names +def vol_list(server, virt="KVM", pool_name=None): + """ Function to list the volumes part of a pool""" + + cmd = " virsh -c %s vol-list %s | sed -e '1,2 d' -e '$ d'" \ + % (virt2uri(virt), pool_name) + ret, out = utils.run_remote(server, cmd) + if ret != 0: + return None + + return out + def virsh_vcpuinfo(server, dom, virt="Xen"): cmd = "virsh -c %s vcpuinfo %s | grep VCPU | wc -l" % (virt2uri(virt), dom)

# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1251287772 25200 # Node ID bf818c99aad9657162daf8f1b295fe674dd41a7a # Parent bd5411ebb634f6cf0945aa4e2f6896eb4221c03f [TEST]#2 Adding new test RPCS/10_create_storagevolume.py Patch 2: -------- 1) Added code to verify the StoVol template RASD. 2) Seperated the SDC query into a function. 3) Used the default_disk_pool for DIR type pools This test verifies the creation of StorageVol in the dir pool. Tested with KVM on F11 with current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com>

Deepti B. Kalakeri wrote:
# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1251287772 25200 # Node ID bf818c99aad9657162daf8f1b295fe674dd41a7a # Parent bd5411ebb634f6cf0945aa4e2f6896eb4221c03f [TEST]#2 Adding new test RPCS/10_create_storagevolume.py
Patch 2: -------- 1) Added code to verify the StoVol template RASD. 2) Seperated the SDC query into a function. 3) Used the default_disk_pool for DIR type pools
This test verifies the creation of StorageVol in the dir pool. Tested with KVM on F11 with current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com>
Hi Deepti, Looks like part of this patch was truncated. Can you resend? Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (2)
-
Deepti B. Kalakeri
-
Kaitlin Rupert