Project

General

Profile

Actions

Bug #22457

closed

ceph-mgr dashboard has dependency on python-jinja2

Added by Ben England over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 1 (0 open1 closed)

Copied to mgr - Backport #22634: luminous: ceph-mgr dashboard has dependency on python-jinja2ResolvedNathan CutlerActions
Actions #1

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

Actions #2

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?

Actions #3

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?

Actions #4

Updated by John Spray over 6 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by John Spray over 6 years ago

  • Backport set to luminous
Actions #6

Updated by Ben England over 6 years ago

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

Actions #7

Updated by Kefu Chai over 6 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #8

Updated by Nathan Cutler over 6 years ago

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

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions #10

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

Actions #11

Updated by Nathan Cutler about 6 years ago

  • Status changed from In Progress to Pending Backport
Actions #12

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions #13

Updated by Nathan Cutler about 6 years ago

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

Actions #15

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

Actions

Also available in: Atom PDF