2020-01-05 00:39:40 |
Nick Niehoff |
bug |
|
|
added bug |
2020-01-05 00:40:00 |
Nick Niehoff |
tags |
|
packaging |
|
2020-01-06 09:29:39 |
James Page |
nominated for series |
|
Ubuntu Focal |
|
2020-01-06 09:29:39 |
James Page |
bug task added |
|
ceph (Ubuntu Focal) |
|
2020-01-06 09:29:39 |
James Page |
nominated for series |
|
Ubuntu Eoan |
|
2020-01-06 09:29:39 |
James Page |
bug task added |
|
ceph (Ubuntu Eoan) |
|
2020-01-06 09:29:45 |
James Page |
ceph (Ubuntu Focal): status |
New |
Fix Committed |
|
2020-01-06 09:29:47 |
James Page |
ceph (Ubuntu Eoan): importance |
Undecided |
Medium |
|
2020-01-06 09:29:49 |
James Page |
ceph (Ubuntu Focal): importance |
Undecided |
Medium |
|
2020-01-06 09:29:51 |
James Page |
ceph (Ubuntu Eoan): status |
New |
Triaged |
|
2020-01-06 09:48:23 |
James Page |
bug task added |
|
cloud-archive |
|
2020-01-06 09:48:31 |
James Page |
nominated for series |
|
cloud-archive/ussuri |
|
2020-01-06 09:48:31 |
James Page |
bug task added |
|
cloud-archive/ussuri |
|
2020-01-06 09:48:31 |
James Page |
nominated for series |
|
cloud-archive/train |
|
2020-01-06 09:48:31 |
James Page |
bug task added |
|
cloud-archive/train |
|
2020-01-06 09:48:38 |
James Page |
cloud-archive/ussuri: status |
New |
Triaged |
|
2020-01-06 09:48:40 |
James Page |
cloud-archive/train: status |
New |
Triaged |
|
2020-01-06 09:48:41 |
James Page |
cloud-archive/train: importance |
Undecided |
Medium |
|
2020-01-06 09:48:44 |
James Page |
cloud-archive/ussuri: importance |
Undecided |
Medium |
|
2020-01-06 09:48:54 |
James Page |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2020-01-06 09:50:34 |
James Page |
description |
After deploying Ceph Nautilus on Eoan I installed the ceph-mgr-dashboard package and tried to enable the dashboard with:
sudo ceph mgr module enable dashboard
The following error is returned:
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: No module named 'distutils.util' (pass --force to force enablement)
Investigating the ceph-mgr logs I found:
2020-01-05 00:23:13.698 7f74b423cd00 -1 mgr[py] Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/__init__.py", line 38, in <module>
from .module import Module, StandbyModule
File "/usr/share/ceph/mgr/dashboard/module.py", line 26, in <module>
from .services.sso import load_sso_db
File "/usr/share/ceph/mgr/dashboard/services/sso.py", line 21, in <module>
from ..tools import prepare_url_prefix
File "/usr/share/ceph/mgr/dashboard/tools.py", line 11, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
I then installed python3-distutils which let me get further but the dashboard still wasn't starting compaining about no cert configured so I ran:
ceph config set mgr mgr/dashboard/ssl false
Now ceph status reports the error:
Module 'dashboard' has failed: No module named 'routes'
Investigating the logs I found:
2020-01-05 00:30:19.990 7f663bd26700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard' while running on mgr.ceph-mon2: No module named 'routes'
2020-01-05 00:30:19.990 7f663bd26700 -1 dashboard.serve:
2020-01-05 00:30:19.990 7f663bd26700 -1 Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/module.py", line 362, in serve
mapper, parent_urls = generate_routes(self.url_prefix)
File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 336, in generate_routes
mapper = cherrypy.dispatch.RoutesDispatcher()
File "/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 515, in __init__
import routes
ModuleNotFoundError: No module named 'routes'
This was addressed by installing the python3-routes package.
Based on this I believe both python3-distutils and python3-routes should be added to the dependencies of the ceph-mgr-dashboard package. |
[Impact]
Users are unable to enable the Ceph Dashboard WebUI without installing extra Python dependencies.
[Test Case]
Install and configure a ceph cluster
sudo ceph mgr module enable dashboard
sudo ceph config set mgr mgr/dashboard/ssl false
errors thrown as detailed in original bug report.
[Regression Potential]
Minimal - packaging only change to add missing dependencies.
[Original Bug Report]
After deploying Ceph Nautilus on Eoan I installed the ceph-mgr-dashboard package and tried to enable the dashboard with:
sudo ceph mgr module enable dashboard
The following error is returned:
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: No module named 'distutils.util' (pass --force to force enablement)
Investigating the ceph-mgr logs I found:
2020-01-05 00:23:13.698 7f74b423cd00 -1 mgr[py] Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/__init__.py", line 38, in <module>
from .module import Module, StandbyModule
File "/usr/share/ceph/mgr/dashboard/module.py", line 26, in <module>
from .services.sso import load_sso_db
File "/usr/share/ceph/mgr/dashboard/services/sso.py", line 21, in <module>
from ..tools import prepare_url_prefix
File "/usr/share/ceph/mgr/dashboard/tools.py", line 11, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
I then installed python3-distutils which let me get further but the dashboard still wasn't starting compaining about no cert configured so I ran:
ceph config set mgr mgr/dashboard/ssl false
Now ceph status reports the error:
Module 'dashboard' has failed: No module named 'routes'
Investigating the logs I found:
2020-01-05 00:30:19.990 7f663bd26700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard' while running on mgr.ceph-mon2: No module named 'routes'
2020-01-05 00:30:19.990 7f663bd26700 -1 dashboard.serve:
2020-01-05 00:30:19.990 7f663bd26700 -1 Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/module.py", line 362, in serve
mapper, parent_urls = generate_routes(self.url_prefix)
File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 336, in generate_routes
mapper = cherrypy.dispatch.RoutesDispatcher()
File "/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 515, in __init__
import routes
ModuleNotFoundError: No module named 'routes'
This was addressed by installing the python3-routes package.
Based on this I believe both python3-distutils and python3-routes should be added to the dependencies of the ceph-mgr-dashboard package. |
|
2020-01-06 09:50:48 |
James Page |
summary |
ceph-mgr-dashboard package missing dependencies |
[SRU] ceph-mgr-dashboard package missing dependencies |
|
2020-02-13 13:41:58 |
Launchpad Janitor |
ceph (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2020-03-30 14:36:16 |
Łukasz Zemczak |
ceph (Ubuntu Eoan): status |
Triaged |
Fix Committed |
|
2020-03-30 14:36:20 |
Łukasz Zemczak |
bug |
|
|
added subscriber SRU Verification |
2020-03-30 14:36:23 |
Łukasz Zemczak |
tags |
packaging |
packaging verification-needed verification-needed-eoan |
|
2020-04-01 15:08:15 |
James Page |
cloud-archive/train: status |
Triaged |
Fix Committed |
|
2020-04-01 15:08:16 |
James Page |
tags |
packaging verification-needed verification-needed-eoan |
packaging verification-needed verification-needed-eoan verification-train-needed |
|
2020-04-08 13:40:27 |
James Page |
cloud-archive/ussuri: status |
Triaged |
Fix Released |
|
2020-04-08 13:47:43 |
James Page |
tags |
packaging verification-needed verification-needed-eoan verification-train-needed |
packaging verification-done verification-done-eoan verification-train-done |
|
2020-04-08 14:28:55 |
Launchpad Janitor |
ceph (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2020-04-08 14:28:55 |
Launchpad Janitor |
cve linked |
|
2020-1700 |
|
2020-04-08 14:29:10 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2020-04-08 15:49:06 |
James Page |
cloud-archive/train: status |
Fix Committed |
Fix Released |
|
2021-01-24 17:29:26 |
macchese |
bug |
|
|
added subscriber macchese |