Bug #4724

opennebula-sunstone missing files in a standalone install

Added by Alvaro Simon over 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:08/18/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Client API & Library
Target version:Release 5.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.0

Description

Hi

We are installing a Sunstone standalone server, we are using the latest CentOS 7 packages provided by ONE: opennebula-sunstone-5.0.1-1

This package is installed without problems, we are using the passenger setup with apache, the problem is that some files are still missing, we get this error message from passenger:

cannot load such file -- VirtualMachineDriver (LoadError)
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/one/ruby/vcenter_driver.rb:45:in `<top (required)>'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/one/sunstone/routes/vcenter.rb:26:in `<top (required)>'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/lib/one/sunstone/sunstone-server.rb:418:in `block in <top (required)>'
  /usr/lib/one/sunstone/sunstone-server.rb:417:in `each'
  /usr/lib/one/sunstone/sunstone-server.rb:417:in `<top (required)>'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
  config.ru:9:in `block in <main>'
  /usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
  /usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `eval'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'

This issue is solved if you install the opennebula-server package, but it is not required by opennebula-sunstone by default. Maybe the missing files should be included by opennebula-sunstone package, or include another extra package, called opennebula-sunstone-standalone or something similar to install a standalone Sunstone service in an easy way.

Cheers and thanks!
Alvaro

Associated revisions

Revision c2b7864a
Added by Javi Fontan about 4 years ago

bug #4724: move VM Driver constants to oca

History

#1 Updated by Ruben S. Montero over 4 years ago

  • Assignee set to Javi Fontan
  • Target version set to Release 5.2

#2 Updated by Javi Fontan about 4 years ago

  • Category changed from Packaging to Client API & Library
  • Status changed from Pending to Closed
  • Resolution set to fixed

vCenter driver no longer requires VirtualMachineDriver. Constants moved to OCA that is installed by ruby-opennebula.

Also available in: Atom PDF