Project

General

Profile

Actions

Bug #41869

closed

mgr/dashboard: api/mgr/module resource is returning an internal server error

Added by Tatjana Dehler over 4 years ago. Updated about 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
% Done:

0%

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

Description

When querying the https://ceph-host/api/mgr/module resource on docker, an internal server error will be be returned:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 628, in respond
    self._do_respond(path_info)
  File "/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 687, in _do_respond
    response.body = self.handler()
  File "/usr/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/cherrypy/_cptools.py", line 230, in wrap
    return self.newhandler(innerfunc, *args, **kwargs)
  File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 88, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 645, in inner
    ret = func(*args, **kwargs)
  File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 838, in wrapper
    return func(*vpath, **params)
  File "/ceph/src/pybind/mgr/dashboard/controllers/mgr_modules.py", line 24, in list
    always_on_modules = mgr_map['always_on_modules'][mgr.release_name]
  File "/ceph/src/pybind/mgr/dashboard/__init__.py", line 33, in __getattr__
    return getattr(self._mgr, item)
  File "/ceph/src/pybind/mgr/mgr_module.py", line 594, in release_name
    return self._ceph_get_release_name()
AttributeError: 'Module' object has no attribute '_ceph_get_release_name'
Actions

Also available in: Atom PDF