Hello,

Thanks for  your support.

I have fixed the issue with the SSH_CLIENT variable. Now it is available,
but the issue still happens.



Dec 23 11:29:24  neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
kvm /var/lib/one//datastores 4124 20 53 kvm1 ;
else                              exit 42; fi'
Dec 23 11:29:24  neb1 oned[18378]: [Z0][InM][I]: cat:
/tmp/one-collectd-client.pid: No such file or directory
Dec 23 11:29:24  neb1 oned[18378]: [Z0][InM][I]:
/var/tmp/one/im/run_probes: line 34:  4404 Aborted                 (core
dumped) ./$i $ARGUMENTS
Dec 23 11:29:24  neb1 oned[18378]: [Z0][InM][E]: Error executing
collectd-client.rb
Dec 23 11:29:24  neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
Dec 23 11:29:28  neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
kvm /var/lib/one//datastores 4124 20 53 kvm1 ;
else                              exit 42; fi'
Dec 23 11:29:28  neb1 oned[18378]: [Z0][InM][I]: cat:
/tmp/one-collectd-client.pid: No such file or directory
Dec 23 11:29:28  neb1 oned[18378]: [Z0][InM][I]:
/var/tmp/one/im/run_probes: line 34:  4504 Aborted                 (core
dumped) ./$i $ARGUMENTS
Dec 23 11:29:28  neb1 oned[18378]: [Z0][InM][E]: Error executing
collectd-client.rb
Dec 23 11:29:28  neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
Dec 23 11:29:30  neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
kvm /var/lib/one//datastores 4124 20 53 kvm1 ;
else                              exit 42; fi'
Dec 23 11:29:30  neb1 oned[18378]: [Z0][InM][I]: cat:
/tmp/one-collectd-client.pid: No such file or directory
Dec 23 11:29:30  neb1 oned[18378]: [Z0][InM][I]:
/var/tmp/one/im/run_probes: line 34:  4644 Aborted                 (core
dumped) ./$i $ARGUMENTS
Dec 23 11:29:30  neb1 oned[18378]: [Z0][InM][E]: Error executing
collectd-client.rb
Dec 23 11:29:30  neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
Dec 23 11:29:33  neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
kvm /var/lib/one//datastores 4124 20 53 kvm1 ;
else                              exit 42; fi'
Dec 23 11:29:33  neb1 oned[18378]: [Z0][InM][I]: cat:
/tmp/one-collectd-client.pid: No such file or directory
Dec 23 11:29:33  neb1 oned[18378]: [Z0][InM][I]:
/var/tmp/one/im/run_probes: line 34:  4786 Aborted                 (core
dumped) ./$i $ARGUMENTS
Dec 23 11:29:33  neb1 oned[18378]: [Z0][InM][E]: Error executing
collectd-client.rb
Dec 23 11:29:33  neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
Dec 23 11:29:33  neb1 oned[18378]: [Z0][ONE][E]: Error monitoring Host
kvm1  (53): Error executing collectd-client.rb


Thanks for your help!



2014-12-22 18:32 GMT-05:00 Hamada, Ondrej <ondrej.ham...@acision.com>:

>  The error from collectd-client.rb means that the system variable
> SSH_CLIENT is unset.
>
>
>
> You can verify this by connecting to the node via ssh from the opennebula
> fronend as ‘oneadmin’ user and running the ‘env’ command (the same way as
> opennebula does).
>
>
>
> Normally sshd should set this env variable when opening the loginshell. I
> don’t know what shell you use for oneadmin, but you should check that its
> rc scripts are not clearing up the SSH_CLIENT variable or something like
> that.
>
>
>
> Here’s a bit outdated discussion, but the problem seems similar:
> http://www.gossamer-threads.com/lists/openssh/dev/8359
>
>
>
> Cheers,
>
>
>
> Ondra
>
>
>
>
>
> *From:* Manuel Lanazca [mailto:manuel81...@gmail.com]
> *Sent:* Monday, December 22, 2014 11:57 PM
> *To:* Hamada, Ondrej
> *Cc:* users@lists.opennebula.org
> *Subject:* Re: [one-users] Opennebula node (ubuntu 14.04) saying Error
> executing collectd-client.rb when creating a host.
>
>
>
> Thanks a lot for your answer.
>
> Here my answer
>
>
> 1)      is present on the newly added node
>
> The script is present in the new node
>
>      oneadmin@km1:/var/tmp/one/im/kvm.d$ ls -l /var/tmp/one/im/run_probes
>      -rwxr-xr-x 1 oneadmin oneadmin 1863 Dec 22 13:16
> /var/tmp/one/im/run_probes
>     oneadmin@kvm1:/var/tmp/one/im/kvm.d$
>
> 2)      is accessible by oneadmin user
>
>       the oneadmin user is the owner
>
> 3)      is executable by oneadmin user
>
>
>        It  can execute the script
>
> This is the output
>
> oneadmin@kvm1:/var/tmp/one/im/kvm.d$  /var/tmp/one/im/run_probes kvm
> /var/lib/one//datastores 4124 20 49 kvm1
> ./collectd-client.rb:122:in `<main>': undefined method `split' for
> nil:NilClass (NoMethodError)
> ERROR MESSAGE --8<------
> Error executing collectd-client.rb
> ERROR MESSAGE ------>8--
>
>
>   2014-12-22 17:48 GMT-05:00 Hamada, Ondrej <ondrej.ham...@acision.com>:
>
>  Hi Manuel,
>
>
>
> According to the log, can you please verify that the script
> "/var/tmp/one/im/run_probes":
>
>
>
> 1)      is present on the newly added node
>
> 2)      is accessible by oneadmin user
>
> 3)      is executable by oneadmin user
>
>
>
> Cheers,
>
>
>
> Ondra
>
>
>
> *From:* Users [mailto:users-boun...@lists.opennebula.org] *On Behalf Of 
> *Manuel
> Lanazca
> *Sent:* Monday, December 22, 2014 7:44 PM
> *To:* users@lists.opennebula.org
> *Subject:* [one-users] Opennebula node (ubuntu 14.04) saying Error
> executing collectd-client.rb when creating a host.
>
>
>
> Hello OpenNebula Team,
>
>
>
> I am having an issue adding a new host to OpenNebula. I hope someone can
> help me.
>
>
>
>
>
> OpenNebula releaase: 4.10.1-1
>
> Hypervisor:  Ubuntu 14.04 / 3.13.0-43-generic
>
> libvirt-bin                         1.2.2-0ubuntu13.1.7
>
>
>
>
>
> LOG:
>
>
>
> Dec 22 13:16:16 neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
> 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
> kvm /var/lib/one//datastores 4124 20 50 kvm1;
> else                              exit 42; fi'
>
> Dec 22 13:16:16 neb1 oned[18378]: [Z0][InM][I]: cat:
> /tmp/one-collectd-client.pid: No such file or directory
>
> Dec 22 13:16:16 neb1 oned[18378]: [Z0][InM][I]:
> /var/tmp/one/im/run_probes: line 34: 37231 Aborted                 (core
> dumped) ./$i $ARGUMENTS
>
> Dec 22 13:16:16 neb1 oned[18378]: [Z0][InM][E]: Error executing
> collectd-client.rb
>
> Dec 22 13:16:16 neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
>
> Dec 22 13:16:27 neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
> 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
> kvm /var/lib/one//datastores 4124 20 50 kvm1;
> else                              exit 42; fi'
>
> Dec 22 13:16:27 neb1 oned[18378]: [Z0][InM][I]: cat:
> /tmp/one-collectd-client.pid: No such file or directory
>
> Dec 22 13:16:27 neb1 oned[18378]: [Z0][InM][I]:
> /var/tmp/one/im/run_probes: line 34: 37433 Aborted                 (core
> dumped) ./$i $ARGUMENTS
>
> Dec 22 13:16:27 neb1 oned[18378]: [Z0][InM][E]: Error executing
> collectd-client.rb
>
> Dec 22 13:16:27 neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
>
> Dec 22 13:16:30 neb1 oned[18378]: [Z0][InM][I]: Command execution fail:
> 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes
> kvm /var/lib/one//datastores 4124 20 50 kvm1;
> else                              exit 42; fi'
>
> Dec 22 13:16:30 neb1 oned[18378]: [Z0][InM][I]: cat:
> /tmp/one-collectd-client.pid: No such file or directory
>
> Dec 22 13:16:30 neb1 oned[18378]: [Z0][InM][I]:
> /var/tmp/one/im/run_probes: line 34: 37573 Aborted                 (core
> dumped) ./$i $ARGUMENTS
>
> Dec 22 13:16:30 neb1 oned[18378]: [Z0][InM][E]: Error executing
> collectd-client.rb
>
> Dec 22 13:16:30 neb1 oned[18378]: [Z0][InM][I]: ExitCode: 134
>
>
>
>
>
>
>
> I have tried to perform some debug
>
>
>
> ++ ./collectd-client.rb kvm /var/lib/one//datastores 4124 20 49 kvm1
>
> ./collectd-client.rb:122:in `<main>': undefined method `split' for
> nil:NilClass (NoMethodError)
> ++ EXIT_CODE=1
> ++ '[' x1 '!=' 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 1
> + data=
> + EXIT_CODE=1
> + echo ''
>
> + exit 1
>
>
>     ------------------------------
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you for
> understanding.
>
>
>   ------------------------------
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you for
> understanding.
>
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to