Bug #22457
closed
ceph-mgr dashboard has dependency on python-jinja2
Added by Ben England over 6 years ago.
Updated about 6 years ago.
Description
I have to install python-jinja2 package on ceph-mgr host before I can enable the dashboard module with:
ceph mgr module enable dashboard
This should be done automatically, either when the ceph-mgr package is installed or when you go to enable the dashboard.
here's what you get if you don't do it, from /var/log/ceph/ceph-mgr*log:
2017-12-15 17:06:50.846617 7f4b6eebf700 1 mgr init Loading python module 'dashboard'
2017-12-15 17:06:50.979623 7f4b6eebf700 -1 mgr load Module not found: 'dashboard'
2017-12-15 17:06:50.980533 7f4b6eebf700 -1 mgr load Traceback (most recent call last):
File "/usr/lib64/ceph/mgr/dashboard/__init__.py", line 2, in <module>
from module import * # NOQA
File "/usr/lib64/ceph/mgr/dashboard/module.py", line 28, in <module>
import jinja2
ImportError: No module named jinja2
2017-12-15 17:06:50.983691 7f4b6eebf700 -1 mgr init Error loading module 'dashboard': (2) No such file or directory
On CentOS 7.4, I get python-jinja2 as a dependency of python-flask (which ceph does depend on explicitly).
What OS are you on?
Oh, flask is actually a mon dependency (for ceph-rest-api), so perhaps you had a mgr on a non-mon node?
- Status changed from New to Fix Under Review
John that is exactly right, I did not install ceph-mgr on the MON.
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #22634: luminous: ceph-mgr dashboard has dependency on python-jinja2 added
- Status changed from Pending Backport to Resolved
- Status changed from Resolved to In Progress
- Assignee set to Nathan Cutler
- Status changed from In Progress to Pending Backport
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF