<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 3, 2017 7:37 AM, &quot;TranceWorldLogic .&quot; &lt;<a href="mailto:tranceworldlogic@gmail.com">tranceworldlogic@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>It look interesting.<br></div>Would you please point me some document that cover in detail ?<br><br></div><div>I was looking for mechanism where I can monitor guest application.<br></div><div>If application get failed or crash then I need to restart or start other VM.<br></div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Such monitoring should probably be done outside the VM. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div><div>Is it possible in ovirt ? <br></div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">There&#39;s a fence_rhevm script in the fence-agents pacakge, but it needs a bit of tweaking to work with 4.x</div><div dir="auto">Y.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div><div>I though I will use hook but as you explain it clear me that my understand was wrong.<br></div><div>Thanks for your help.<br></div><div><br></div>Thanks,<br></div>~Rohit<br><div><div><div><br></div></div></div></div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 2, 2017 at 1:04 PM, Vinzenz Feenstra <span dir="ltr">&lt;<a href="mailto:vfeenstr@redhat.com" target="_blank">vfeenstr@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt; On Dec 30, 2016, at 11:03 AM, TranceWorldLogic . &lt;<a href="mailto:tranceworldlogic@gmail.com" target="_blank">tranceworldlogic@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; HI,<br>
<br>
Hi there,<br>
<span><br>
&gt;<br>
&gt; I was exploring more about ovirt-gueste-engin.<br>
&gt; It look to me very easy to configure add add hook as script.<br>
&gt;<br>
&gt; But my doubt is, how to invoke those script from ovirt-engine ?<br>
&gt; Please some one help me to understand this part.<br>
&gt; I am looking into python SDK code to figure out same but still not got luck<br>
<br>
</span>Guest agent hooks aren’t triggered through the SDK, hooks are triggered when certain events happen on the hypervisor side.<br>
e.g. A VM gets migrated from HOST A to HOST B or the VM gets suspended. In these cases VDSM _can_ send a message to the guest<br>
agent asking it to process all hooks.<br>
<br>
That those hooks are enabled are depending on the migration policy configured. Currently all but the ‘Legacy’  migration policies do cause the hooks to be executed, given a new enough guest agent, VDSM and cluster version.<br>
HTH<br>
<br>
<br>
&gt;<br>
&gt; Thanks,<br>
&gt; ~Rohit<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br>
</blockquote></div><br></div>
</div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>