Skip to content

tentacle: mgr: erase daemon_connections ref on reset for all peer types - #71009

Merged
batrick merged 1 commit into
ceph:tentaclefrom
NitzanMordhai:wip-79419-tentacle
Sep 10, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
NitzanMordhai:wip-79419-tentacle

Conversation

@NitzanMordhai

Copy link
Copy Markdown
Contributor

…types

handle_open() stores a strong ConnectionRef in daemon_connections for
every non-client daemon (mon, mds, osd), but ms_handle_reset() erased
it only for OSD peers.

Any non-OSD daemon connection that ended without an explicit MMgrClose
(idle timeout, network drop, daemon crash) left a permanent
ConnectionRef behind. That leaked one AsyncConnection per reconnect
cycle and caused unbounded ceph-mgr RSS growth.

Erase daemon_connections unconditionally on reset while keeping
osd_cons cleanup under the OSD peer-type guard.

Fixes: https://tracker.ceph.com/issues/78408

Signed-off-by: Sunnatillo <[email protected]>
(cherry picked from commit a996144)
@NitzanMordhai
NitzanMordhai requested a review from a team as a code owner August 12, 2026 15:09
@NitzanMordhai NitzanMordhai added this to the tentacle milestone Aug 12, 2026
@github-actions github-actions Bot added the mgr label Aug 12, 2026
@NitzanMordhai
NitzanMordhai requested a review from yaarith August 12, 2026 15:11
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 12, 2026
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@Sunnatillo i needed that backport. please check

@yuriw

yuriw commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri14-testing-20260812.153525-tentacle.

@stzuraski898

Copy link
Copy Markdown
Contributor

Looks good to me! I'll get the backport PRs for Umbrella and Squid open.

@Sunnatillo Sunnatillo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Naveenaidu

Copy link
Copy Markdown
Contributor

@Sunnatillo

Copy link
Copy Markdown
Contributor

Lets merge this if everything looks good.

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 10, 2026
@batrick
batrick merged commit 2fc6a62 into ceph:tentacle Sep 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core mgr releng-audit-pass Release engineering: passed backport verification audit. wip-yuri14-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants