Skip to content

umbrella: mgr/ActivePyModules: use RAII for perf schema section management - #70504

Merged
batrick merged 1 commit into
ceph:umbrellafrom
stzuraski898:wip-78618-umbrella
Aug 5, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
stzuraski898:wip-78618-umbrella

Conversation

@stzuraski898

Copy link
Copy Markdown
Contributor

Refactor get_perf_schema_python() and get_unlabeled_perf_schema_python() to use Formatter::ObjectSection and Formatter::ArraySection RAII helpers instead of manual close_section() calls. Manual closes have have led to crashes when close_section() calls were left unguarded, for example when an OSD with no perf counters had it's perf counters queried.

Fixes: https://tracker.ceph.com/issues/74693
Signed-off-by: stzuraski898 <[email protected]>
(cherry picked from commit 078b140)
@stzuraski898
stzuraski898 requested a review from a team as a code owner July 23, 2026 19:29
@stzuraski898 stzuraski898 added this to the umbrella milestone Jul 23, 2026
@github-actions github-actions Bot added mgr releng-audit-pass Release engineering: passed backport verification audit. labels Jul 23, 2026
@yuriw

yuriw commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260724.161317-umbrella.

@yuriw

yuriw commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

@stzuraski898 this PR is part of the wip-yuri-testing integration batch and still needs review approval before it can be merged. Could you request a review or ping a reviewer? Thanks!

@kamoltat kamoltat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see anything wrong with replacing manual open_*_section() / close_section() management with Formatter::ObjectSection and Formatter::ArraySection

LGTM!

@lee-j-sanders

Copy link
Copy Markdown
Member

@batrick

batrick commented Aug 5, 2026

Copy link
Copy Markdown
Member

jenkins test windows

@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 5, 2026
@batrick
batrick merged commit be06272 into ceph:umbrella Aug 5, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core mgr needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants