Hi,

You could have a hook that notifies you when the VM enters the UNK state,
and ignore the other hook unless you were notified of the UNK state change
before...

But maybe we should add support for it, with something like:

VM_HOOK = [
 ON = "RUNNING",
 FROM = "UNKNOWN"
]

Please open a feature request if this approach looks good to you.

Regards


--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmar...@opennebula.org>


On Fri, Apr 19, 2013 at 5:28 PM, Simon Boulet <si...@nostalgeek.com> wrote:

> Hi,
>
> I am using  various VM_HOOK to do certain action when VM states changes. I
> am trying to have a hook to know when a VM recovers from UNKNOWN to RUNNING
> state. I have set up a "on RUNNING" hook, however I can't seem to determine
> which state the VM is recovering from, ex. is the VM recovering from
> UNKNOWN or ATTACHNIC state, etc.
>
> Any ideas how I can do this?
>
> Thanks
>
> Simon
>
> _______________________________________________
> 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