<div dir="ltr">Carlos,<div><br></div><div>Thanks for the reply. When I put that hook into oned, I get this:</div><div><br></div><div><div>oneadmin@admin:~$ /var/lib/one/remotes//hooks/ft/host_error.rb 0 -r -p 2</div><div>/var/lib/one/remotes//hooks/ft/host_error.rb:97:in `<main>': undefined method `each' for #<String:0x00000001e02148> (NoMethodError)</div>
</div><div><br></div><div class="gmail_extra">Something wrong on my end? Sounds like a coding thingy?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">HOST_HOOK = [</div><div class="gmail_extra">
name = "error",</div><div class="gmail_extra"> on = "ERROR",</div><div class="gmail_extra"> command = "ft/host_error.rb",</div><div class="gmail_extra"> arguments = "$HID -r -p 2",</div>
<div class="gmail_extra"> remote = "no" ]</div><div class="gmail_extra"><br></div><div class="gmail_extra">ONE 4.8 on Ubuntu 14.04.</div><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 4:20 PM, 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-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div class="gmail_extra">
<div class="gmail_quote"><div>On Thu, Aug 14, 2014 at 1:07 PM, Johan Kooijman <span dir="ltr"><<a href="mailto:mail@johankooijman.com" target="_blank">mail@johankooijman.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">Hi all,<div><br></div><div>I'm almost finished setting up the POC for ONE so far. One last piece I can't really figure out is how to recreate VM's on a different host in case a host fails, like hardware off the grid. </div>
<div>How would I do such a thing?</div></div></blockquote><div><br></div></div><div>You can enable the fault tolerance hook in oned.conf [1]. This hook will perform the onevm delete --recreate action on the VMs of the failed host. To avoid false positives because of network connectivity issues, use the -p flag of the hook.</div>
<div><br></div><div>The delete-recreate action will create a new VM from the original template. This means that the VM will have a new ID, IP, and clean disks.</div><div>We are working on a new mechanism for hosts with shared storage, to "migrate" the failed VM to a new host keeping the current IPs, disk state, etc.</div>
<div><br></div><div>Regards</div><div> </div><div>[1] <a href="http://docs.opennebula.org/4.8/advanced_administration/high_availability/ftguide.html" target="_blank">http://docs.opennebula.org/4.8/advanced_administration/high_availability/ftguide.html</a><br>
</div><div><div dir="ltr"><br>--<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><div> </div></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Met vriendelijke groeten / With kind regards,<br>Johan Kooijman<br><br>T +31(0) 6 43 44 45 27<br>E <a href="mailto:mail@johankooijman.com" target="_blank">mail@johankooijman.com</a></div>
</div></div>