[TEST] Question of state change from running to suppend for LXC guest
by Guo Lian Yun
Hi,
LXC guest can't change state from running to suspend, that is to say, the
state changes
isn't supported by the container hypervisor. So some test cases don't have
to
update for LXC support such as HostedDependency.03_enabledstate.py, right?
Below is the error report if I do so:
***
libvir: error : this function is not supported by the hypervisor:
virDomainSuspend
error: Failed to suspend domain hd_domain
***
Best,
Regards
Daisy (运国莲)
VSM Team, China Systems & Technology Labs (CSTL)
E-mail: yunguol(a)cn.ibm.com
TEL: (86)-21-60922144
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203
16 years, 6 months
[PATCH] [TEST] Update ResourceAllocationFromPool.01~04 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212128528 -28800
# Node ID 7d2ce92ea89eedd84ad92ece773edcf175162d27
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update ResourceAllocationFromPool.01~04 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 7d2ce92ea89e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Fri May 30 14:22:08 2008 +0800
@@ -31,7 +31,7 @@
from CimTest.Globals import logger, do_main
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
@do_main(sup_types)
def main():
diff -r 3ac66cf562f0 -r 7d2ce92ea89e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Fri May 30 14:22:08 2008 +0800
@@ -31,7 +31,7 @@
from CimTest.Globals import logger, do_main
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
@do_main(sup_types)
def main():
diff -r 3ac66cf562f0 -r 7d2ce92ea89e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Fri May 30 14:22:08 2008 +0800
@@ -30,7 +30,7 @@
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
from XenKvmLib.const import CIM_REV
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
rev = 466
diff -r 3ac66cf562f0 -r 7d2ce92ea89e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py
--- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Fri May 30 14:22:08 2008 +0800
@@ -29,7 +29,7 @@
from CimTest.Globals import logger, do_main
from CimTest.ReturnCodes import PASS, FAIL, XFAIL
-sup_types = ['Xen', 'XenFV', 'KVM']
+sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
exp_rc = 6 #CIM_ERR_NOT_FOUND
exp_desc = "No such instance"
diff -r 3ac66cf562f0 -r 7d2ce92ea89e suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 14:22:08 2008 +0800
@@ -87,10 +87,16 @@
class KVM_Memory(CIM_Memory):
pass
+class LXC_Memory(CIM_Memory):
+ pass
+
class Xen_Processor(CIM_Processor):
pass
class KVM_Processor(CIM_Processor):
+ pass
+
+class LXC_Processor(CIM_Processor):
pass
def get_class(classname):
16 years, 6 months
[TEST] test cases fix list and assignment for the next week
by Guo Lian Yun
Hi Zhengang and Deepti,
I've list the failing test cases during our discussion yesterday.
I've assigned and names listed as well, it's be great to shoot for
completion before May 4th. =)
Thanks!
1) CS.40 --- maybe provider issue -- Deepti
InvokeMethod(DefineSystem): *** Provider
Virt_VirtualSystemManagementService(27073) exiting due to a SIGSEGV signal
2) EAFP.01 & 02 ----- still in working --Daisy
3) ElementConfroms.02 & 04: -- Deepti
4) ElementSettingData.03 --- make sure clean the vs before running --
Zhengang
5) HostSystem.02 -- the difference of rpm and source provider in memory.
"kilobyte" vs "megabyte", we have to add branch here -- Daisy
6) Memory 02 --- InvokeMethod(DefineSystem): *** Provider
Virt_VirtualSystemManagementService(5492) --Daisy
exiting due to a SIGSEGV signal
7) NetworkPort 03 ---- known bug
8) Processor 02 --- InvokeMethod(DefineSystem): *** Provider
Virt_VirtualSystemManagementService(15585) exiting due to a SIGSEGV signal
-- Deepti
9) RASD.01 & 02 --- "kilobyte" vs "megabyte", we have to add branch here
--Zhengang
10) ReferenceProfile.01 & 02 --- also add branch --Deepti
11) ResourceAllocatedFromPool.01~04 --- rpm vs latest with different report
message, we have to add branch here -- Daisy
12) ResourcePoolConfigurationService.03 04 06 07 -- CIM_ERR_NOT_SUPPORTED
in rpm, we have to add message here -- Deepti
13) SettingsDefine 02 ---- Because of InstanceID, "Domain-0/0" vs
"Domain-0/proc", Jay looked into this issue
14) VSSD.04 --- fail on rpm, pass on src, we have to add branch -- Daisy
15) VSMS.01 -- InvokeMethod(DefineSystem): -- Zhengang
.02 -- destroy and undefine rpm: destroy branch "rpm" vs "latest"
-- Zhengang
.06 -- InvokeMethod(AddResourceSettings): CIM_ERR_FAILED: Failed to
create domain -- Zhengang
16) VSSDataComponent.03 -- we have to add branch for "error code" --
Daisy
Best,
Regards
Daisy Guo Lian Yun
E-mail: yunguol(a)cn.ibm.com
IBM China Development Lab, Shanghai, China
TEL: (86)-21-61008057
16 years, 6 months
[PATCH] [TEST] Update Profile.03 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212159008 -28800
# Node ID 83f9dd5daedc1a7eeab314d60ff0d38d19a99d6f
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update Profile.03 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 83f9dd5daedc suites/libvirt-cim/cimtest/Profile/03_rprofile_gi_errs.py
--- a/suites/libvirt-cim/cimtest/Profile/03_rprofile_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/Profile/03_rprofile_gi_errs.py Fri May 30 22:50:08 2008 +0800
@@ -57,7 +57,7 @@
from CimTest import Globals
from CimTest.Globals import do_main
-sup_types = ['Xen']
+sup_types = ['Xen', 'LXC']
expr_values = {
"invalid_instid_keyvalue" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \
16 years, 6 months
[PATCH] [TEST] Update HostSystem.01&05 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212158731 -28800
# Node ID 13025733f68b242a210128ca3c4d4a740b75c0eb
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update HostSystem.01&05 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 13025733f68b suites/libvirt-cim/cimtest/HostSystem/01_enum.py
--- a/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Fri May 30 22:45:31 2008 +0800
@@ -35,7 +35,7 @@
from CimTest.Globals import logger
from CimTest.ReturnCodes import PASS, FAIL
-SUPPORTED_TYPES = ['Xen', 'KVM', 'XenFV']
+SUPPORTED_TYPES = ['Xen', 'KVM', 'XenFV', 'LXC']
@do_main(SUPPORTED_TYPES)
def main():
diff -r 3ac66cf562f0 -r 13025733f68b suites/libvirt-cim/cimtest/HostSystem/05_hs_gi_errs.py
--- a/suites/libvirt-cim/cimtest/HostSystem/05_hs_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/HostSystem/05_hs_gi_errs.py Fri May 30 22:45:31 2008 +0800
@@ -81,7 +81,7 @@
from CimTest.ReturnCodes import PASS, FAIL
from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS, do_main
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"invalid_ccname" : {'rc' : pywbem.CIM_ERR_NOT_FOUND, \
16 years, 6 months
[PATCH] [TEST] Update Memory.01&03 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212158090 -28800
# Node ID b7ad266f271375c29adbcd89579ad78af718d11a
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update Memory.01&03 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/cimtest/Memory/01_memory.py
--- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri May 30 22:34:50 2008 +0800
@@ -33,7 +33,7 @@
from CimTest.Globals import do_main
from XenKvmLib.const import CIM_REV
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
test_dom = "test_domain"
mem = 256 #MB
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py
--- a/suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/Memory/03_mem_gi_errs.py Fri May 30 22:34:50 2008 +0800
@@ -133,7 +133,7 @@
from CimTest.Globals import logger, CIM_USER, do_main
from CimTest.Globals import CIM_PASS, CIM_NS
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"invalid_ccname" : {'rc' : pywbem.CIM_ERR_NOT_FOUND, \
diff -r 3ac66cf562f0 -r b7ad266f2713 suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py Fri May 30 22:34:50 2008 +0800
@@ -85,6 +85,9 @@
pass
class KVM_Memory(CIM_Memory):
+ pass
+
+class LXC_Memory(CIM_Memory):
pass
class Xen_Processor(CIM_Processor):
16 years, 6 months
[PATCH] Set namespace of object path in rasd_to_vdev()
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1212155823 25200
# Node ID 5b89d6aa5816613627a2869d8c72bde37a9f2e2c
# Parent bebc49d05ccd893020673286905d5c64f652cd62
Set namespace of object path in rasd_to_vdev()
This was being done in classify_resources(), however, rasd_to_vdev() needs to set this value because a call to CMGetObjectPath() strips the instance of it's namespace.
Functions that call rasd_to_vdev() need to pass in the namespace, so those are updated as well.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r bebc49d05ccd -r 5b89d6aa5816 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Thu May 29 14:48:41 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Fri May 30 06:57:03 2008 -0700
@@ -487,7 +487,8 @@
static const char *rasd_to_vdev(CMPIInstance *inst,
struct domain *domain,
- struct virt_device *dev)
+ struct virt_device *dev,
+ const char *ns)
{
uint16_t type;
CMPIObjectPath *op;
@@ -498,6 +499,9 @@
msg = "Unable to get path for device instance";
goto out;
}
+
+ CMSetNameSpace(op, ns);
+ CMSetObjectPath(inst, op);
if (res_type_from_rasd_classname(CLASSNAME(op), &type) != CMPI_RC_OK) {
msg = "Unable to get device type";
@@ -553,9 +557,6 @@
if (op == NULL)
return "Unknown resource instance type";
- CMSetNameSpace(op, ns);
- CMSetObjectPath(inst, op);
-
if (res_type_from_rasd_classname(CLASSNAME(op), &type) !=
CMPI_RC_OK)
return "Unable to determine resource type";
@@ -563,19 +564,23 @@
if (type == CIM_RES_TYPE_PROC)
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_vcpu[domain->dev_vcpu_ct++]);
+ &domain->dev_vcpu[domain->dev_vcpu_ct++],
+ ns);
else if (type == CIM_RES_TYPE_MEM)
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_mem[domain->dev_mem_ct++]);
+ &domain->dev_mem[domain->dev_mem_ct++],
+ ns);
else if (type == CIM_RES_TYPE_DISK)
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_disk[domain->dev_disk_ct++]);
+ &domain->dev_disk[domain->dev_disk_ct++],
+ ns);
else if (type == CIM_RES_TYPE_NET)
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_net[domain->dev_net_ct++]);
+ &domain->dev_net[domain->dev_net_ct++],
+ ns);
if (msg != NULL)
return msg;
@@ -872,7 +877,8 @@
typedef CMPIStatus (*resmod_fn)(struct domain *,
CMPIInstance *,
uint16_t,
- const char *);
+ const char *,
+ const char*);
static struct virt_device **find_list(struct domain *dominfo,
uint16_t type,
@@ -966,7 +972,8 @@
static CMPIStatus resource_del(struct domain *dominfo,
CMPIInstance *rasd,
uint16_t type,
- const char *devid)
+ const char *devid,
+ const char *ns)
{
CMPIStatus s;
CMPIObjectPath *op;
@@ -1013,7 +1020,8 @@
static CMPIStatus resource_add(struct domain *dominfo,
CMPIInstance *rasd,
uint16_t type,
- const char *devid)
+ const char *devid,
+ const char *ns)
{
CMPIStatus s;
CMPIObjectPath *op;
@@ -1060,7 +1068,7 @@
dev->type = type;
dev->id = strdup(devid);
- rasd_to_vdev(rasd, dominfo, dev);
+ rasd_to_vdev(rasd, dominfo, dev, ns);
s = _resource_dynamic(dominfo, dev, RESOURCE_ADD, CLASSNAME(op));
if (s.rc != CMPI_RC_OK)
@@ -1078,7 +1086,8 @@
static CMPIStatus resource_mod(struct domain *dominfo,
CMPIInstance *rasd,
uint16_t type,
- const char *devid)
+ const char *devid,
+ const char *ns)
{
CMPIStatus s;
CMPIObjectPath *op;
@@ -1109,7 +1118,7 @@
struct virt_device *dev = &list[i];
if (STREQ(dev->id, devid)) {
- rasd_to_vdev(rasd, dominfo, dev);
+ rasd_to_vdev(rasd, dominfo, dev, ns);
s = _resource_dynamic(dominfo,
dev,
RESOURCE_MOD,
@@ -1156,7 +1165,7 @@
goto out;
}
- s = func(dominfo, rasd, type, devid);
+ s = func(dominfo, rasd, type, devid, NAMESPACE(ref));
if (s.rc != CMPI_RC_OK) {
CU_DEBUG("Resource transform function failed");
goto out;
16 years, 6 months
[PATCH] [TEST] Update VirtualSystemSnapshotServiceCapabilities.01&02 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212142223 -28800
# Node ID 5bcfdd805bba1b6ce1e2f8c2d01cb5e3523b4ca3
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update VirtualSystemSnapshotServiceCapabilities.01&02 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 5bcfdd805bba suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/01_enum.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/01_enum.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/01_enum.py Fri May 30 18:10:23 2008 +0800
@@ -25,14 +25,16 @@
from XenKvmLib import enumclass
from CimTest.Globals import CIM_ERROR_ENUMERATE, logger
from CimTest.ReturnCodes import PASS, FAIL
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
+
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
def print_error(fieldname, ret_value, exp_value):
logger.error("%s Mismatch", fieldname)
logger.error("Returned %s instead of %s", ret_value, exp_value)
-@do_main(platform_sup)
+@do_main(sup_types)
def main():
options = main.options
# Expected results from enumeration
diff -r 3ac66cf562f0 -r 5bcfdd805bba suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/02_vs_sservicecap_gi_errs.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/02_vs_sservicecap_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotServiceCapabilities/02_vs_sservicecap_gi_errs.py Fri May 30 18:10:23 2008 +0800
@@ -49,10 +49,10 @@
from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS
from CimTest.ReturnCodes import PASS
from XenKvmLib.common_util import try_getinstance
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
-
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"invalid_instid" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \
'desc' : 'No such instance (InstanceID)' }
@@ -62,7 +62,7 @@
return try_getinstance(conn, classname, keys, field_name=field, \
expr_values=expr_values['invalid_instid'], bug_no="")
-@do_main(platform_sup)
+@do_main(sup_types)
def main():
global options
options = main.options
diff -r 3ac66cf562f0 -r 5bcfdd805bba suites/libvirt-cim/lib/XenKvmLib/enumclass.py
--- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri May 30 18:10:23 2008 +0800
@@ -209,6 +209,9 @@
class KVM_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
pass
+class LXC_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
+ pass
+
class Xen_MemResourceAllocationSettingData(CIM_MemResourceAllocationSettingData):
pass
16 years, 6 months
[PATCH] [TEST] Update VirtualSystemSnapshotService.01&02 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212141720 -28800
# Node ID 7614eb8b8023999620e91d0ec74917ba24aa98a0
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST] Update VirtualSystemSnapshotService.01&02 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 7614eb8b8023 suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Fri May 30 18:02:00 2008 +0800
@@ -25,7 +25,7 @@
from XenKvmLib import enumclass
from CimTest.Globals import CIM_ERROR_ENUMERATE, logger
from CimTest.ReturnCodes import PASS, FAIL
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
from XenKvmLib.common_util import get_host_info
@@ -33,7 +33,8 @@
logger.error("%s Mismatch", fieldname)
logger.error("Returned %s instead of %s", ret_value, exp_value)
-@do_main(platform_sup)
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
+@do_main(sup_types)
def main():
options = main.options
# Expected results from enumeration
diff -r 3ac66cf562f0 -r 7614eb8b8023 suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/02_vs_sservice_gi_errs.py Fri May 30 18:02:00 2008 +0800
@@ -31,10 +31,11 @@
from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS
from CimTest.ReturnCodes import PASS
from XenKvmLib.common_util import try_getinstance
-from CimTest.Globals import do_main, platform_sup
+from CimTest.Globals import do_main
from XenKvmLib.classes import get_typed_class
from XenKvmLib.common_util import get_host_info
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
expr_values = {
"INVALID_CCName" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \
'desc' : 'No such instance (CreationClassName)' }, \
@@ -219,7 +220,7 @@
return status
return PASS
-@do_main(platform_sup)
+@do_main(sup_types)
def main():
global options
options = main.options
diff -r 3ac66cf562f0 -r 7614eb8b8023 suites/libvirt-cim/lib/XenKvmLib/enumclass.py
--- a/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/enumclass.py Fri May 30 18:02:00 2008 +0800
@@ -203,6 +203,9 @@
class KVM_VirtualSystemSnapshotService(CIM_VirtualSystemSnapshotService):
pass
+class LXC_VirtualSystemSnapshotService(CIM_VirtualSystemSnapshotService):
+ pass
+
class Xen_VirtualSystemSnapshotServiceCapabilities(CIM_VirtualSystemSnapshotServiceCapabilities):
pass
16 years, 6 months
[PATCH] [TEST]Update ReferencedProfile.01&02 for LXC support
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1212140542 -28800
# Node ID 005aae91fa3af0aedbda2e1334802f4e0ae35dc0
# Parent 3ac66cf562f082546883c1de0d748471b557cd39
[TEST]Update ReferencedProfile.01&02 for LXC support
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 3ac66cf562f0 -r 005aae91fa3a suites/libvirt-cim/cimtest/ReferencedProfile/01_verify_refprof.py
--- a/suites/libvirt-cim/cimtest/ReferencedProfile/01_verify_refprof.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ReferencedProfile/01_verify_refprof.py Fri May 30 17:42:22 2008 +0800
@@ -82,7 +82,7 @@
from XenKvmLib.const import CIM_REV
from XenKvmLib.common_util import print_field_error
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
libvirtcim_rev = 501
diff -r 3ac66cf562f0 -r 005aae91fa3a suites/libvirt-cim/cimtest/ReferencedProfile/02_refprofile_errs.py
--- a/suites/libvirt-cim/cimtest/ReferencedProfile/02_refprofile_errs.py Fri May 30 00:24:45 2008 +0800
+++ b/suites/libvirt-cim/cimtest/ReferencedProfile/02_refprofile_errs.py Fri May 30 17:42:22 2008 +0800
@@ -62,7 +62,7 @@
from XenKvmLib.common_util import try_assoc
from XenKvmLib.const import CIM_REV
-sup_types = ['Xen', 'KVM', 'XenFV']
+sup_types = ['Xen', 'KVM', 'XenFV', 'LXC']
libvirtcim_rev = 501
expr_values = {
16 years, 6 months