[one-users] Automatic recover from hardware failure

Carlos Martín Sánchez cmartin at opennebula.org
Thu Aug 14 08:35:29 PDT 2014


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 | cmartin at opennebula.org | @OpenNebula
<http://twitter.com/opennebula> <cmartin at opennebula.org>


On Thu, Aug 14, 2014 at 5:28 PM, Johan Kooijman <mail at johankooijman.com>
wrote:

> Carlos,
>
> Thanks for the reply. When I put that hook into oned, I get this:
>
> oneadmin at 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 <
> cmartin at opennebula.org> wrote:
>
>> Hi,
>>
>> On Thu, Aug 14, 2014 at 1:07 PM, Johan Kooijman <mail at 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/> | cmartin at opennebula.org
>>  | @OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
>>
>>
>>
>
>
> --
> Met vriendelijke groeten / With kind regards,
> Johan Kooijman
>
> T +31(0) 6 43 44 45 27
> E mail at johankooijman.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140814/b5228e89/attachment-0001.htm>


More information about the Users mailing list