Project

General

Profile

Bug #43080

mgr/dashboard: exception on summary endpoint: "KeyError: 'dashboard'"

Added by Ernesto Puerta 7 months ago. Updated 7 months ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
dashboard/general
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Reproduced in Nautilus (14.2.4). This usually happens during dashboard restart (disable-enable cycle). It could/should be easily avoided by catching the exception:

{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "traceback": "Traceback (most recent call last):
  File "/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/lib/python3.6/site-packages/cherrypy/_cptools.py", line 237, in wrap
    return self.newhandler(innerfunc, *args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 88, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 649, in inner
    ret = func(*args, **kwargs)
  File "/usr/share/ceph/mgr/dashboard/controllers/summary.py", line 79, in __call__
    'mgr_host': self._get_host(),
  File "/usr/share/ceph/mgr/dashboard/controllers/summary.py", line 68, in _get_host
    return services['dashboard']
KeyError: 'dashboard'
", "version": "8.9.1"}


Related issues

Duplicates mgr - Bug #42684: mgr/dashboard: KeyError on dashboard reload Resolved

History

#1 Updated by Patrick Seidensal 7 months ago

  • Duplicates Bug #42684: mgr/dashboard: KeyError on dashboard reload added

#2 Updated by Patrick Seidensal 7 months ago

  • Status changed from New to Won't Fix

Also available in: Atom PDF