Hi<div><br></div><div>Yes, we have included some modifications to check these corner cases in OpenNebula 3.8. We are also having problems to reproduce this issue, but it seems to happen when deleting a VM and some race condition with the VM moving to another state at the same time. So we are not 100% sure this is completely fixed in 3.8.</div>
<div><br></div><div>After some discussions we have decided to include some additional logic to prevent this to happen (keep some extra relationships in the objects). As a bonus we'll get the VMs IDs that are running on a host or the specific VMs that using an image directly from the 'onehost show' and 'oneimage show' commands; and sunstone views.</div>
<div><br></div><div>Now, how to fix this. I'd recommend to:</div><div><br></div><div>0.- Stop OpenNebula</div><div>1.- BACK UP, BACK UP and BACK UP your database</div><div>2.- Upgrade to OpenNebula 3.8 (may probably solve this from happen again)</div>
<div>3.- Use the new fsck option of onedb that will fix the figures for the images and hosts. [2]</div><div>4.- Restart your services.<br><br>[1] <a href="http://opennebula.org/documentation:rel3.8:upgrade" target="_blank">http://opennebula.org/documentation:rel3.8:upgrade</a><br>
[2] <a href="http://opennebula.org/documentation:rel3.8:onedb#onedb_fsck" target="_blank">http://opennebula.org/documentation:rel3.8:onedb#onedb_fsck</a></div><div><br></div><div>We'll start working on this ASAP and provide a patch for the additional checks. </div>
<div><br></div><div>Thanks for your feedbacl and really sorry for the inconvenience :(</div><div><br></div><div>Best</div><div><br></div><div>Ruben </div><div><br><div class="gmail_quote">On Tue, Oct 23, 2012 at 10:15 PM, Giovanni Toraldo <span dir="ltr"><<a href="mailto:me@gionn.net" target="_blank">me@gionn.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
2012/10/23 Duverne, Cyrille <<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>>:<br>
<div>>> How could we solve this ?<br>
>> Bug or feature ?<br>
<br>
</div>I am facing this bug as well, but I am not able to reproduce it consistently.<br>
<br>
Last time happened while testing a VMWare infrastructure with ON 3.6,<br>
I usually correct the wrong VM count directly on the database after<br>
I've finished tests.<br>
<br>
I think there is some corner case that lead to multiple subtractions<br>
in the host counter for the same VM (after a FAIL, maybe).<br>
<span><font color="#888888"><br>
--<br>
Giovanni Toraldo<br>
<a href="http://gionn.net" target="_blank">http://gionn.net</a><br>
</font></span><div><div>_______________________________________________<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/listinfo.cgi/users-opennebula.org<br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>
OpenNebula - The Open Source Solution for Data Center Virtualization<br></a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>
<br>
</div>
</div></blockquote></div></div>