<div dir="ltr">Hi Carlos<div><br></div><div>After digging the problem further, my state change problems started happening after I switched my VM monitoring from the VMM POLL to the new IM MONITOR VM polling available in 4.0.</div>
<div><br></div><div style>It seems :</div><div style><br></div><div style>- VM enters RUNNING state (from PROLOG)</div><div style>- OpenNebula triggers a VMM POLL action - But I have the VMM POLL action completely wiped out from my driver and replaced by the IM MONITOR polling. Monitoring fails (actually my VMM driver ignores the POLL action)</div>
<div style>- VM enters UNKNOWN state (from RUNNING)</div><div style>- Normal IM MONITOR polling occurs, the new VM is detected and returned with the host monitoring</div><div style>- VM enters RUNNING state (from UNKNOWN)</div>
<div style><br></div><div style>In that case, implementing the "FROM" VM_HOOK option will not help (I was trying to detect that initial "UNKNOWN/RUNNING" state flap when my VMs are initially deployed).</div>
<div style><br></div><div style>Perhaps we should look at delaying the first VMM POLL action until the next time the host the VM is running is monitored?</div><div style><br></div><div style>Of course, another option for my would be restoring my VMM POLL action and not dropping it out entirely even if it has been replaced by IM MONITOR....</div>
<div style><br></div><div style>Thanks</div><div style><br></div><div style>Simon</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 5:30 AM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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...</div>
<div><br></div>

<div>But maybe we should add support for it, with something like:</div><div><br></div><div>VM_HOOK = [</div><div> ON = "RUNNING",</div><div> FROM = "UNKNOWN"</div><div>

]</div><div><br></div><div>Please open a feature request if this approach looks good to you.</div><div><br></div><div>Regards</div><div><br></div></div><div class="gmail_extra"><br clear="all">

<div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>


</div>
<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 19, 2013 at 5:28 PM, Simon Boulet <span dir="ltr"><<a href="mailto:simon@nostalgeek.com" target="_blank">simon@nostalgeek.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">

<div dir="ltr">Hi,<div><br></div><div>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.</div>



<div><br></div><div>Any ideas how I can do this?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div><br></div><div>Simon</div></font></span></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>