Just in case you haven't figured out yet.... host_id and host_name holds
the id and name of the host, you can easily execute your fencing command
like `fence #{host_name}` ...

Good luck

Ruben

On Tue Nov 18 2014 at 8:13:23 PM Sander Klein <roe...@roedie.nl> wrote:

> Hi,
>
> Can anyone help me with modifying ft/host_error.rb to call a custom
> fencing script.
>
> I would like to feed my script the ID of the failing host. My script
> will then do some checks and return 0 if the host is indeed dead and
> host_error.rb can continue resubmitting VM's. It will return 1 if the
> host is not dead and host_error.rb must do nothing.
>
> Since I'm not a ruby guy I was hoping if anyone could help me with a
> couple of lines or a small patch.
>
> Greets,
>
> Sander
> _______________________________________________
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to