Hi Johan, Yes, it looks like a bug related to the -p option. We'll take a look: http://dev.opennebula.org/issues/3153
Regards. -- Carlos Martín, MSc Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula <http://twitter.com/opennebula> <cmar...@opennebula.org> On Thu, Aug 14, 2014 at 5:28 PM, Johan Kooijman <m...@johankooijman.com> wrote: > Carlos, > > Thanks for the reply. When I put that hook into oned, I get this: > > oneadmin@admin:~$ /var/lib/one/remotes//hooks/ft/host_error.rb 0 -r -p 2 > /var/lib/one/remotes//hooks/ft/host_error.rb:97:in `<main>': undefined > method `each' for #<String:0x00000001e02148> (NoMethodError) > > Something wrong on my end? Sounds like a coding thingy? > > HOST_HOOK = [ > name = "error", > on = "ERROR", > command = "ft/host_error.rb", > arguments = "$HID -r -p 2", > remote = "no" ] > > ONE 4.8 on Ubuntu 14.04. > > On Thu, Aug 14, 2014 at 4:20 PM, Carlos Martín Sánchez < > cmar...@opennebula.org> wrote: > >> Hi, >> >> On Thu, Aug 14, 2014 at 1:07 PM, Johan Kooijman <m...@johankooijman.com> >> wrote: >> >>> Hi all, >>> >>> 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. >>> How would I do such a thing? >>> >> >> 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. >> >> 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. >> 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. >> >> Regards >> >> [1] >> http://docs.opennebula.org/4.8/advanced_administration/high_availability/ftguide.html >> >> -- >> Carlos Martín, MSc >> Project Engineer >> OpenNebula - Flexible Enterprise Cloud Made Simple >> www.OpenNebula.org <http://www.opennebula.org/> | cmar...@opennebula.org >> | @OpenNebula <http://twitter.com/opennebula> <cmar...@opennebula.org> >> >> >> > > > -- > Met vriendelijke groeten / With kind regards, > Johan Kooijman > > T +31(0) 6 43 44 45 27 > E m...@johankooijman.com >
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org