[PATCH] [TEST] Resubmit ElementConforms.01&03&04 for LXC support

# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1212115646 -28800 # Node ID 25c2af6bfccc73196fff0ce96f7162b8b22d0057 # Parent 3ac66cf562f082546883c1de0d748471b557cd39 [TEST] Resubmit ElementConforms.01&03&04 for LXC support Signed-off-by: Guolian Yun <yunguol@cn.ibm.com> diff -r 3ac66cf562f0 -r 25c2af6bfccc suites/libvirt-cim/cimtest/ElementConforms/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri May 30 00:24:45 2008 +0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri May 30 10:47:26 2008 +0800 @@ -42,7 +42,7 @@ from CimTest import Globals from CimTest.ReturnCodes import PASS, FAIL -sup_types = ['Xen', 'XenFV', 'KVM'] +sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = "domU" def verify_cs(item, id): diff -r 3ac66cf562f0 -r 25c2af6bfccc suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri May 30 00:24:45 2008 +0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri May 30 10:47:26 2008 +0800 @@ -60,9 +60,8 @@ from CimTest import Globals from CimTest.Globals import logger, CIM_USER, CIM_PASS, do_main -sup_types = ['Xen', 'XenFV', 'KVM'] +sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] -bug = '92642' expr_values = { "INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_FAILED, \ @@ -82,7 +81,7 @@ k = j * 2 keys[name_val[k]] = name_val[k+1] ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ - expr_values=expr_values[field], bug_no=bug) + expr_values=expr_values[field], bug_no="") if ret_val != PASS: logger.error("------ FAILED: %s------" % field) name_val[i] = temp diff -r 3ac66cf562f0 -r 25c2af6bfccc suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri May 30 00:24:45 2008 +0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri May 30 10:47:26 2008 +0800 @@ -89,9 +89,8 @@ from CimTest.ReturnCodes import PASS, FAIL from CimTest.Globals import logger, CIM_USER, CIM_PASS, CIM_NS, do_main -sup_types = ['Xen', 'XenFV', 'KVM'] +sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] -bug = '92642' test_dom = "domU" cs_values = { @@ -122,7 +121,7 @@ else: expr_values = cs_values ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ - expr_values=expr_values[field], bug_no=bug) + expr_values=expr_values[field], bug_no="") if ret_val != PASS: logger.error("------ FAILED: %s------" % field) name_val[i] = temp

yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1212115646 -28800 # Node ID 25c2af6bfccc73196fff0ce96f7162b8b22d0057 # Parent 3ac66cf562f082546883c1de0d748471b557cd39 [TEST] Resubmit ElementConforms.01&03&04 for LXC support
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
wbemcli ain -ac LXC_ElementConformsToProfile 'http://localhost:5988/root/virt:LXC_HostSystem.CreationClassName="LXC_HostSystem",Name="elm3b41"' This query doesn't return any records, which is why I think I saw a problem. Does this work for you on your system? -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com

libvirt-cim-bounces@redhat.com wrote on 2008-05-31 02:33:21:
yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1212115646 -28800 # Node ID 25c2af6bfccc73196fff0ce96f7162b8b22d0057 # Parent 3ac66cf562f082546883c1de0d748471b557cd39 [TEST] Resubmit ElementConforms.01&03&04 for LXC support
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
wbemcli ain -ac LXC_ElementConformsToProfile 'http://localhost:5988/root/virt:LXC_HostSystem. CreationClassName="LXC_HostSystem",Name="elm3b41"'
This query doesn't return any records, which is why I think I saw a problem. Does this work for you on your system?
It does work for me, and below is the output of this query. localhost:5988/root/virt:LXC_RegisteredProfile.InstanceID="CIM:DSP1042-SystemVirtualization-1.0.0"
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim

Guo Lian Yun wrote:
libvirt-cim-bounces@redhat.com wrote on 2008-05-31 02:33:21:
yunguol@cn.ibm.com wrote:
# HG changeset patch # User Guolian Yun <yunguol@cn.ibm.com> # Date 1212115646 -28800 # Node ID 25c2af6bfccc73196fff0ce96f7162b8b22d0057 # Parent 3ac66cf562f082546883c1de0d748471b557cd39 [TEST] Resubmit ElementConforms.01&03&04 for LXC support
Signed-off-by: Guolian Yun <yunguol@cn.ibm.com>
wbemcli ain -ac LXC_ElementConformsToProfile 'http://localhost:5988/root/virt:LXC_HostSystem. CreationClassName="LXC_HostSystem",Name="elm3b41"'
This query doesn't return any records, which is why I think I saw a problem. Does this work for you on your system?
It does work for me, and below is the output of this query.
localhost:5988/root/virt:LXC_RegisteredProfile.InstanceID="CIM:DSP1042-SystemVirtualization-1.0.0"
Interesting - sfcb must handle the registration of cross-namespace providers better than Pegasus does. I tracked my issue down to a bug in the ECTP registration (I've submitted a patch). Sorry for the confusion there. I've retested your patch, and it looks good to me. I've applied it. Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com
participants (3)
-
Guo Lian Yun
-
Kaitlin Rupert
-
yunguol@cn.ibm.com