This being a race condition is my guess as well. Running "lsof" did not show any process holding a handle to that particular file. But then again, the script executes very quickly.<br><br>I will increase the HOST_MONITORING_INTERVAL config option and try it out.<br>
<br>-- <br>Thanks,<br>Rosh<br><a href="http://blogs.plexibus.com">http://blogs.plexibus.com</a><br><br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 1:06 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rubensm@dacya.ucm.es">rubensm@dacya.ucm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Could this mean a kind of race condition between different monitor<br>
actions?. May be you can try to increment the HOST_MONITORING_INTERVAL<br>
in oned.conf, let say to 120 and check if that helps<br>
<br>
Cheers<br>
<br>
Ruben<br>
<div><div></div><div class="h5"><br>
On Wed, Feb 10, 2010 at 5:38 PM, Jack Jill <<a href="mailto:jacknjill111@gmail.com">jacknjill111@gmail.com</a>> wrote:<br>
> While looking at oned.log, I saw a few error messages:<br>
> <quote><br>
> bash: /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> </quote><br>
><br>
> After sometime the error goes away as seen below.<br>
><br>
> Any idea what was the cause of this issue? I logged onto my 2 hosts and ran<br>
> the above script and they executed fine returning the MODELNAME for the<br>
> hosts.<br>
><br>
><br>
><br>
> Snippet of oned.log:<br>
> --------------------------<br>
><br>
> Wed Feb 10 10:08:06 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
> Wed Feb 10 10:08:08 2010 [VMM][I]: --Mark--<br>
> Wed Feb 10 10:09:07 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:09:36 2010 [InM][I]: --Mark--<br>
> Wed Feb 10 10:10:35 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:11:29 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
> Wed Feb 10 10:11:35 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:12:56 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
> Wed Feb 10 10:13:03 2010 [ReM][D]: VirtualMachineInfo method invoked<br>
> Wed Feb 10 10:13:03 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:14:04 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:14:32 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:14:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:14:34 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:14:34 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:14:34 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:14:34 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:14:39 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:15:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:15:33 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:16:02 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:16:04 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:16:04 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:16:04 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:16:04 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:16:09 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:16:32 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
> Wed Feb 10 10:16:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:16:33 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:17:32 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:17:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:17:34 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:17:34 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:17:34 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:17:34 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:17:39 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:18:02 2010 [VMM][I]: --Mark--<br>
> Wed Feb 10 10:18:02 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:18:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:19:02 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:19:04 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:19:04 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:19:04 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:19:04 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:19:09 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:19:30 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:19:33 2010 [InM][I]: --Mark--<br>
> Wed Feb 10 10:19:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:20:30 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:20:33 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:20:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:20:34 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:20:34 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:20:34 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:20:34 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:20:39 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:21:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:21:59 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:22:02 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:22:05 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:22:05 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:22:05 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:22:05 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:22:09 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:22:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:23:27 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:23:33 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:23:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> ^[[B^[[B^[[B^[[B^[[D^[[D^[[DWed Feb 10 10:23:34 2010 [InM][I]: Command<br>
> execution fail: 'mkdir -p /tmp/one-im/; cat ><br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if [ "x$?" != "x0" ];<br>
> then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:23:34 2010 [InM][I]: STDERR follows.<br>
> Wed Feb 10 10:23:34 2010 [InM][I]: bash:<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41: /bin/sh: bad<br>
> interpreter: Text file busy<br>
> Wed Feb 10 10:23:34 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:23:39 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:24:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:24:56 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:25:02 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:25:04 2010 [InM][I]: Command execution fail: 'mkdir -p<br>
> /tmp/one-im/; cat > /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41; if<br>
> [ "x$?" != "x0" ]; then exit -1; fi; chmod +x<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41;<br>
> /tmp/one-im//one_im-38dc4dfb60e7d302b37a7e141baebe41'<br>
> Wed Feb 10 10:25:04 2010 [InM][I]: ExitCode: 126<br>
> Wed Feb 10 10:25:08 2010 [InM][D]: Host 0 successfully monitored.<br>
> Wed Feb 10 10:25:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:26:24 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:26:33 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:26:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:27:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:27:53 2010 [VMM][I]: --Mark--<br>
> Wed Feb 10 10:27:53 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:28:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:28:53 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:29:32 2010 [InM][I]: --Mark--<br>
> Wed Feb 10 10:29:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:30:20 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:30:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:31:20 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:31:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:32:20 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:32:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:33:32 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:33:47 2010 [VMM][I]: Monitoring VM 35.<br>
> Wed Feb 10 10:34:33 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
> Wed Feb 10 10:34:47 2010 [VMM][I]: Monitoring VM 35.<br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks,<br>
> Rosh<br>
> <a href="http://blogs.plexibus.com" target="_blank">http://blogs.plexibus.com</a><br>
><br>
><br>
</div></div>> _______________________________________________<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>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Dr. Ruben Santiago Montero<br>
Associate Professor, Complutense University of Madrid<br>
<br>
URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</font></blockquote></div><br><br clear="all"><br><br><br>