Hi,<div><br></div><div>There was a bug preventing the hook to load the needed .rb files. Please find the solution at [1].</div><div><br></div><div>Regards,</div><div><br></div><div>-Tino</div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/1684">http://dev.opennebula.org/issues/1684</a></div>
<div><br clear="all"><div>--<br>Constantino Vázquez Blanco, PhD, MSc<br>Project Engineer<br>OpenNebula - The Open-Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula</div>
<br>
<br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 9:53 AM, 张光鹏 <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div style="MARGIN:10px">
<div>Hi, all</div>
<div style="TEXT-INDENT:2em"><span>I</span> <span>encountered an
error</span> <span>when</span> <span>to</span> <span>experience</span> <span>one3.8's </span><span>hook</span> <span>function.</span></div>
<div style="TEXT-INDENT:2em"><span>I have a host which id is 3,and
the configuration in oned.conf file is :</span></div>
<div style="TEXT-INDENT:2em"><span>
<div style="COLOR:#ff00ff">HOST_HOOK = [</div>
<div style="COLOR:#ff00ff"> name = "error",</div>
<div style="COLOR:#ff00ff"> on = "ERROR",</div>
<div style="COLOR:#ff00ff"> command = "ft/host_error.rb",</div>
<div style="COLOR:#ff00ff"> arguments = "$ID -r f",</div>
<div style="COLOR:#ff00ff"> remote = "no" ]</div>
<div style><font style color="#000001">But when my host monitore error ,the hook execute failure,
log is:</font></div></span></div></div>
<blockquote style="MARGIN-RIGHT:0px" dir="ltr">
<div>
<div style="COLOR:#993366">Thu Dec 6 16:44:13 2012 [InM][E]: Error monitoring host 3 : MONITOR FAILURE 3 Could not update remotes</div>
<div style="COLOR:#993366">Thu Dec 6 16:44:13 2012 [ReM][D]: Req:8352 UID:0 HostPoolInfo result SUCCESS, "<HOST_POOL><HOST><ID..."</div>
<div style="COLOR:#993366">Thu Dec 6 16:44:13 2012 [HKM][D]: Message received: LOG I 3 Command execution fail: /opt/nebula/ONE/var/remotes//hooks/ft/host_error.rb 3 -r f</div>
<div style="COLOR:#993366">Thu Dec 6 16:44:13 2012 [HKM][D]: Message received: LOG I 3 ExitCode: 255</div>
<div style="COLOR:#993366">Thu Dec 6 16:44:13 2012 [HKM][D]: Message received: EXECUTE FAILURE 3 error: -</div>
<div style="COLOR:#993366"> </div>
<div style>There are no error when i use one3.6, so i doubt
that if one3.8's host_error.rb have error?</div></div></blockquote>
<div style="COLOR:#993366"> </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1"><span class="HOEnZb"><font color="#888888">
<div><span>
<div>
<div>张光鹏</div>
<div>tel: 13718913184</div>
<div>mail: <a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a></div>
<div>移动互联网事业部</div>
<div><img src="cid:_Foxmail.0@C697B2AD-8534-4945-B545-FFA9E22AA4B5"></div>
<div>东软集团股份有限公司</div>
<div><a href="http://www.neusoft.com" target="_blank">http://www.neusoft.com</a></div>
<div> </div></div></span></div>
</font></span><br><p>---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</p><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>