[Libvirt-cim] Failing query of AllocationCapabilities, GetInstance() does not return an instance

Guo Lian Yun yunguol at cn.ibm.com
Thu Dec 13 02:37:53 UTC 2007


The result of ein AllocationCapabilites is correct:

wbemcli ein
http://root:password@localhost:5988/root/virt:Xen_AllocationCapabilities
localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="ProcessorPool/0"
localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="MemoryPool/0"
localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="DiskPool/foo"
localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="NetworkPool/xenbr0"
localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="NetworkPool/virbr0"

But failing qurey of gi AllocationCapabilities:
wbemcli gi
http://root:password@localhost:5988/root/virt:Xen_AllocationCapabilities.InstanceID="ProcessorPool/0"
*
* wbemcli: Cim: (1) CIM_ERR_FAILED: A general error occurred that is not
covered by a more specific error code: "Could not get ResourceType."
*

Below is part of Virt_AllocationCapabilities provider's code:

static CMPIStatus GetInstance(CMPIInstanceMI *self,
                              const CMPIContext *context,
                              const CMPIResult *results,
                              const CMPIObjectPath *reference,
                              const char **properties)
{
        return return_alloc_cap(reference, results, 0);
}

static CMPIStatus EnumInstanceNames(CMPIInstanceMI *self,
                                    const CMPIContext *context,
                                    const CMPIResult *results,
                                    const CMPIObjectPath *reference)
{
        return alloc_cap_instances(_BROKER, reference, results, true,
NULL);
}

I think the causing issue it the same as
Xen_EnabledLogicalElementCapabilities provider.
Thanks!

Best,
Regards

Daisy Guo Lian Yun
E-mail: yunguol at cn.ibm.com
IBM China Development Lab, Shanghai, China
TEL: (86)-21-61008057
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071213/f3f87c9c/attachment.htm>


More information about the Libvirt-cim mailing list