<div dir="ltr">Hi Chris,<div><br></div><div>I hope you managed find an explanation for this, otherwise I would go about by:</div><div><br></div><div>* Edit /var/lib/one/datastores/im/run_probes<br></div><div>* Duplicate line 34 and insert an echo in the first one, so you know what's going on</div>
<div>* This will probably identify a script that's failing</div><div>* Try to run it individually</div><div><br></div><div>This is probably a configuration problem..</div><div><br></div><div>hope this helps</div><div>
<br></div><div>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 1:50 PM, Chris Gerard <span dir="ltr"><<a href="mailto:Chris@hubu.eu" target="_blank">Chris@hubu.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello, I am facing a problem while creating an host on opennebula.<br>
I followed the official documentation and achieved it in the past,
on the very same machine
(<a href="http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_centos_xen.html#qs-centos-xen" target="_blank">http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_centos_xen.html#qs-centos-xen</a>)
without having this problem.<br>
<br>
After following this doc, I created ssh keys on the frontend and
copied them on the node (yes, I can connect from the frontend to the
node via ssh using oneadmin's login without having a password
prompt), then I edited Xen's configuration in order to enable NAT
(my server provider has MAC filtering routers).<br>
<br>
Now, more about this error, this is what /var/log/one/oned.log says
on the frontend's server:<br>
<br>
<blockquote>[oneadmin@GeorgeOrwell .ssh]$ tail -f
/var/log/one/oned.log<br>
Tue Jul 15 13:34:16 2014 [InM][D]: Monitoring datastore files (2)<br>
Tue Jul 15 13:34:16 2014 [ImM][D]: Datastore default (1)
successfully monitored.<br>
Tue Jul 15 13:34:16 2014 [ImM][D]: Datastore files (2)
successfully monitored.<br>
Tue Jul 15 13:34:28 2014 [ReM][D]: Req:6544 UID:0 HostAllocate
invoked, "<a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>", "xen", "xen", "dummy", -1<br>
Tue Jul 15 13:34:28 2014 [ReM][D]: Req:6544 UID:0 HostAllocate
result SUCCESS, 6<br>
Tue Jul 15 13:34:31 2014 [InM][D]: Monitoring host
<a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a> (6)<br>
Tue Jul 15 13:34:33 2014 [ReM][D]: Req:1888 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1<br>
Tue Jul 15 13:34:33 2014 [ReM][D]: Req:1888 UID:0
VirtualMachinePoolInfo result SUCCESS,
"<VM_POOL></VM_POOL>"<br>
Tue Jul 15 13:34:33 2014 [ReM][D]: Req:1888 UID:0
VirtualMachinePoolInfo invoked, -2, -1, -1, -1<br>
Tue Jul 15 13:34:33 2014 [ReM][D]: Req:1888 UID:0
VirtualMachinePoolInfo result SUCCESS,
"<VM_POOL></VM_POOL>"<br>
Tue Jul 15 13:34:41 2014 [AuM][D]: Message received: AUTHENTICATE
SUCCESS 14 -<br>
<br>
Tue Jul 15 13:34:41 2014 [ReM][D]: Req:3744 UID:0 HostPoolInfo
invoked<br>
Tue Jul 15 13:34:41 2014 [ReM][D]: Req:3744 UID:0 HostPoolInfo
result SUCCESS, "<HOST_POOL><HOST><ID..."<br>
Tue Jul 15 13:34:50 2014 [InM][I]: Command execution fail: 'if [
-x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
xen4 /var/lib/one//datastores 4124 20 6 <a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>;
else exit 42; fi'<br>
Tue Jul 15 13:34:50 2014 [InM][I]: cat:
/tmp/one-collectd-client.pid: No such file or directory<br>
Tue Jul 15 13:34:50 2014 [InM][I]: /var/tmp/one/im/run_probes:
line 34: 4369 Aborted ./$i $ARGUMENTS<br>
Tue Jul 15 13:34:50 2014 [InM][E]: Error executing
collectd-client.rb<br>
Tue Jul 15 13:34:50 2014 [InM][I]: ExitCode: 134<br>
<br>
<br>
</blockquote>
After facing this, first yesterday (then I formatted today, just in
case and faced the same problem on a fresh install), I asked on IRC
and jfontan asked me to try this:<br>
<br>
<blockquote>
<pre style="font-family:Inconsolata,Inconsolata,Monaco,Consolas,'Courier New',monospace;font-size:14px;line-height:18.200000762939453px;margin-top:0em;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">
<span style="font-weight:normal!important">bash -x /var/tmp/one/im/run_probes xen4 /var/lib/one//datastores 4124 20 4 <a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>
</span></pre>
</blockquote>
Which gave this output:<br>
<br>
<blockquote>
<pre style="font-family:Inconsolata,Inconsolata,Monaco,Consolas,'Courier New',monospace;font-size:14px;line-height:18.200000762939453px;margin-top:0em;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">
<span style="font-weight:normal!important">[oneadmin@MarieCurie /]$ bash -x /var/tmp/one/im/run_probes xen4 /var/lib/one//datastores 4124 20 4 <a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>
++ dirname /var/tmp/one/im/run_probes
+ source /var/tmp/one/im/../scripts_common.sh
++ export LANG=C
++ LANG=C
++ export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
++ PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
++ AWK=awk
++ BASH=bash
++ CUT=cut
++ DATE=date
++ DD=dd
++ DF=df
++ DU=du
++ GREP=grep
++ ISCSIADM=iscsiadm
++ LVCREATE=lvcreate
++ LVREMOVE=lvremove
++ LVRENAME=lvrename
++ LVS=lvs
++ LN=ln
++ MD5SUM=md5sum
++ MKFS=mkfs
++ MKISOFS=genisoimage
++ MKSWAP=mkswap
++ QEMU_IMG=qemu-img
++ RADOS=rados
++ RBD=rbd
++ READLINK=readlink
++ RM=rm
++ SCP=scp
++ SED=sed
++ SSH=ssh
++ SUDO=sudo
++ SYNC=sync
++ TAR=tar
++ TGTADM=tgtadm
++ TGTADMIN=tgt-admin
++ TGTSETUPLUN=tgt-setup-lun-one
++ TR=tr
++ VGDISPLAY=vgdisplay
++ VMKFSTOOLS=vmkfstools
++ WGET=wget
+++ uname -s
++ '[' xLinux = xLinux ']'
++ SED='sed -r'
+++ basename /var/tmp/one/im/run_probes
++ SCRIPT_NAME=run_probes
+ export LANG=C
+ LANG=C
+ HYPERVISOR_DIR=xen4.d
+ ARGUMENTS='xen4 /var/lib/one//datastores 4124 20 4 <a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>'
++ dirname /var/tmp/one/im/run_probes
+ SCRIPTS_DIR=/var/tmp/one/im
+ cd /var/tmp/one/im
++ '[' -d xen4.d ']'
++ run_dir xen4.d
++ cd xen4.d
+++ ls collectd-client.rb collectd-client_control.sh
++ for i in '`ls *`'
++ '[' -x collectd-client.rb ']'
++ ./collectd-client.rb xen4 /var/lib/one//datastores 4124 20 4 <a href="http://MarieCurie.hubu.eu" target="_blank">MarieCurie.hubu.eu</a>
/var/tmp/one/im/run_probes: line 34: 12948 Aborted ./$i $ARGUMENTS
++ EXIT_CODE=134
++ '[' x134 '!=' x0 ']'
++ error_message 'Error executing collectd-client.rb'
++ echo 'ERROR MESSAGE --8<------'
ERROR MESSAGE --8<------
++ echo 'Error executing collectd-client.rb'
Error executing collectd-client.rb
++ echo 'ERROR MESSAGE ------>8--'
ERROR MESSAGE ------>8--
++ exit 134
+ data=
+ EXIT_CODE=134
+ echo ''
</span>
<span style="font-weight:normal!important">+ exit 134
</span></pre>
</blockquote>
I must admit that I'm quite lost here (and frustrated, since it
worked on this very same machine last week but I decided to format
since I played around a bit with it...) and have no idea about what
could cause it.<br>
<br>
Any help would be appreciated, thanks in advance and have a nice
day.<br>
<pre style="font-family:Inconsolata,Inconsolata,Monaco,Consolas,'Courier New',monospace;font-size:14px;line-height:18.200000762939453px;margin-top:0em;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">
<span style="font-weight:normal!important"></span>
<span style="font-weight:normal!important"></span></pre>
<pre style="font-family:Inconsolata,Inconsolata,Monaco,Consolas,'Courier New',monospace;font-size:14px;line-height:18.200000762939453px;margin-top:0em;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">
<span style="font-weight:normal!important"></span>
<span style="font-weight:normal!important"></span></pre>
</div>
<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><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>
</div>