Skip to content

umbrella: pybind/ceph_daemon: add 10s timeout to admin socket client - #70335

Merged
batrick merged 1 commit into
ceph:umbrellafrom
NitzanMordhai:wip-78402-umbrella
Aug 3, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
NitzanMordhai:wip-78402-umbrella

Conversation

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@NitzanMordhai NitzanMordhai added this to the umbrella milestone Jul 20, 2026
@NitzanMordhai
NitzanMordhai requested a review from rzarzynski July 20, 2026 12:57
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 20, 2026
@batrick batrick modified the milestones: umbrella, v21.1.1 Jul 29, 2026
@batrick

batrick commented Jul 29, 2026

Copy link
Copy Markdown
Member

jenkins test windows

ceph daemon command can hangs indefinitely when the target
daemon's admin socket is unresponsive. do_sockio() creates socket with
no timeout, so sock.recv(4) blocks forever if the daemon is slow to respond,
where AdminSocket::init() creates the socket file before store->mount()
returns).

The AdminSocketClient already uses a 10-second SO_RCVTIMEO / SO_SNDTIMEO.
Align the Python client by calling sock.settimeout(timeout) before connecting.
The default is 10s to match the C++ side; callers can pass timeout=None
to restore the previous blocking behaviour.

Fixes: https://tracker.ceph.com/issues/77743
Signed-off-by: Nitzan Mordechai <[email protected]>
(cherry picked from commit 2e46312)
@github-actions github-actions Bot removed the releng-audit-pass Release engineering: passed backport verification audit. label Jul 29, 2026
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

Rebasing and letting the test again

@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@rzarzynski can you please review the backport?

@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 29, 2026
@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260729.135117-umbrella.

@batrick
batrick merged commit 48b41c4 into ceph:umbrella Aug 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa pybind releng-audit-pass Release engineering: passed backport verification audit. wip-yuri9-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants