Bug #75745
closedActivePyModules fails an assert during perf schema generation when an OSD exists but has no perf counters.
0%
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())
SZ Updated by Steven Zuraski 8 months ago
- Project changed from Ceph to mgr
SZ Updated by Steven Zuraski 8 months ago
- 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
- Related to Bug #72938: Improve unit-test coverage for ceph-mgr code added
LS Updated by Lumir Sliva 8 months ago
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.
SZ Updated by Steven Zuraski 7 months ago
- Related to Feature #76261: Continued ceph-mgr Unit Test coverage: ActivePyModules added
UB Updated by Upkeep Bot 7 months ago
- 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
- Tags (freeform) set to backport_processed
PD Updated by Patrick Donnelly 6 months ago
- 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
- 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
- Tags (freeform) set to backport_processed
LF Updated by Laura Flores 6 months ago
- Related to Bug #77384: Enhance telemetry upgrade tests to verify perf schema collection added
SZ Updated by Steven Zuraski 6 months ago
- Related to Bug #77540: Misaligned OSD perf counters within the Mgr added
UB Updated by Upkeep Bot 5 months ago
- 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
- 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
- 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