Project

General

Profile

Bug #43079

nautilus: mgr/dashboard: exception in cephfs: "AttributeError: 'NoneType' object has no attribute 'get'"

Added by Ernesto Puerta 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/cephfs
Target version:
% Done:

0%

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

Description

Regardless how this happened, it seems that metadata object should be checked before accessing it (or guarded with try/except). This has been fixed in master (v15):

2019-11-14 17:55:12.256 7f6ec7cdb700  0 mgr[dashboard] [b'{"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/__init__.py", line 842, in wrapper
    return func(*vpath, **params)
  File "/usr/share/ceph/mgr/dashboard/controllers/cephfs.py", line 32, in get
    return self.fs_status(fs_id)
  File "/usr/share/ceph/mgr/dashboard/controllers/cephfs.py", line 159, in fs_status
    mds_versions[metadata.get('ceph_version', 'unknown')].append(
AttributeError: 'NoneType' object has no attribute 'get'
", "version": "8.9.1"}']

History

#1 Updated by Lenz Grimmer 4 months ago

  • Assignee set to Volker Theile

#2 Updated by Volker Theile 4 months ago

  • Status changed from New to In Progress
  • Pull request ID set to 32128

#3 Updated by Nathan Cutler 2 months ago

  • Status changed from In Progress to Resolved
  • Target version changed from v14.2.6 to v14.2.7

Also available in: Atom PDF