[Libvirt-cim] [PATCH] ESD does not support specific result clases properly

Heidi Eckhart heidieck at linux.vnet.ibm.com
Mon Dec 3 08:53:43 UTC 2007


Kaitlin Rupert wrote:
> # HG changeset patch
> # User Kaitlin Rupert <karupert at us.ibm.com>
> # Date 1196448217 28800
> # Node ID 6515e4a1c90bba936fa1a15ddf2f501491e16fb5
> # Parent  a10df58ddd0ed7f8e905ce21a28a5e585fd304ff
> ESD does not support specific result clases properly.
>
> Specifying a result class of Xen_VirtualSystemSettingData does not work (see query below), however a result class of CIM_ManagedElement does work.
>
> This is because I tried to make this provider accept both generic and specific result classes.  Heidi's libcmpiutil API update makes it so that the providers don't need to be concerned with handling more generic cases (CIM_ManagedElement, CIM_VirtualSystemSettingData, etc).
>
> Also, I missed this during Heidi's patch review - instead of using Xen_ResourceAllocationSettingData / KVM_ResourceAllocationSettingData in the resource_allocation_setting_data list, we should use specific RASD class names so that specifying a specific RASD class as a result class is supported.  See below for failing query.
>
> Failing queries:
> wbemcli ain -ac Xen_ElementSettingData -arc Xen_VirtualSystemSettingData 'http://root:elm3b41@localhost/root/virt:Xen_VirtualSystemSettingData.InstanceID="Xen:Domain-0"'
>
> wbemcli ain -ac Xen_ElementSettingData -arc Xen_ProcResourceAllocationSettingData 'http://root:elm3b41@localhost/root/virt:Xen_ProcResourceAllocationSettingData.InstanceID="Domain-0/3"'
>
>   
Great Kaitlin :). You got me. When changing this association, I was 
really confused about the given references, but forgot to add this 
comment to the mail. This makes it now clear, how the association works 
:). Good work !

-- 
Regards

Heidi Eckhart
Software Engineer
Linux Technology Center - Open Hypervisor

heidieck at 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




More information about the Libvirt-cim mailing list