Discussion:
[one-users] Opennebula node (ubuntu 14.04) saying Error executing collectd-client.rb when creating a host.
Manuel Lanazca
2014-12-22 18:44:20 UTC
Permalink
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
Hamada, Ondrej
2014-12-22 22:48:40 UTC
Permalink
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-***@lists.opennebula.org] On Behalf Of Manuel Lanazca
Sent: Monday, December 22, 2014 7:44 PM
To: ***@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.
Manuel Lanazca
2014-12-22 22:56:55 UTC
Permalink
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

***@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
***@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

***@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--
Post by Hamada, Ondrej
Hi Manuel,
According to the log, can you please verify that the script
1) is present on the newly added node
2) is accessible by oneadmin user
3) is executable by oneadmin user
Cheers,
Ondra
Lanazca
*Sent:* Monday, December 22, 2014 7:44 PM
*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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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.
Hamada, Ondrej
2014-12-22 23:32:55 UTC
Permalink
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:***@gmail.com]
Sent: Monday, December 22, 2014 11:57 PM
To: Hamada, Ondrej
Cc: ***@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

***@km1:/var/tmp/one/im/kvm.d$<mailto:***@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
***@kvm1:/var/tmp/one/im/kvm.d$<mailto:***@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

***@kvm1:/var/tmp/one/im/kvm.d$<mailto:***@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 <***@acision.com<mailto:***@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-***@lists.opennebula.org<mailto:users-***@lists.opennebula.org>] On Behalf Of Manuel Lanazca
Sent: Monday, December 22, 2014 7:44 PM
To: ***@lists.opennebula.org<mailto:***@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.
Manuel Lanazca
2014-12-23 16:35:20 UTC
Permalink
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!
Post by Hamada, Ondrej
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.
http://www.gossamer-threads.com/lists/openssh/dev/8359
Cheers,
Ondra
*Sent:* Monday, December 22, 2014 11:57 PM
*To:* Hamada, Ondrej
*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
-rwxr-xr-x 1 oneadmin oneadmin 1863 Dec 22 13:16
/var/tmp/one/im/run_probes
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
/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--
Hi Manuel,
According to the log, can you please verify that the script
1) is present on the newly added node
2) is accessible by oneadmin user
3) is executable by oneadmin user
Cheers,
Ondra
Lanazca
*Sent:* Monday, December 22, 2014 7:44 PM
*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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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.
Jaime Melis
2015-01-13 17:39:31 UTC
Permalink
Hi Manuel,

apologies for the delay. This is one of those complex issues that are hard
to debug. Can you follow the directions I explained in the link you sent
me? I can't think of an easier way to debug this...

cheers,
Jaime
Hello Jaime,
I found this issue very very similar to my issue. Can you help me please ?
Hello,
Post by Manuel Lanazca
Thanks for your support.
I have fixed the issue with the SSH_CLIENT variable. Now it is available,
but the issue still happens.
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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!
The error from collectd-client.rb means that the system variable
Post by Hamada, Ondrej
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.
http://www.gossamer-threads.com/lists/openssh/dev/8359
Cheers,
Ondra
*Sent:* Monday, December 22, 2014 11:57 PM
*To:* Hamada, Ondrej
*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
/var/tmp/one/im/run_probes
-rwxr-xr-x 1 oneadmin oneadmin 1863 Dec 22 13:16
/var/tmp/one/im/run_probes
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
/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--
Hi Manuel,
According to the log, can you please verify that the script
1) is present on the newly added node
2) is accessible by oneadmin user
3) is executable by oneadmin user
Cheers,
Ondra
*Manuel Lanazca
*Sent:* Monday, December 22, 2014 7:44 PM
*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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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
'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'
/tmp/one-collectd-client.pid: No such file or directory
/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.
--
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | ***@opennebula.org
Loading...