Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ceph dashboard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Sun Oct 29, 2023 9:32 am    Post subject: ceph dashboard Reply with quote

hi, trying to set ceph dashboard:

Code:
# ceph mgr module enable dashboard
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: PyO3 modules may only be initialized once per interpreter process (pass --force to force enablement)


using --force enables it, but:
Code:
[WRN] MGR_MODULE_DEPENDENCY: 2 mgr modules have failed dependencies
    Module 'dashboard' has failed dependency: PyO3 modules may only be initialized once per interpreter process
    Module 'restful' has failed dependency: PyO3 modules may only be initialized once per interpreter process


it still fails.

faced the same on debian, but it was solved by installing "ceph-mgr-dashboard" package, can't find the same in portage tree. please your help

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
djpearman
n00b
n00b


Joined: 19 Jul 2005
Posts: 41
Location: Germany

PostPosted: Sat Feb 03, 2024 11:12 am    Post subject: Reply with quote

Hi,

I'm having the same issue. When I attempt to enable dashboard, the ceph manager log spits out:

Code:
2024-02-03T11:25:48.417+0100 7fe278e89040  1 mgr[py] Loading python module 'dashboard'
2024-02-03T11:25:48.877+0100 7fe278e89040 -1 mgr[py] Module not found: 'dashboard'
2024-02-03T11:25:48.877+0100 7fe278e89040 -1 mgr[py] Traceback (most recent call last):
  File "/usr/share/ceph/mgr/dashboard/__init__.py", line 60, in <module>
    from .module import Module, StandbyModule  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/ceph/mgr/dashboard/module.py", line 30, in <module>
    from .controllers import Router, json_error_page
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 1, in <module>
    from ._api_router import APIRouter
  File "/usr/share/ceph/mgr/dashboard/controllers/_api_router.py", line 1, in <module>
    from ._router import Router
  File "/usr/share/ceph/mgr/dashboard/controllers/_router.py", line 7, in <module>
    from ._base_controller import BaseController
  File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 11, in <module>
    from ..services.auth import AuthManager, JwtManager
  File "/usr/share/ceph/mgr/dashboard/services/auth.py", line 12, in <module>
    import jwt
  File "/lib/python3.11/site-packages/jwt/__init__.py", line 1, in <module>
    from .api_jwk import PyJWK, PyJWKSet
  File "/lib/python3.11/site-packages/jwt/api_jwk.py", line 7, in <module>
    from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
  File "/lib/python3.11/site-packages/jwt/algorithms.py", line 12, in <module>
    from .utils import (
  File "/lib/python3.11/site-packages/jwt/utils.py", line 7, in <module>
    from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
  File "/lib/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in
 <module>
    from cryptography.hazmat._oid import ObjectIdentifier
  File "/lib/python3.11/site-packages/cryptography/hazmat/_oid.py", line 9, in <module>
    from cryptography.hazmat.bindings._rust import (
ImportError: PyO3 modules may only be initialized once per interpreter process

2024-02-03T11:25:48.880+0100 7fe278e89040 -1 mgr[py] Class not found in module 'dashboard'
2024-02-03T11:25:48.880+0100 7fe278e89040 -1 mgr[py] Error loading module 'dashboard': (2) No such
file or directory


According to this thread the problem is related to packages cryptography and pyopenssl and is currently being worked on as far as I can tell. The workaround of downgrading both packages isn't feasible since older versions are no longer in the tree.

The problem also appears to be affecting module cephadm.

I haven't found a solution yet, but will post if I find one.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum