Hi Steve,<br><br>I assume you are using OpenNebula 2.2.<br><br>The host_shares contains the "running_vms" column; you need to update that column value with OpenNebula stopped.<br>
<br>We are still trying to figure out what causes this bug, so if you come across it again, it would be great if you could write down the operations that led to it.<br><br>Regards.<br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>

Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>

<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>


<br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 8:34 PM, Steven Timm <span dir="ltr"><<a href="mailto:timm@fnal.gov">timm@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

We have a host which frequently underreports the number of<br>
 VM's it is running.. this is a problem because most<br>
of our user templates are using a rank of "- RUNNING_VMS".<br>
<br>
As you can see from the output included below, onehost list<br>
and onehost show report only 5 running VM's but<br>
onevm list reports seven vm's assigned to this host and there<br>
are in fact seven vm's assigned to this host.  This has been<br>
underreporting for a couple of weeks, we have restarted oned and sched<br>
to no effect.<br>
<br>
It appears that onehost list gets its information from the host_shares<br>
table in the database.  What modifies that table?  Where does<br>
it get its info from?<br>
<br>
Steve Timm<br>
------------------------------<u></u>----------------<br>
[timm@fcl002 ~]$ onehost show 17<br>
HOST 17 INFORMATION<br>
ID                    : 17<br>
NAME                  : fcl007<br>
CLUSTER               : default<br>
STATE                 : MONITORED<br>
IM_MAD                : im_kvm<br>
VM_MAD                : vmm_kvm<br>
TM_MAD                : tm_ssh<br>
<br>
HOST SHARES<br>
MAX MEM               : 24675860<br>
USED MEM (REAL)       : 6602540<br>
USED MEM (ALLOCATED)  : 8388608<br>
MAX CPU               : 1600<br>
USED CPU (REAL)       : 22<br>
USED CPU (ALLOCATED)  : 200<br>
RUNNING VMS           : 5<br>
<br>
MONITORING INFORMATION<br>
ARCH=x86_64<br>
CPUSPEED=2660<br>
FREECPU=1577.6<br>
FREEMEMORY=20140228<br>
HOSTNAME=<a href="http://fcl007.fnal.gov" target="_blank">fcl007.fnal.gov</a><br>
HYPERVISOR=kvm<br>
MODELNAME=Intel(R) Xeon(R) CPU E5640 @ 2.67GHz<br>
NETRX=23816529<br>
NETTX=365298<br>
TOTALCPU=1600<br>
TOTALMEMORY=24675860<br>
USEDCPU=22.4000000000001<br>
USEDMEMORY=6602540<br>
------------------------------<u></u>-------------<br>
<br>
[root@fcl007 ~]# virsh list<br>
 Id Name                 State<br>
------------------------------<u></u>----<br>
  6 one-1107             running<br>
 19 one-1202             running<br>
 27 one-1235             running<br>
 30 one-1236             running<br>
 31 one-1237             running<br>
 32 one-841              running<br>
 33 one-1110             running<br>
<br>
<br>
<br>
<br>
-- <br>
------------------------------<u></u>------------------------------<u></u>------<br>
Steven C. Timm, Ph.D  <a href="tel:%28630%29%20840-8525" value="+16308408525" target="_blank">(630) 840-8525</a><br>
<a href="mailto:timm@fnal.gov" target="_blank">timm@fnal.gov</a>  <a href="http://home.fnal.gov/%7Etimm/" target="_blank">http://home.fnal.gov/~timm/</a><br>
Fermilab Computing Division, Scientific Computing Facilities,<br>
Grid Facilities Department, FermiGrid Services Group, Group Leader.<br>
Lead of FermiCloud project.<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div><br>