Repository navigation
qa/rados: bound client hangs with rados_osd_op_timeout - #71861
Conversation
Without a client-side deadline, a cluster that stops serving I/O parks the job in librados until max_job_time kills it hours later, attributed to nothing. Set 900s in qa/config/rados.yaml (17 rados sub-suites; same value the fs suites already use), with rados/verify carved out at 3600s since it runs under memcheck. Assisted-by: Claude Signed-off-by: Ronen Friedman <[email protected]>
| # (qa/cephfs/conf/client.yaml); it is several times longer than the | ||
| # longest stall any thrasher here induces on purpose (~125s for | ||
| # test_pool_min_size, 80s for the injected pauses). | ||
| rados osd op timeout: 900 |
|
This PR has been added to wip-bharath25-testing-20260918.001212-main. |
|
Failed Teuthology, due to an actual problem in the Objecter and the tests, that causes ops to be transmitted out-of-order: This breaks
|
| jobs | rados osd op timeout |
result |
|---|---|---|
570014, 570025 — both rados_cls_all jobs in this run |
900 | fail, bad op order |
570155, 572413, 572660 — rados_cls_all, Sep 20–21 |
absent | pass, 10–16 min |
The value doesn't matter, only that it is non-zero — 570025 is a rados/verify job, so the valgrind carve-out in this PR doesn't apply to it anyway (it uses validater/lockdep), and it hit the same abort at 900.
Bonus: the timeout inverted the goal of this patch here
With 3.7 dead the client blocked. The daemon watchdog barked at 00:45:33 and killed all daemons. Each librados call then sat out its full 900s before returning -ETIMEDOUT: reserves at 00:55:23, list_reservations at 01:10:23, then rados_nobjects_list_next2: Connection timed out in every subsequent SetUp()/TearDown() — 1800s burned per remaining test case — until timeout 3h killed the workunit at 03:40:12.
So in this case the deadline turned one fast hang into a slow 900s-per-call grind that still consumed the whole job budget and still got attributed to the workunit rather than to the OSD crash.
Suggested resolution
- Objecter fix (the real one): stop pre-assigning the tid. Defer arming the timeout until after the tid is assigned under
s->lockin_op_submit()— e.g. setop->ontimeoutright after_session_op_assign(). The split path already assigns its own tid undersplitop_session->lock(add_op_to_splitop_session()), so it is unaffected. This restores the per-session tid/send ordering invariant thatosd_debug_op_order— and librados' same-object ordering guarantee — depends on. - Unblock QA meanwhile: hold or narrow this patch. As written it will crash OSDs in any rados sub-suite that runs multi-threaded same-object writes, not just
rados_cls_all.
Worth deciding separately, but I'd keep it out of scope here: whether osd_debug_op_order is the right assertion for 10 independent threads issuing concurrent unordered ops, where relative tid order is an artifact rather than a semantic commitment. It has held for years without the timeout, so I'd treat the Objecter window as the bug rather than relax the check.
|
I will be merging this, now that #71984 is approved and passed my Teuthology tests |
Without a client-side deadline, a cluster that stops serving I/O parks the job in
librados until max_job_time kills it hours later, attributed to nothing. Set 900s
in qa/config/rados.yaml (17 rados sub-suites; same value the fs suites already use),
with rados/verify carved out at 3600s since it runs under memcheck.