[Libvirt-cim] [PATCH] [TEST]#4 Add "AllocationCapabilities" to associate with ECTP and skip KVM_RegisteredProfile association

Guo Lian Yun yunguol at cn.ibm.com
Mon Mar 9 02:18:01 UTC 2009


Any one review this patch?
Thanks!

libvirt-cim-bounces at redhat.com wrote on 2009-03-06 14:17:35:

> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1236320248 28800
> # Node ID b213dddc93404028075f10d7355c468ec8230274
> # Parent  c6f7256013b97dc57a31312897e45eb3cd8604a7
> [TEST]#4 Add "AllocationCapabilities" to associate with ECTP and 
> skip KVM_RegisteredProfile association
> 
> 
> Updates from 3 to 4:
> Use a variable to assign revision value to be calculated for comparison
> 
> Updates from 2 to 3:
> Add changeset instead of skip the verification of 
> KVM_ResourceAllocation to ECTP for all the src versions
> 
> Tested for KVM/LXC with current sources and rpm on Pegasus
> 
> Signed-off-by: Guolian Yun<yunguol at cn.ibm.com>
> 
> diff -r c6f7256013b9 -r b213dddc9340 suites/libvirt-
> cim/cimtest/ElementConforms/01_forward.py
> --- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py   Tue
> Mar 03 08:47:40 2009 -0800
> +++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py   Thu
> Mar 05 22:17:28 2009 -0800
> @@ -53,7 +53,9 @@
>  test_dom = "domU"
>  bug_sblim = '00007'
>  libvirt_cim_ectp_changes = 686
> -libvirt_cim_input_graphics_ectp = 773 
> +libvirt_cim_input_graphics_ectp = 773
> +libvirt_cim_ac_lower = 796
> +libvirt_cim_ac_upper = 818
> 
>  def  init_managed_ele_values(server, virt):
>      verify_ectp_list = {} 
> @@ -63,7 +65,7 @@
>      curr_cim_rev, changeset = get_provider_version(virt, server)
>      if curr_cim_rev >= libvirt_cim_ectp_changes:
>          cn_names2 = ["VirtualSystemMigrationService", "DiskPool", 
> "NetworkPool",
> -                     "ProcessorPool", "MemoryPool"]
> +                     "ProcessorPool", "MemoryPool", 
"AllocationCapabilities"]
>          cn_names.extend(cn_names2)
>      if curr_cim_rev >= libvirt_cim_input_graphics_ectp:
>          cn_names.append("ConsoleRedirectionService")
> @@ -136,6 +138,11 @@
>          if profile.InstanceID not in unsupp_prof:
>              profiles_instid_list.append(profile.InstanceID)
> 
> +    for prof_id in profiles_instid_list:
> +        if prof_id == "CIM:DSP1041-ResourceAllocation-1.1.0c" and\
> +           libvirt_cim_ac_lower <= curr_cim_rev < libvirt_cim_ac_upper:
> +            profiles_instid_list.remove(prof_id)
> +
>      return status, profiles_instid_list 
> 
>  @do_main(sup_types)
> 
> _______________________________________________
> 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/20090309/690198d5/attachment.htm>


More information about the Libvirt-cim mailing list