<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Daniel,<br>
    Existing keys will not be altered <span class="moz-smiley-s1"><span>
        :-) </span></span><br>
    <br>
    <div class="moz-cite-prefix">On 11/16/2015 08:47 PM, Daniel Henrique
      Barboza wrote:<br>
    </div>
    <blockquote cite="mid:5649F372.6000009@linux.vnet.ibm.com"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Assuming that you don't change or exclude any existing info/result
      from the<br>
      current API (ex: exclude an existing key), I approve this
      proposal.<br>
      <br>
      <br>
      Daniel<br>
      <br>
      <div class="moz-cite-prefix">On 11/16/2015 12:41 PM, Suresh Babu
        Angadi wrote:<br>
      </div>
      <blockquote cite="mid:5649EB33.9060001@linux.vnet.ibm.com"
        type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=windows-1252">
        Hi Team,<br>
        With the current implementation of gingerbase, the processor
        information is empty for s390 architecture.<br>
        O/p of /plugins/gingerbase/host on one of the lpar with KVM for
        IBM z systems:<br>
        {<br>
          "os_distro":"KVM for IBM z Systems",<br>
          "os_codename":"Z",<br>
          "os_version":"1.1.1",<br>
          "cpus":3,<br>
          "memory":4000559104<br>
        }<br>
        <br>
        Note: cpu_model is not fetched for s390x architecture.<br>
        <br>
        Additional Information which can be provided for benefit of end
        users:<br>
        <br>
        Architecture Details: "architecture": "x86 or s390x or  ppc etc"<br>
        <br>
        CPU details(for x86 and s390x): Showing online cpus count and
        offline cpus count(planned to use lscpu for x86 and s390x, not
        sure how to fetch these details in power pc). Display offline
        CPUs only if any processors are offline.<br>
        "cpus": {"online": &lt;integer(online_cpus_count)&gt;<br>
                      "offline": &lt;integer(offline_cpus_count)&gt;}<br>
        Processor Type(s390x): shared and  dedicated cpus<br>
        "cpus": {"online": &lt;integer(online_cpus_count)&gt;<br>
                      "offline": &lt;integer(offline_cpus_count)&gt;<br>
                      "shared": &lt;integer(shared_cpus_count)&gt;<br>
                      "dedicated":
        &lt;integer(dedicated_cpus_count)&gt;}<br>
        <br>
        <br>
        Host Name(for all architecture): Currently IP address is
        displayed in the new UI (below kimchi logo). Displaying host
        name would be more meaningful.<br>
        <br>
        Memory Details(s390x specific): In s390x architecture, we can
        have online and offline memory. <br>
        example:<br>
        [root@ ~]# lsmem <br>
        Address Range                          Size (MB)  State   
        Removable  Device<br>
===============================================================================<br>
        0x0000000000000000-0x000000000fffffff        256  online  
        no         0<br>
        0x0000000010000000-0x000000002fffffff        512  online  
        yes        1-2<br>
        0x0000000030000000-0x000000007fffffff       1280  online  
        no         3-7<br>
        0x0000000080000000-0x00000000ffffffff       2048  offline 
        -          8-15<br>
        <br>
        Memory device size  : 256 MB<br>
        Memory block size   : 256 MB<b><br>
        </b><b>Total online memory : 2048 MB</b><b><br>
        </b><b>Total offline memory: 2048 MB</b><br>
        <br>
        so memory would be split to include total online and total
        offline memory.<br>
        <br>
        memory: {"online": &lt;total_online_memory&gt;,
        "offline":&lt;total offline memory&gt;}<br>
        <br>
        Virtualization Details(s390x specific): <br>
        Providing Hypervisor and Hypervisor Vendor details when
        virtualized. Example Hypervisor: PR/SM , Hypervisor vendor: IBM.<br>
        Lpar Details: Lpar name and Lpar ID<br>
        "virtualization": {"hypervisor":"PR/SM",<br>
                                    "hypervisor_vendor": "IBM",<br>
                                    "lpar_name": "LP6",<br>
                                    "lpar_number":"22"}<br>
        <br>
        So the o/p json of /plugins/gingerbase/host would look like
        below:<br>
        for x86:<br>
        {<br>
          "os_distro":"Fedora",<br>
          "architecture":"x86_64"<br>
          "cpu_model":"Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz",<br>
          "cpus":{"online":3, "offline":2},<br>
          "os_version":"21",<br>
          "os_codename":"Twenty One",<br>
          "memory":7933894656<br>
          "host":&lt;host_name&gt;<br>
        }<br>
        <br>
        for power:<br>
        Only change, addition of "architecture" and "host" information,
        unless we decide to show offline cpus<br>
        <br>
        for s390x:<br>
        {<br>
          "os_distro":"KVM for IBM z Systems",<br>
          "os_codename":"Z",<br>
          "os_version":"1.1.1",<br>
          "architecture": "s390x"<br>
          "cpu_model": "IBM / 2827 / 743 H43"<br>
          cpus: {"online":2,<br>
                    "offline":2,<br>
                     "shared":2,<br>
                     "dedicated":0}<br>
          memory : {"online" : 2147483628,<br>
                            "offline" :  2147483628}<br>
          "virtualization": {"hypervisor":"PR/SM",<br>
                                    "hypervisor_vendor": "IBM",<br>
                                    "lpar_name": "LP6",<br>
                                    "lpar_number":"22"},<br>
        "host":"zfwpc160"<br>
        }<br>
        <br>
        <br>
        <pre class="moz-signature" cols="72">-- 
Regards,
Suresh Babu Angadi</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kimchi-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kimchi-devel@ovirt.org">Kimchi-devel@ovirt.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Suresh Babu Angadi</pre>
  </body>
</html>