Project

General

Profile

Actions

Bug #23992

closed

Dashboard and restful manager modules fail to start on openSUSE Tumbleweed with "ImportError: No module named OpenSSL"

Added by Lenz Grimmer almost 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When trying to start Ceph in my Tumbleweed-based dev environment using vstart.sh, the dashboard and restful manager modules fail to start due to a missing Python module, which install-deps.sh does not seem to install:

2018-05-03 10:29:49.203 7fd6ba98b3c0  1 mgr[py] Loading python module 'dashboard
'
2018-05-03 10:29:49.233 7fd6ba98b3c0 -1 mgr[py] Module not found: 'dashboard'
2018-05-03 10:29:49.233 7fd6ba98b3c0 -1 mgr[py] Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/dashboard/__init__.py", line 38, in <module>
    from .module import Module, StandbyModule
  File "/ceph/src/pybind/mgr/dashboard/module.py", line 15, in <module>
    from OpenSSL import crypto
ImportError: No module named OpenSSL

2018-05-03 10:29:49.233 7fd6ba98b3c0 -1 mgr[py] Class not found in module 'dashboard'
2018-05-03 10:29:49.233 7fd6ba98b3c0 -1 mgr[py] Error loading module 'dashboard': (2) No such file or directory

[...]

2018-05-03 10:29:49.595 7fd6ba98b3c0  1 mgr[py] Loading python module 'restful'
2018-05-03 10:29:49.783 7fd6ba98b3c0 -1 mgr[py] Module not found: 'restful'
2018-05-03 10:29:49.783 7fd6ba98b3c0 -1 mgr[py] Traceback (most recent call last):
  File "/ceph/src/pybind/mgr/restful/__init__.py", line 1, in <module>
    from .module import Module
  File "/ceph/src/pybind/mgr/restful/module.py", line 21, in <module>
    from OpenSSL import crypto
ImportError: No module named OpenSSL

2018-05-03 10:29:49.783 7fd6ba98b3c0 -1 mgr[py] Class not found in module 'restful'
2018-05-03 10:29:49.783 7fd6ba98b3c0 -1 mgr[py] Error loading module 'restful': (2) No such file or directory

Installing python2-pyOpenSSL manually resolves the error.

Actions #1

Updated by Lenz Grimmer almost 6 years ago

  • Affected Versions v13.0.0 added
Actions #2

Updated by Nathan Cutler almost 6 years ago

python2-pyOpenSSL is not required to build Ceph, that's why install-deps.sh doesn't install it. In other words, install-deps.sh only installs build dependencies.

Since vstart.sh doesn't use (RPM/DEB) packages, maybe it should include logic for installing its dependencies, similar to how run-make-check.sh installs "make check" dependencies?

Actions #3

Updated by Sebastian Wagner about 5 years ago

  • Status changed from New to Closed

just recently, there was a change how install-deps.sh installs python dependencies. Let's close this for now.

Actions

Also available in: Atom PDF