Failing query of AllocationCapabilities, GetInstance() does not return an instance

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@cn.ibm.com IBM China Development Lab, Shanghai, China TEL: (86)-21-61008057

Guo Lian Yun wrote:
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." *
Hi Daisy, this issue was fixed by Kaitlin some days ago :) and is part of the code base since tuesday. So I guess your code is a bit older ? Please can you check out and reinstall the providers. Then this problem should be fixed. -- Regards Heidi Eckhart Software Engineer Linux Technology Center - Open Hypervisor heidieck@linux.vnet.ibm.com ************************************************** IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschaeftsfuehrung: Herbert Kircher Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

Heidi Eckhart wrote:
Guo Lian Yun wrote:
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." *
Hi Daisy, this issue was fixed by Kaitlin some days ago :) and is part of the code base since tuesday. So I guess your code is a bit older ? Please can you check out and reinstall the providers. Then this problem should be fixed.
This query is failing for me too. I fixed a similar issue with ELEC, which might be what you're thinking of. =) Thanks for finding this Daisy! I'll take a look at the problem today. -- Kaitlin Rupert IBM Linux Technology Center karupert@us.ibm.com

Kaitlin Rupert wrote:
Heidi Eckhart wrote:
Guo Lian Yun wrote:
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." *
Hi Daisy, this issue was fixed by Kaitlin some days ago :) and is part of the code base since tuesday. So I guess your code is a bit older ? Please can you check out and reinstall the providers. Then this problem should be fixed.
This query is failing for me too. I fixed a similar issue with ELEC, which might be what you're thinking of. =) Thanks for finding this Daisy! I'll take a look at the problem today.
Sorry for my wrong respond. I've tested and its also failing for me. Thanks Daisy for finding this issue :). -- Regards Heidi Eckhart Software Engineer Linux Technology Center - Open Hypervisor heidieck@linux.vnet.ibm.com ************************************************** IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschaeftsfuehrung: Herbert Kircher Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294
participants (3)
-
Guo Lian Yun
-
Heidi Eckhart
-
Kaitlin Rupert