Cannot add Host in opennebula 4.14.2

Opennebula 4.14.2 is successfully installed on a single server (CentOS 6.7), but I can’t add a host.
Here is the error message in oned.conf file:

[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 0 Op-fr-end.ipwav.com; else exit 42; fi’
[InM][I]: ./pci.rb:36:in `require’: no such file to load – shellwords (LoadError)
[InM][I]: from ./pci.rb:36
[InM][E]: Error executing pci.rb
[InM][E]: Error executing collectd-client_control.sh
[InM][I]: ExitCode: 1

Please help !

Hi,

Short answer:

yum -y install pciutils

Already discussed here

Kind Regards,
Anton Todorov

Yes I know but this does not work for me and I still have the same error.
Please help

Ok,

Then check what package provides shellwords.rb:

yum whatprovides ‘*/shellwords.rb’

Probably ruby-libs package is not installed?

Kind Regards,
Anton Todorov

Thank you for your help!
I don’t understand the output of this command but here it is:

ruby-libs-1.8.7.374-4.el6_6.x86_64 : Libraries necessary to run Ruby
Repo : base
Matched from:
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb
Filename : /usr/lib/ruby/1.8/shellwords.rb

ruby-libs-1.8.7.374-4.el6_6.i686 : Libraries necessary to run Ruby
Repo : base
Matched from:
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb
Filename : /usr/lib/ruby/1.8/shellwords.rb

ruby-libs-1.8.7.374-4.el6_6.x86_64 : Libraries necessary to run Ruby
Repo : installed
Matched from:
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb
Filename : /usr/lib/ruby/1.8/shellwords.rb

Thank

Hi,

I think it is time to clarify some details:
You have OpenNebula installed on centos6 server (Op-fr-end.ipwav.com).
You are adding another server as KVM hypervisor to the front-end.

The error message is generated on the KVM hypervisor and it is complaining that there is no shellwords.rb found.

So the question is the output of yum whatprovides... from which server is run?
It is saying that the ruby-libs package is installed, but I suspect that this is on the front-end server, not the hypervisor one. You must have ruby-libs on both servers installed.

Kind Regards,
Anton Todorov

Thank you Anton,
But it is a single server installation (front-end server = hypervisor server); so " yum whatprovides ‘*/shellwords.rb’" command is running on Op-fr-end.xxxx.com server. I was using OpenNebula 4.12 with the same architecture but I didn’t meet any problem with that.

Thank you

Well this is weird.

I am with similar setup in the lab (centos7 tough) and have no such issues.
Then for some reason the oneadmin user has no rights to read these files?

Kind Regards,
Anton Todorov

Anton I confirm that there is no file:

I have noticed that many folders and files are missing in the ruby librairy directory :[quote]/usr/lib/ruby/1.8/[/quote]
So how can I fixe this

Hi,
I hope there are missing files only on ruby on your system. You can try to reinstall the packages

yum reinstall ruby ruby-libs

Kind Regards,
Anton Todorov

Yooopiii !! Thank you very much Anton: this has solved my problem.
Thank you ! I’m very happy !