Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B OpenNebula/one#4304: Distribution gems affects OpenNebula #1073

Merged
merged 1 commit into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ Or use service in older Linux systems:
# service opennebula start
# service opennebula-sunstone start

.. note::

If OpenNebula services fail to start, check you

- followed :ref:`Step 4. Ruby Runtime Installation (Optional) <ruby_runtime>`,
- are not affected by :ref:`known issue on Debian and Ubuntu <known_issues_ruby>`.

.. _verify_frontend_section:

Step 7. Verifying the Installation
Expand Down
34 changes: 34 additions & 0 deletions source/intro_release_notes/release_notes/known_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,37 @@ Sometimes during the upgrade process the new host attribute ``PREV_STATE`` is no
For fixing it just update the host using ``onedb update-body host --id <host_id>`` and add ``/HOST/PREV_STATE`` attribute with same value as that of ``/HOST/STATE``.

We are not able to reproduce the error, any information if you are being hit by this will be very welcome here: https://github.com/OpenNebula/one/issues/4099

.. _known_issues_ruby:

OpenNebula services fail to start
=================================

**Debian and Ubuntu platforms**: It might happen that even when :ref:`front-end installation steps <ruby_runtime>` are followed and when using OpenNebula shipped Ruby gems (i.e., you have a symlink ``/usr/share/one/gems`` present), some OpenNebula services (mainly Sunstone, OneFlow, OneGate) fail to start due to an error in Ruby. It was discovered that Ruby gems installed system-wide via distribution packages might conflict with the gems shipped with the OpenNebula. It's recommended to uninstall any unnecessary Ruby gems installed via packages **from your distribution**.

List Ruby gems installed from distribution packages (prefixed with ``ruby-``), e.g.:

.. prompt:: bash # auto

# dpkg -l | grep ruby-
ii ruby-did-you-mean 1.2.0-2 all smart error messages for Ruby > 2.3
ii ruby-minitest 5.10.3-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii ruby-net-telnet 0.1.1-2 all telnet client library
ii ruby-power-assert 0.3.0-1 all library showing values of variables and method calls in an expression
ii ruby-rack 1.6.4-4ubuntu0.1 all modular Ruby webserver interface
ii ruby-rack-protection 1.5.3-2+deb9u1build0.18.04.1 all Protects against typical web attacks for Rack apps
ii ruby-sinatra 1.4.8-1 all Ruby web-development dressed in a DSL
ii ruby-test-unit 3.2.5-1 all unit testing framework for Ruby
ii ruby-tilt 2.0.1-2 all Generic interface to multiple Ruby template engines

Review list and uninstall unnecessary ones.

.. important::

Distribution packages usually causing problems are ``ruby-rack``, ``ruby-rack-protection`` and ``ruby-sinatra``. Run the following command on your front-end to make sure they are not installed (always review the final list of packages to be removed from your system by packager):

.. prompt:: bash # auto

# apt-get remove ruby-rack ruby-rack-protection ruby-sinatra

Problem is going to be `fixed <https://github.com/OpenNebula/one/issues/4304>`__ in OpenNebula 5.12.