Skip to content

qa: avoid admin socket timeouts after OSD restart - #73499

Merged
kamoltat merged 1 commit into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-59079
Nov 5, 2026
Merged

kamoltat merged 1 commit into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-59079

Conversation

@kamoltat

@kamoltat kamoltat commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Based on @amathuria initial investigations: https://tracker.ceph.com/issues/59079#note-51

Problem:
The recovery-preemption test sends admin-socket config changes after
restarting osd.1 without waiting for it to come up. BlueStore can still
be mounting while OSD::init() holds osd_lock, causing the config handler
to block and the admin-socket commands to time out.

Solution:
Set the recovery options after the initial healthy check, before the
restart sequence, to avoid sending config changes during OSD startup.

Fixes: https://tracker.ceph.com/issues/59079
Assisted-by: Co-pilot
Signed-off-by: Kamoltat (Junior) Sirivadhna [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Problem:
The recovery-preemption test sends admin-socket config changes after
restarting osd.1 without waiting for it to come up. BlueStore can still
be mounting while OSD::init() holds osd_lock, causing the config handler
to block and the admin-socket commands to time out.

Solution:
Set the recovery options after the initial healthy check, before the
restart sequence, to avoid sending config changes during OSD startup.

Assisted-by: Co-pilot
Fixes: https://tracker.ceph.com/issues/59079
Signed-off-by: Kamoltat (Junior) Sirivadhna <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-59079 branch from a2987e3 to 254da12 Compare November 4, 2026 19:02
@kamoltat

kamoltat commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

jenkins test make check

@kamoltat

kamoltat commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

@amathuria based on your analysis and me consulting claude, if we set these values early:

osd_recovery_sleep 0 
osd_recovery_max_active 20

then we can avoid OSDs to timeout.

@kamoltat
kamoltat marked this pull request as ready for review November 4, 2026 22:30
@kamoltat
kamoltat requested a review from a team as a code owner November 4, 2026 22:30
@kamoltat
kamoltat requested a review from amathuria November 4, 2026 22:30

@amathuria amathuria 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.

@kamoltat thanks for taking this up! LGTM

@kamoltat

kamoltat commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

@kamoltat

kamoltat commented Nov 5, 2026 •

Copy link
Copy Markdown
Member Author

Since this PR is a test change specifically on rados/singleton/all/recovery-preemption.yaml. The fix is isolated on recovery-preemption only. Therefore, no need to run the big RADOS QA test. Merging.

@kamoltat
kamoltat merged commit 26796b2 into ceph:main Nov 5, 2026
19 checks passed
@kamoltat kamoltat self-assigned this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants