<div dir="ltr"><div><div>Juan,<br></div> Is there a workaround this issue? For eg, the absolute value of the statistic is correct, and hence the negative sign can be ignored. I am asking this, because the upgrade to higher versions of RHEVM (server and API) looks unlikely for us.<br>
<br></div>-Vikas<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 1:32 PM, Juan Hernandez <span dir="ltr"><<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 04/30/2014 05:28 AM, Vikas Kokare wrote:<br>
> The "memory.used" statistic on a virtual machine is returning a negative<br>
> value , ie.<br>
><br>
> <statistic<br>
> href="/api/vms/260f8508-2bea-4202-9b93-f8f0dcddc334/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08"<br>
> id="b7499508-c1c3-32f0-8174-c1783e57bb08"><name>memory.used</name><description>Memory<br>
> used (agent)</description><values<br>
</div>> type="INTEGER"><value><datum>*-2061584303*</datum></value></values><type>GAUGE</type><unit>BYTES</unit><vm<br>
<div class="">> href="/api/vms/260f8508-2bea-4202-9b93-f8f0dcddc334"<br>
> id="260f8508-2bea-4202-9b93-f8f0dcddc334"/></statistic><br>
><br>
> by the RHEVM 3.2 ReST API.<br>
> while, in the Web Administration Console, memory consumption for the<br>
> same VM, shows a positive percentage value.<br>
><br>
> Is this an issue with the ReST API?<br>
><br>
<br>
</div>Yes it is a known issue, and was solved in 3.3.4 and 3.4.0:<br>
<br>
<a href="https://bugzilla.redhat.com/1068884" target="_blank">https://bugzilla.redhat.com/1068884</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>