Project

General

Profile

Actions

Bug #45633

closed

mgr/status: metadata is fetched async

Added by Michael Fritch almost 4 years ago. Updated over 3 years 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 (v1):
Crash signature (v2):

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 2 (0 open2 closed)

Copied to mgr - Backport #46958: octopus: mgr/status: metadata is fetched asyncResolvedNathan CutlerActions
Copied to mgr - Backport #47737: nautilus: mgr/status: metadata is fetched asyncResolvedNathan CutlerActions
Actions #1

Updated by Michael Fritch almost 4 years ago

  • Pull request ID set to 35161
Actions #2

Updated by Michael Fritch almost 4 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Sebastian Wagner almost 4 years ago

  • Project changed from Orchestrator to mgr
Actions #4

Updated by Nathan Cutler almost 4 years ago

  • Backport set to octopus
Actions #5

Updated by Patrick Donnelly over 3 years ago

  • Target version set to v16.0.0
  • Source set to Development
Actions #6

Updated by Patrick Donnelly over 3 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #7

Updated by Nathan Cutler over 3 years ago

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

Updated by Nathan Cutler over 3 years 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".

Actions #9

Updated by Patrick Donnelly over 3 years ago

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

Problem also exists in Nautilus.

Actions #10

Updated by Nathan Cutler over 3 years ago

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

Updated by Nathan Cutler over 3 years 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".

Actions

Also available in: Atom PDF