Project

General

Profile

Actions

Bug #76416

closed
KC KC

"ceph osd status" may fail with an AssertionError on assert metadata

Bug #76416: "ceph osd status" may fail with an AssertionError on assert metadata

Added by Kefu Chai 7 months ago. Updated 30 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-1480-g95827df8be
Released In:
v21.2.0~459
Upkeep Timestamp:
2026-11-04T01:10:33+00:00

Description

# ceph osd status
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1910, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/share/ceph/mgr/mgr_module.py", line 501, in call
    return self.func(mgr, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/share/ceph/mgr/status/module.py", line 337, in handle_osd_status
    assert metadata
           ^^^^^^^^
AssertionError

This can, for example, happen when an OSD is automatically marked out. To reproduce:

# kill -n11 PID-OF-OSD
# systemctl disable --now ceph-osd@OSDID

After 10 minutes, ceph osd status prints the error above.

The error itself doesn't negatively affect cluster health.


Related issues 2 (1 open — 1 closed)

Copied to mgr - Backport #76632: squid: "ceph osd status" may fail with an AssertionError on assert metadataFix Under ReviewKefu Chai

Actions
Copied to mgr - Backport #76634: tentacle: "ceph osd status" may fail with an AssertionError on assert metadataResolvedKefu Chai

Actions

KC Updated by Kefu Chai 7 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Kefu Chai
  • Pull request ID set to 68743

KC Updated by Kefu Chai 7 months ago Actions #2

  • Subject changed from ceph osd status, which is also part in the report, may fail with an AssertionError on assert metadata to "ceph osd status" may fail with an AssertionError on assert metadata

UB Updated by Upkeep Bot 7 months ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 95827df8be956d87b14eaefba44fd81cde66772d
  • Fixed In set to v21.0.0-1480-g95827df8be
  • Upkeep Timestamp set to 2026-05-16T12:51:00+00:00

UB Updated by Upkeep Bot 7 months ago Actions #4

  • Copied to Backport #76632: squid: "ceph osd status" may fail with an AssertionError on assert metadata added

UB Updated by Upkeep Bot 7 months ago Actions #5

  • Copied to Backport #76634: tentacle: "ceph osd status" may fail with an AssertionError on assert metadata added

UB Updated by Upkeep Bot 7 months ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-05-16T12:51:00+00:00 to 2026-08-27T18:32:26+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #8

  • Released In set to v21.2.0~458
  • Upkeep Timestamp changed from 2026-08-27T18:32:26+00:00 to 2026-10-24T01:17:48+00:00

UB Updated by Upkeep Bot 30 days ago Actions #9

  • Released In changed from v21.2.0~458 to v21.2.0~459
  • Upkeep Timestamp changed from 2026-10-24T01:17:48+00:00 to 2026-11-04T01:10:33+00:00
Actions

Also available in: PDF Atom