Project

General

Profile

Bug #45633

mgr/status: metadata is fetched async

Added by Michael Fritch 8 months ago. Updated 3 months ago.

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

0%

Source:
Development
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

There is a timing windonw during mds rejoin etc where the metadata is being added/removed and a NoneType can be returned.

Which results in brief tracebacks during `ceph fs status`

$ ceph fs status
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1171, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 338, in handle_command
    return self.handle_fs_status(cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 225, in handle_fs_status
    mds_versions[metadata.get('ceph_version', "unknown")].append(standby['name'])
AttributeError: 'NoneType' object has no attribute 'get'
$ ceph fs status
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1171, in _handle_command
    return self.handle_command(inbuf, cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 340, in handle_command
    return self.handle_fs_status(cmd)
  File "/usr/share/ceph/mgr/status/module.py", line 116, in handle_fs_status
    mds_versions[metadata.get('ceph_version', "unknown")].append(info['name'])
AttributeError: 'NoneType' object has no attribute 'get'

Related issues

Copied to mgr - Backport #46958: octopus: mgr/status: metadata is fetched async Resolved
Copied to mgr - Backport #47737: nautilus: mgr/status: metadata is fetched async Resolved

History

#1 Updated by Michael Fritch 8 months ago

  • Pull request ID set to 35161

#2 Updated by Michael Fritch 8 months ago

  • Status changed from New to Fix Under Review

#3 Updated by Sebastian Wagner 8 months ago

  • Project changed from Orchestrator to mgr

#4 Updated by Nathan Cutler 8 months ago

  • Backport set to octopus

#5 Updated by Patrick Donnelly 6 months ago

  • Target version set to v16.0.0
  • Source set to Development

#6 Updated by Patrick Donnelly 5 months ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #46958: octopus: mgr/status: metadata is fetched async added

#8 Updated by Nathan Cutler 5 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

#9 Updated by Patrick Donnelly 4 months ago

  • Status changed from Resolved to Pending Backport
  • Backport changed from octopus to octopus,nautilus

Problem also exists in Nautilus.

#10 Updated by Nathan Cutler 4 months ago

  • Copied to Backport #47737: nautilus: mgr/status: metadata is fetched async added

#11 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF