FS#68711 - [ceph] MGR: Module 'dashboard' Error

Attached to Project: Community Packages
Opened by likeit (likeit) - Sunday, 22 November 2020, 19:37 GMT
Last edited by Thore Bödecker (foxxx0) - Tuesday, 06 April 2021, 09:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thore Bödecker (foxxx0)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

# ceph -s
...
health: HEALTH_ERR
no active mgr
Module 'dashboard' has failed: cannot import name 'partial_dict' from 'dashboard.tools' (/usr/share/ceph/mgr/dashboard/tools.py)
9 pgs not deep-scrubbed in time
9 pgs not scrubbed in time
...

At the moment I don't know where the error is coming from. I'm still looking.
This task depends upon

Closed by  Thore Bödecker (foxxx0)
Tuesday, 06 April 2021, 09:32 GMT
Reason for closing:  Fixed
Comment by likeit (likeit) - Sunday, 22 November 2020, 19:53 GMT
Logs:
Nov 06 13:18:51 node2 ceph-mgr[627]: ignoring --setuser ceph since I am not root
Nov 06 13:18:51 node2 ceph-mgr[627]: ignoring --setgroup ceph since I am not root
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.152 7f751fe1b640 -1 client.0 error registering admin socket command: (17) File exists
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.152 7f751fe1b640 -1 client.0 error registering admin socket command: (17) File exists
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.152 7f751fe1b640 -1 client.0 error registering admin socket command: (17) File exists
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.152 7f751fe1b640 -1 client.0 error registering admin socket command: (17) File exists
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.152 7f751fe1b640 -1 client.0 error registering admin socket command: (17) File exists
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.172 7f7530e7d640 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard' while running on mgr.m2: cannot im>
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.172 7f7530e7d640 -1 dashboard.serve:
Nov 22 18:43:26 node2 ceph-mgr[627]: 2020-11-22 18:43:26.172 7f7530e7d640 -1 Traceback (most recent call last):
Nov 22 18:43:26 node2 ceph-mgr[627]: File "/usr/share/ceph/mgr/dashboard/module.py", line 306, in serve
Nov 22 18:43:26 node2 ceph-mgr[627]: # We were shut down while waiting
Nov 22 18:43:26 node2 ceph-mgr[627]: File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 346, in generate_routes
Nov 22 18:43:26 node2 ceph-mgr[627]: File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 273, in load_controllers
Nov 22 18:43:26 node2 ceph-mgr[627]: logger.debug("mods=%s", mods)
Nov 22 18:43:26 node2 ceph-mgr[627]: File "/lib/python3.8/importlib/__init__.py", line 127, in import_module
Nov 22 18:43:26 node2 ceph-mgr[627]: return _bootstrap._gcd_import(name[level:], package, level)
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap>", line 991, in _find_and_load
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap_external>", line 783, in exec_module
Nov 22 18:43:26 node2 ceph-mgr[627]: File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
Nov 22 18:43:26 node2 ceph-mgr[627]: File "/usr/share/ceph/mgr/dashboard/controllers/health.py", line 14, in <module>
Nov 22 18:43:26 node2 ceph-mgr[627]: from ..tools import partial_dict
Nov 22 18:43:26 node2 ceph-mgr[627]: ImportError: cannot import name 'partial_dict' from 'dashboard.tools' (/usr/share/ceph/mgr/dashboard/tools.py)
Nov 22 18:45:02 node2 ceph-mgr[627]: 2020-11-22 18:45:02.430 7f7540bfa640 -1 received signal: Terminated from /sbin/init (PID: 1) UID: 0
Nov 22 18:45:02 node2 ceph-mgr[627]: 2020-11-22 18:45:02.430 7f7540bfa640 -1 mgr handle_signal *** Got signal Terminated ***
Nov 22 18:45:02 node2 systemd[1]: Stopping Ceph cluster manager daemon...
Nov 22 18:45:02 node2 systemd[1]: ceph-mgr@m2.service: Succeeded.
Comment by likeit (likeit) - Monday, 23 November 2020, 20:07 GMT
I think I found the problem. The problem is a cyclical import.
Comment by Thore Bödecker (foxxx0) - Thursday, 17 December 2020, 15:36 GMT
There are updated ceph 15.2.8-1 packages in [community-testing] now, which should fix this issue.
Please test them and report back.
Comment by likeit (likeit) - Thursday, 17 December 2020, 19:45 GMT
Works.

Loading...