The thing is even after we manually update the host_shares table and set RVM to 0, after couple of minutes again the values get updated.<br>When I track down the source, I see SchedulerVirtualMachine.cc & LifeCycleActions.cc calling host->add_capacity host->del_capacity which in turn calling HostShare<br>
Where is the scheduler looking at when it is updating the HostShare table?<br><br><div class="gmail_quote">2010/12/17 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@gmail.com">jfontan@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You are right, there are running-vms-on-a-node counters in the<br>
database that are modified by oned on vm creation/deletion. That<br>
behavior should only happen on daemon crash, we have to look more into<br>
that.<br>
<br>
<br>
2010/12/15 Székelyi Szabolcs <<a href="mailto:szekelyi@niif.hu">szekelyi@niif.hu</a>>:<br>
<div><div></div><div class="h5">> On Tuesday 14 December 2010 20:33:05 Rangababu Chakravarthula wrote:<br>
>> Environment: KVM, ONE 1.4<br>
>><br>
>> How does the value for RVM get populated? Even though there were no VM's<br>
>> running on the host the RVM shows some value. Few times it even shows<br>
>> negative value. What might be the problem?  How can we identify the root<br>
>> cause?<br>
><br>
> We had the same problem, see <a href="http://dev.opennebula.org/issues/317" target="_blank">http://dev.opennebula.org/issues/317</a><br>
><br>
> My theory is that the VM counter is incremented or decremented at specific<br>
> points in the code, but some incrementing is missing somewhere.<br>
><br>
> However, since then we haven't experienced this again.<br>
><br>
> --<br>
> cc<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher<br>
DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>
Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a><br>
OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br>