<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-06-12
00:09:47:<br>
<br>
> yunguol@cn.ibm.com wrote:<br>
> > # HG changeset patch<br>
> > # User Guolian Yun <yunguol@cn.ibm.com><br>
> > # Date 1213279228 -28800<br>
> > # Node ID 2fff464cfcf81a56ffb627085eebf995a54b3833<br>
> > # Parent  254bc5464030a03b6f791fd49acd208f6ec1db23<br>
> > [TEST] Update VirtualSystemSettingDataComponent.04 for LXC support<br>
> > <br>
> > Signed-off-by: Guolian Yun <yunguol@cn.ibm.com><br>
> > <br>
> > diff -r 254bc5464030 -r 2fff464cfcf8 suites/libvirt-<br>
> cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py<br>
> > --- a/suites/libvirt-<br>
> cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py
 <br>
> Wed Jun 11 20:56:07 2008 +0800<br>
> > +++ b/suites/libvirt-<br>
> cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py
 <br>
> Thu Jun 12 22:00:28 2008 +0800<br>
> > @@ -66,15 +66,15 @@<br>
> >  from CimTest.Globals import do_main, logger<br>
> >  from CimTest.Globals import CIM_USER, CIM_PASS, CIM_NS<br>
> > <br>
> > -sup_types = ['Xen', 'XenFV', 'KVM']<br>
> > +sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']<br>
> > <br>
> >  test_dom     = "domu1"<br>
> > <br>
> >  expr_values = {<br>
> >      "INVALID_InstID_Keyname"  
: { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, \<br>
> > -                  
  'desc' : 'No such instance (InstanceID)' }, \<br>
> > +                  
  'desc' : 'No such instance' }, \<br>
> >      "INVALID_InstID_Keyval"  
 : { 'rc'   : pywbem.CIM_ERR_NOT_FOUND, \<br>
> > -                  
  'desc' : 'No such instance (InstanceID)'}<br>
> > +                  
  'desc' : 'No such instance'}<br>
> >  }<br>
> <br>
> Why the change here?  I see the following errors:<br>
> <br>
>   wbemcli ain -ac LXC_VirtualSystemSettingDataComponent <br>
> 'http://localhost/root/virt:LXC_VirtualSystemSettingData.Invalid="LXC:meep"'<br>
> *<br>
> * wbemcli: Cim: (6) CIM_ERR_NOT_FOUND: No such instance (InstanceID)<br>
> <br>
> wbemcli ain -ac LXC_VirtualSystemSettingDataComponent <br>
> 'http://localhost/root/virt:LXC_VirtualSystemSettingData.InstanceID="Invalid"'<br>
> <br>
> *<br>
> * wbemcli: Cim: (6) CIM_ERR_NOT_FOUND: No such instance (InstanceID)<br>
> *<br>
> <br>
> Are you seeing a different error?<br>
> </font></tt>
<br><tt><font size=2>  Yes, here is the error on my system.</font></tt>
<br>
<br><tt><font size=2>wbemcli ain -ac LXC_VirtualSystemSettingDataComponent
http://localhost/root/virt:LXC_VirtualSystemSettingData.InstanceID="LXC:Invalid"</font></tt>
<br><tt><font size=2>*</font></tt>
<br><tt><font size=2>* wbemcli: Cim: (6) CIM_ERR_NOT_FOUND: No such instance
(Invalid)</font></tt>
<br><tt><font size=2>*</font></tt>
<br>
<br><tt><font size=2>wbemcli ain -ac LXC_VirtualSystemSettingDataComponent
http://localhost/root/virt:LXC_VirtualSystemSettingData.InstanceID="Invalid"</font></tt>
<br><tt><font size=2>*</font></tt>
<br><tt><font size=2>* wbemcli: Cim: (1) CIM_ERR_FAILED: *** Provider Virt_VSSDComponent(4156)
exiting due to a SIGSEGV signal</font></tt>
<br><tt><font size=2>*</font></tt>
<br>
<br><tt><font size=2>All the test are done with sblim-sfcb-1.3.0-0.i386.</font></tt>
<br><tt><font size=2><br>
> > <br>
> >  def try_invalid_assoc(name_val, i, field, virt="Xen"):<br>
> > @@ -120,6 +120,8 @@<br>
> >    <br>
> >      if options.virt == "Xen" or options.virt
== "XenFV":<br>
> >          inst_id = "Xen:%s"
% test_dom<br>
> > +    elif options.virt == "LXC":<br>
> > +        inst_id = "LXC:%s" % test_dom<br>
> >      else:<br>
> >          inst_id = "KVM:%s"
% test_dom<br>
> >    <br>
> <br>
> Instead of adding another condition here, you can just modify the
else <br>
> to be:<br>
> <br>
> inst_id = "%s:%s" % (options.virt, test_dom)<br>
> <br>
> -- <br>
> Kaitlin Rupert<br>
> IBM Linux Technology Center<br>
> kaitlin@linux.vnet.ibm.com<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
</font></tt>