[one-users] Host hooks aren't triggered

Zaina AFOULKI zaina.afoulki at ensi-bourges.fr
Thu Mar 31 07:36:22 PDT 2011


 I just checked back the oned.log and it seems that the hook is executed
 [HKM][D]: Message received: EXECUTE SUCCESS 31 disable

 However the VMs aren't re-submitted as expected ?

 Thanks,
-- 
 Zaina

 On Thu, 31 Mar 2011 16:20:27 +0200, Zaina AFOULKI wrote:
> Hi,
>
> I'm having some trouble getting the HOST_HOOKS to work:
> I added this to the configuration file and restarted oned.
>
> HOST_HOOK = [
>     name      = "disable",
>     on        = "DISABLE",
>     command   = "host_error.rb",
>     arguments = "$HID -r y",
>     remote    = "no" ]
>
> However when I disable a host using "onehost disable" the VMs aren't
> re-submitted.
> The oned.log doesn't indicate that the hook has been triggered.
>
> I'm using OpenNebula 2.2 and the script host_error.rb is indeed
> located in my $ONE_LOCATION/share/hooks/
>
> What am I doing wrong? Thanks





More information about the Users mailing list