Bug #22457
closedceph-mgr dashboard has dependency on python-jinja2
0%
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.
Updated by Ben England over 6 years ago
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
Updated by John Spray over 6 years ago
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?
Updated by John Spray over 6 years ago
Oh, flask is actually a mon dependency (for ceph-rest-api), so perhaps you had a mgr on a non-mon node?
Updated by John Spray over 6 years ago
- Status changed from New to Fix Under Review
Updated by Ben England over 6 years ago
John that is exactly right, I did not install ceph-mgr on the MON.
Updated by Kefu Chai over 6 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler over 6 years ago
- Copied to Backport #22634: luminous: ceph-mgr dashboard has dependency on python-jinja2 added
Updated by Nathan Cutler about 6 years ago
- Status changed from Pending Backport to Resolved
Updated by Nathan Cutler about 6 years ago
- Status changed from Resolved to In Progress
- Assignee set to Nathan Cutler
Reopening - there is a problem with the original master fix (it introduced the python-jinja2 as a build dependency in DEB, instead of runtime). Fixing in https://github.com/ceph/ceph/pull/17530
Updated by Nathan Cutler about 6 years ago
- Status changed from In Progress to Pending Backport
Updated by Nathan Cutler about 6 years ago
- Status changed from Pending Backport to Resolved
Updated by Nathan Cutler about 6 years ago
follow-on fix backported to luminous via https://github.com/ceph/ceph/pull/21233
Updated by Yuri Weinstein about 6 years ago
Updated by Yuri Weinstein about 6 years ago
Nathan Cutler wrote:
follow-on fix backported to luminous via https://github.com/ceph/ceph/pull/21233
merged