Project

General

Profile

Actions

Bug #75745

closed
SZ LS

ActivePyModules fails an assert during perf schema generation when an OSD exists but has no perf counters.

Bug #75745: ActivePyModules fails an assert during perf schema generation when an OSD exists but has no perf counters.

Added by Steven Zuraski 8 months ago. Updated about 1 month ago.

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

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-1545-g4a2e80a814
Released In:
v21.2.0~433
Upkeep Timestamp:
2026-10-24T02:03:26+00:00

Description

This issue is present on Main and Tentacle, and was found during unit testing of mgr/ActivePyModules in the test 'GetPerfSchemaWithDestroyedOSD'.

When an OSD has no perf counters, the function get_perf_schema_python trips an assert as it attempts to close a section that does not exist.

Proposed solution, add a guard around the close sections, as is the case elsewhere in the function: if(!prev_key_name.empty())


Related issues 6 (3 open — 3 closed)

Related to mgr - Bug #74693: MGR daemon crashes with assertion failure in `PyFormatter.h:84` when the telemetry module attempts to query metadata for a destroyed OSD that still exists in the CRUSH map.ResolvedSteven Zuraski

Actions
Related to mgr - Bug #72938: Improve unit-test coverage for ceph-mgr code ResolvedSteven Zuraski

Actions
Related to mgr - Feature #76261: Continued ceph-mgr Unit Test coverage: ActivePyModulesNewSteven Zuraski

Actions
Related to mgr - Bug #77384: Enhance telemetry upgrade tests to verify perf schema collectionFix Under ReviewLaura Flores

Actions
Related to mgr - Bug #77540: Misaligned OSD perf counters within the MgrIn Progress

Actions
Copied to mgr - Backport #77375: tentacle: ActivePyModules fails an assert during perf schema generation when an OSD exists but has no perf counters.ResolvedPatrick Donnelly

Actions

SZ Updated by Steven Zuraski 8 months ago Actions #1

  • Project changed from Ceph to mgr

SZ Updated by Steven Zuraski 8 months ago Actions #2

  • Related to Bug #74693: MGR daemon crashes with assertion failure in `PyFormatter.h:84` when the telemetry module attempts to query metadata for a destroyed OSD that still exists in the CRUSH map. added

SZ Updated by Steven Zuraski 8 months ago Actions #3

  • Related to Bug #72938: Improve unit-test coverage for ceph-mgr code added

LS Updated by Lumir Sliva 8 months ago Actions #4

Reproduced and fixed in https://github.com/ceph/ceph/pull/68213.

The unconditional `close_section()` calls after the perf counter loop in `get_perf_schema_python` assert when a daemon has empty `perf_counters.instances` (e.g. a down or destroyed OSD still in the daemon state map). Added the same `if (!prev_key_name.empty())` guard already used inside the loop.

Tested on a vstart dev cluster — stopped an OSD, called `get_perf_schema("osd", "")` via the selftest module: asserts at `PyFormatter.h:85` without fix, succeeds with fix.

KC Updated by Kefu Chai 8 months ago Actions #5

  • Status changed from New to Fix Under Review
  • Pull request ID set to 68213

SZ Updated by Steven Zuraski 7 months ago Actions #6

  • Related to Feature #76261: Continued ceph-mgr Unit Test coverage: ActivePyModules added

UB Updated by Upkeep Bot 7 months ago Actions #7

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 4a2e80a8148e56c2be02b5861b9f415eac32315d
  • Fixed In set to v21.0.0-1545-g4a2e80a814
  • Upkeep Timestamp set to 2026-05-19T09:27:58+00:00

UB Updated by Upkeep Bot 7 months ago Actions #8

  • Tags (freeform) set to backport_processed

PD Updated by Patrick Donnelly 6 months ago Actions #9

  • Assignee set to Lumir Sliva
  • Target version set to v21.1.0
  • Backport changed from Tentacle to tentacle
  • Tags (freeform) deleted (backport_processed)

UB Updated by Upkeep Bot 6 months ago Actions #10

  • Copied to Backport #77375: tentacle: ActivePyModules fails an assert during perf schema generation when an OSD exists but has no perf counters. added

UB Updated by Upkeep Bot 6 months ago Actions #11

  • Tags (freeform) set to backport_processed

LF Updated by Laura Flores 6 months ago Actions #12

  • Related to Bug #77384: Enhance telemetry upgrade tests to verify perf schema collection added

SZ Updated by Steven Zuraski 6 months ago Actions #13

  • Related to Bug #77540: Misaligned OSD perf counters within the Mgr added

UB Updated by Upkeep Bot 5 months ago Actions #14

  • Status changed from Pending Backport to Resolved
  • Upkeep Timestamp changed from 2026-05-19T09:27:58+00:00 to 2026-07-10T13:29:15+00:00

UB Updated by Upkeep Bot 3 months ago Actions #15

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-10T13:29:15+00:00 to 2026-08-28T01:41:59+00:00

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

  • Released In set to v21.2.0~433
  • Upkeep Timestamp changed from 2026-08-28T01:41:59+00:00 to 2026-10-24T02:03:26+00:00
Actions

Also available in: PDF Atom