[SRU] ceph-mgr-dashboard package missing dependencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned | ||
Ussuri |
Fix Released
|
Medium
|
Unassigned | ||
ceph (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[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/
from .module import Module, StandbyModule
File "/usr/share/
from .services.sso import load_sso_db
File "/usr/share/
from ..tools import prepare_url_prefix
File "/usr/share/
from distutils.util import strtobool
ModuleNotFoundE
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(
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/
mapper, parent_urls = generate_
File "/usr/share/
mapper = cherrypy.
File "/lib/python3/
import routes
ModuleNotFoundE
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.
CVE References
tags: | added: packaging |
description: | updated |
summary: |
- ceph-mgr-dashboard package missing dependencies + [SRU] ceph-mgr-dashboard package missing dependencies |
The routes dependency looks to be missing in cherrypy rather than directly in Ceph.