Project

General

Profile

Bug #43079

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

Added by Ernesto Puerta over 4 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - 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 (v1):
Crash signature (v2):

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 over 4 years ago

  • Assignee set to Volker Theile

#2 Updated by Volker Theile over 4 years ago

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

#3 Updated by Nathan Cutler about 4 years ago

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

#4 Updated by Ernesto Puerta almost 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 142 to Component - CephFS

Also available in: Atom PDF