Project

General

Profile

Actions

Bug #81784

closed
AD

Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back

Bug #81784: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back

Added by Anthony D'Atri about 2 months ago. Updated 8 days ago.

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

0%

Source:
Backport:
umbrella, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v22.0.0-216-gb88220a5e9
Released In:
Upkeep Timestamp:
2026-11-26T01:10:51+00:00

Description

The mgr sends nothing back on a daemon's lossy mgr session, and AsyncConnection::tick() measures idleness from last_active, which only reads update. So every OSD and MDS faults its mgr session once it has been open for ms_connection_idle_timeout, even though it sends a report every mgr_stats_period. With debug_ms 1 and debug_mgrc 20 on an OSD:

-- [v2:<osd addr>] >> [v2:<mgr addr>] conn(... s=STATE_CONNECTION_ESTABLISHED l=1).tick idle (1799882133) for more than 900000000 us, fault.
mgrc ms_handle_reset ms_handle_reset con 0x556d4a935000
mgrc reconnect Terminating session with v2:<mgr addr>
mgrc reconnect Starting new session with [v2:<mgr addr>]
mgrc handle_mgr_configure stats_period=61
mgrc operator() sending 140 counters (of possible 633), 140 new, 0 removed

Each reconnect authenticates again and declares all of the daemon's perf counters again. Daemons that connected together after a mgr failover stay in step, so on a Reef 18.2.8 cluster every OSD and MDS reconnected to the mgr at the same moment every 15 or 30 minutes.

Fix: after each report, MgrClient sends the mgr a keepalive if half of the daemon's own ms_connection_idle_timeout has passed since the last one. The ack counts as received traffic on the daemon, so the session stays open.


Related issues 2 (0 open — 2 closed)

Copied to mgr - Backport #82492: tentacle: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing backResolvedAnthony D'Atri

Actions
Copied to mgr - Backport #82493: umbrella: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing backResolvedAnthony D'Atri

Actions

AD Updated by Anthony D'Atri about 2 months ago Actions #1

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

AD Updated by Anthony D'Atri about 2 months ago Actions #2

  • Subject changed from MgrClient sends no keepalive so daemon mgr sessions reset every ms_connection_idle_timeout to Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back
  • Description updated (diff)

AD Updated by Anthony D'Atri about 2 months ago Actions #3

  • Description updated (diff)

AD Updated by Anthony D'Atri about 1 month ago Actions #4

  • Description updated (diff)

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

  • Copied to Backport #82492: tentacle: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back added

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

  • Copied to Backport #82493: umbrella: Daemon mgr sessions reset every ms_connection_idle_timeout because the mgr sends nothing back added

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

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to b88220a5e9ba1a020df58b9407a7434e296132f9
  • Fixed In set to v22.0.0-216-gb88220a5e9
  • Upkeep Timestamp set to 2026-11-01T15:14:39+00:00

UB Updated by Upkeep Bot 8 days ago Actions #8

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-11-01T15:14:39+00:00 to 2026-11-26T01:10:51+00:00
Actions

Also available in: PDF Atom