Hi Carlos,
OK, I've modified the deploy script to execute my preparation script.
It works fine. This behavior is just what I needed!
Thanks!
--
Akihiko Ota
From: Carlos Martín Sánchez
Subject: Re: [one-users] VM_HOOK "on = CREATE" cannot work on remote hosts
Date: Thu, 21 Ju
gt; Akihiko Ota
>
> From: Carlos Martín Sánchez
> Subject: Re: [one-users] VM_HOOK "on = CREATE" cannot work on remote hosts
> Date: Mon, 18 Jun 2012 18:19:16 +0200
>
> > Hi,
> >
> > When a VM is created it is not assigned yet to any host, until
an up after
VM shutdown. I expect this config works fine.
Thanks,
--
Akihiko Ota
From: Carlos Martín Sánchez
Subject: Re: [one-users] VM_HOOK "on = CREATE" cannot work on remote hosts
Date: Mon, 18 Jun 2012 18:19:16 +0200
> Hi,
>
> When a VM is created it is not assigned ye
Hi,
When a VM is created it is not assigned yet to any host, until the
scheduler decides to deploy it, thus the hook can't be remote.
You can use the RUNNING hook instead.
Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenN
Hi,
I tryed to run a script on remote hosts by VM_HOOK. It works as
intended if it is defined "on = DONE", but don't work if defined "on = CREATE".
I have defined a hook in etc/oned.conf as follows:
VM_HOOK = [
name = "clear_work",
on= "CREATE",
command = "ft/clear_work.sh