<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 19, 2014 at 1:06 PM, Mario Benincasa <span dir="ltr"><<a href="mailto:mbeninca@gmail.com" target="_blank">mbeninca@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Thanks Carlos for your answer.<br>

<br></div>About your suggestion, do you mean calling the fault tolerance script (host_error.rb) with the "-f" option?<br></div><div>Or some more tweaking? <br>
</div>Because the comments in the oned.conf file say "force resubmission of suspended VMs".<br></div>In my case VMs are not in suspended state, but in pending state. <br></div>Resubmission means redeploy, i.e. new VM id allocated?<br>


<br></div>Thanks<br><br></div>    Mario</div></blockquote><div><br></div><div>I was suggesting to modify the script, and perform the onevm deploy just after the vm.delete(true) call.</div><div>The hook is a simple ruby script (host_error.rb), it shouldn't be too difficult. But if are not familiar with the ruby API, you can also create another bash script to perform the deployment, and then call that one from the host_error.rb hook.</div>

<div><br></div><div>Let us know if you run into any problems.</div><div><br></div><div>Regards</div><div>--<br></div><div><div><div dir="ltr"><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>

<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" target="_blank" style="color:rgb(42,93,176)"></a></span></div>

</div><div><br></div></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">

<div><div><div><div><div><div><div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 11:58 AM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div class="gmail_extra">

<div class="gmail_quote"><div><div>
On Tue, Mar 18, 2014 at 10:18 AM, Mario Benincasa <span dir="ltr"><<a href="mailto:mbeninca@gmail.com" target="_blank">mbeninca@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi all<br><br></div>I have a simple question (well I believe it is simple :-) )<br>




</div>I searched through documentation and mailing list archive, but I wasn't able to find anything. <br>
</div>Apologies if the question has already been answered somewhere.<br><div><div><br clear="all"><div><div><div>After template instantiation, the VM is placed in pending state until the scheduler decides to run it.<br></div>





<div>If there are not enough resources, it will remain in pending state. <br></div><div>"onevm deploy" will anyway run it, even in case of not enough resources. <br><br></div><div>My question is: is it possible to automatically have the deploy of the VM, even if the scheduler would leave it in pending state?<br>





<br></div><div>I need this for the fault tolerance script: I have two nodes, each running a certain number of VMs. In case a node crashes, I want the VMs to be deployed in the surviving node, even if the scheduler disagrees.<br>





</div><div>Currently, the VMs are left in pending state, thus they are not recovering the service. Of course a manual "onevm deploy" would recover, but I would like to have it automatically :-) <br></div><div>The impacted resource appears to be the RAM: the sum of the VMs' RAM allocation exceeds the physical RAM, but in real operating conditions the  RAM usage is quite under the allocated RAM, and thus I expect no problem in such an over provisioning. <br>





<br></div><div>Thanks for any hint.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>   Mario</div></font></span></div></div></div></div></div></blockquote><div><br>

</div></div></div><div>We don't have any way to tell the scheduler to ignore the VM requirements, and I think it would be a problematic feature. Memory overcommitment (up to a certain amount) may not have a noticeable impact, but a full disk will certainly do.</div>




<div><br></div><div>I think your best option is to have the fault tolerance script do the forced deploy.</div><div><br></div><div>Regards</div><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>




OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>




</div></div></div><br><div> </div></div><br></div></div>
</blockquote></div><br><br clear="all"><br></div></div><span class=""><font color="#888888">-- <br><div dir="ltr"><span style="font-family:'courier new',monospace">Mario Benincasa<br>Via del Conservatorio 55<br>00186 Roma - Italy<br>

tel.   <a href="tel:%2B39%20066872917" value="+39066872917" target="_blank">+39 066872917</a><br>mob.   <a href="tel:%2B39%203346210331" value="+393346210331" target="_blank">+39 3346210331</a><br>
fax:   <a href="tel:%2B39%200697656510" value="+390697656510" target="_blank">+39 0697656510</a><br>email: <a href="mailto:mbeninca@gmail.com" target="_blank">mbeninca@gmail.com</a><br><br></span></div>
</font></span></div></div></div></div></div></div></div></div></div>
</blockquote></div><br></div></div>