[Libvirt-cim] [PATCH] [TEST] #2 Add branch of err code to RPCS/04

Guo Lian Yun yunguol at cn.ibm.com
Fri Apr 10 08:10:40 UTC 2009


libvirt-cim-bounces at redhat.com wrote on 2009-04-02 08:24:52:

> >      rpcs_conn = eval("rpcs_service." + get_typed_class(options.virt, 
\
> > "ResourcePoolConfigurationService"))(options.ip)
> > +    curr_cim_rev, changeset = get_provider_version(options.virt, 
> options.ip)
> > +    if curr_cim_rev >= libvirt_cim_child_pool_rev:
> > +        cim_errno = pywbem.CIM_ERR_INVALID_PARAMETER
> > +    else:
> > +        cim_errno  = pywbem.CIM_ERR_NOT_SUPPORTED
> >      try:
> >          rpcs_conn.CreateChildResourcePool()
> >      except pywbem.CIMError, (err_no, desc):
> 
> Sorry Daisy, I didn't have a chance to look at the first revision.
> 
> Agreed - you need to branch this test.  However, this method is now 
> supported.  So, for libvirt-cim >= 837, this test should attempt to 
> create network pool and verify that network pool is created.

  There are three arguments in CreateChildResourcePool:
  ElementName, Settings and ParentPool.
  What's the ParentPool on cimtest? Do I have to create a primordial pool 
at first?

  One more thing, the provider only support create networkpool now, right?


  Thanks!

> 
> -- 
> Kaitlin Rupert
> IBM Linux Technology Center
> kaitlin at linux.vnet.ibm.com
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090410/72d8f22b/attachment.htm>


More information about the Libvirt-cim mailing list