I have installed Open Nebula v 6 on a fresh CentOS 7.9 box and all seems to be going well, I can access the Web interface, build VMs and instantiate them. The problem is that the command-line commands don’t work:
-bash-4.2$ onecluster
Error: nokogiri gem not installed.
-bash-4.2$ onehost
Error: nokogiri gem not installed.
-bash-4.2$ whoami
oneadmin
-bash-4.2$
I rechecked the instructions provided, according to the docs:
“Since OpenNebula 5.10, all required Ruby gems are packaged and installed into a dedicated directory /usr/share/one/gems-dist/
symlinked to /usr/share/one/gems/
. Check the details in [Front-end Installation]”
The directory and symlink are there so that’s not the problem.
I looked at the onehost script and the ONE_LOCATION subdirectories listed in there exist and contain files:
RUBY_LIB_LOCATION = '/usr/lib/one/ruby'
GEMS_LOCATION = '/usr/share/one/gems'
REMOTES_LOCATION = '/var/lib/one/remotes/'
My one concern is that I cannot find any Ruby library called or containing the word “nokogiri”, so no “nokogiri.lib”, no “libnokogiri.a” etc etc.
I don’t know enough about Ruby to be able to troubleshoot this beyond here though.
Have I missed an installation step?
/ |
---|
Versions installed:
opennebula-rubygems-6.0.0.2-1.ce.el7.x86_64
opennebula-provision-data-6.0.0.2-1.ce.el7.noarch
opennebula-sunstone-6.0.0.2-1.ce.el7.noarch
opennebula-flow-6.0.0.2-1.ce.el7.noarch
opennebula-common-6.0.0.2-1.ce.el7.noarch
opennebula-libs-6.0.0.2-1.ce.el7.noarch
opennebula-guacd-6.0.0.2-1.2.0+1.ce.el7.x86_64
opennebula-6.0.0.2-1.ce.el7.x86_64
opennebula-provision-6.0.0.2-1.ce.el7.noarch
opennebula-fireedge-6.0.0.2-1.ce.el7.x86_64
opennebula-common-onecfg-6.0.0.2-1.ce.el7.noarch
opennebula-tools-6.0.0.2-1.ce.el7.noarch
opennebula-gate-6.0.0.2-1.ce.el7.noarch
Steps to reproduce:
See above.
Current results:
Se above
Expected results:
To be able to execute the one* command line tools.