Project

General

Profile

Bug #22457

ceph-mgr dashboard has dependency on python-jinja2

Added by Ben England over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
12/15/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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.


Related issues

Copied to mgr - Backport #22634: luminous: ceph-mgr dashboard has dependency on python-jinja2 Resolved

History

#1 Updated by Ben England over 1 year 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

#2 Updated by John Spray over 1 year 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?

#3 Updated by John Spray over 1 year ago

Oh, flask is actually a mon dependency (for ceph-rest-api), so perhaps you had a mgr on a non-mon node?

#4 Updated by John Spray over 1 year ago

  • Status changed from New to Need Review

#5 Updated by John Spray over 1 year ago

  • Backport set to luminous

#6 Updated by Ben England over 1 year ago

John that is exactly right, I did not install ceph-mgr on the MON.

#7 Updated by Kefu Chai over 1 year ago

  • Status changed from Need Review to Pending Backport

#8 Updated by Nathan Cutler over 1 year ago

  • Copied to Backport #22634: luminous: ceph-mgr dashboard has dependency on python-jinja2 added

#9 Updated by Nathan Cutler over 1 year ago

  • Status changed from Pending Backport to Resolved

#10 Updated by Nathan Cutler over 1 year 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

#11 Updated by Nathan Cutler over 1 year ago

  • Status changed from In Progress to Pending Backport

#12 Updated by Nathan Cutler over 1 year ago

  • Status changed from Pending Backport to Resolved

#13 Updated by Nathan Cutler over 1 year ago

follow-on fix backported to luminous via https://github.com/ceph/ceph/pull/21233

#15 Updated by Yuri Weinstein over 1 year ago

Nathan Cutler wrote:

follow-on fix backported to luminous via https://github.com/ceph/ceph/pull/21233

merged

Also available in: Atom PDF