<div dir="ltr"><div>In order to apply the patch, is it client side or server side(engine) changes or both?<br><br></div>-Vikas<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 3:19 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 10:35 AM, Vikas Kokare wrote:<br>
> Juan,<br>
> Is there a workaround this issue? For eg, the absolute value of<br>
> the statistic is correct, and hence the negative sign can be ignored. I<br>
> am asking this, because the upgrade to higher versions of RHEVM (server<br>
> and API) looks unlikely for us.<br>
><br>
> -Vikas<br>
><br>
<br>
</div>No, there is no workaround, and the negative value isn't correct, you<br>
can't just ignore the sign. The only alternative is to apply the patch.<br>
<br>
If you are using oVirt then you can get the source, apply the patch, and<br>
rebuild. Then you can replace the specific class, not everything. I<br>
could assist you with that.<br>
<br>
But I guess that you are using RHEV-M, and thus you will have a support<br>
contract, if you modify the binaries you will end up with an unsupported<br>
configuration. I would recommend you to open a support case with Red<br>
Hat, so that they can try to give you a solution, maybe a hot fix, but I<br>
can't guarantee that this is possible.<br>
<br>
In the long term your best alternative is to upgrade.<br>
<div class="im HOEnZb"><br>
><br>
> On Wed, Apr 30, 2014 at 1:32 PM, Juan Hernandez <<a href="mailto:jhernand@redhat.com">jhernand@redhat.com</a><br>
</div><div class="HOEnZb"><div class="h5">> <mailto:<a href="mailto:jhernand@redhat.com">jhernand@redhat.com</a>>> wrote:<br>
><br>
> On 04/30/2014 05:28 AM, Vikas Kokare wrote:<br>
> > The "memory.used" statistic on a virtual machine is returning a<br>
> negative<br>
> > value , ie.<br>
> ><br>
> > <statistic<br>
> ><br>
> href="/api/vms/260f8508-2bea-4202-9b93-f8f0dcddc334/statistics/b7499508-c1c3-32f0-8174-c1783e57bb08"<br>
> ><br>
> id="b7499508-c1c3-32f0-8174-c1783e57bb08"><name>memory.used</name><description>Memory<br>
> > used (agent)</description><values<br>
> ><br>
> type="INTEGER"><value><datum>*-2061584303*</datum></value></values><type>GAUGE</type><unit>BYTES</unit><vm<br>
> > 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>
> 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>
><br>
<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>
</div></div></blockquote></div><br></div>