Project

General

Profile

Actions

Bug #76955

closed
JB BS

error calling notify: (110) Connection timed out due to notify ack ops being balanced with rados_replica_read_policy = balanced

Bug #76955: error calling notify: (110) Connection timed out due to notify ack ops being balanced with rados_replica_read_policy = balanced

Added by Jonathan Bailey 6 months ago. Updated 2 months ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3876-g1b14e27c8c
Released In:
Upkeep Timestamp:
2026-09-30T22:49:04+00:00

Description

/a/yuriw-2026-05-15_14:18:16-rados-wip-yuri-testing-2026-05-14-1648-distro-default-trial/213362

From teuthology.log we have this showing that the notify timed out

2026-05-15T14:36:36.355 INFO:tasks.watch_notify_same_primary.notify.0.trial021.stderr:error calling notify: (110) Connection timed out
2026-05-15T14:36:36.355 INFO:tasks.watch_notify_same_primary.notify.0.trial021.stderr:error 110: (110) Connection timed out
2026-05-15T14:36:36.356 INFO:tasks.watch_notify_same_primary.notify.0.trial021.stdout:timeout client.4309 cookie 94525525607328
2026-05-15T14:36:36.357 DEBUG:teuthology.orchestra.run:got remote process result: 1
2026-05-15T14:36:36.357 ERROR:teuthology.run_tasks:Saw exception from tasks.

In the osd logs, we can see the following:

ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 20 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] do_op: op osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17)
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] do_op osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17) may_write may_read -> write-ordered flags ondisk+write+known_if_redirected+supports_pool_eio
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] execute_ctx 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] ov 17'1 av 17'2 snapc 0=[] snapset 0={}
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] do_osd_op 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328]
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] do_osd_op  watch watch cookie 94525525607328
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] watch watch: ctx->obc=0x5630556c9500 cookie=94525525607328 oi.version=1 ctx->at_version=17'2
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean]  registered new watch watch(cookie 94525525607328 30s 10.20.193.21:0/2404294491) by client.4309
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'1 (0'0,17'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'1 lcod 0'0 mlcod 0'0 active+clean] new_repop rep_tid 1 on osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17) v9
ceph-osd.2.log.gz 2026-05-15T14:36:23.411+0000 7fac91b2e6c0 10 osd.2 17 dequeue_op osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17) v9 finish latency 0.000170
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 15 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean] log_op_stats osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17) inb 0 outb 0 lat 0.000539
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean]  sending reply on osd_op(client.4309.0:1 2.c 2:30b7a75c:::foo-0:head [watch watch cookie 94525525607328] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e17) 0x563055778000
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0  1 -- v2:10.20.193.21:6809/3385761628 --> 10.20.193.21:0/2404294491 -- osd_op_reply(1 foo-0 [watch watch cookie 94525525607328] v17'2 uv1 ondisk = 0) -- 0x563055778000 con 0x5630546ce400
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 15 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean] do_osd_op_effects applying watch connect on session 0x5630554e8700 watcher 94525525607328,client.4309
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 15 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean] do_osd_op_effects new watcher 94525525607328,client.4309
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean]  -- Watch(94525525607328,client.4309) Watch()
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean]  -- Watch(94525525607328,client.4309) connect con 0x5630546ce400
ceph-osd.2.log.gz 2026-05-15T14:36:23.412+0000 7fac95b366c0 15 osd.2 pg_epoch: 17 pg[2.c( v 17'2 (0'0,17'2] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'2 lcod 17'1 mlcod 17'1 active+clean]  -- Watch(94525525607328,client.4309) registering callback, timeout: 30
ceph-osd.0.log.gz 2026-05-15T14:36:24.884+0000 7f6cb45486c0 20 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] key cookie=94525525607328 entity=client.4309 watch(cookie 94525525607328 30s v1:10.20.193.21:0/2404294491)
ceph-osd.2.log.gz 2026-05-15T14:36:26.356+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'4 lcod 17'3 mlcod 17'3 active+clean] starting notify on watch 94525525607328,client.4309
ceph-osd.2.log.gz 2026-05-15T14:36:26.356+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'4 lcod 17'3 mlcod 17'3 active+clean]  -- Watch(94525525607328,client.4309) start_notify 73014444032
ceph-osd.2.log.gz 2026-05-15T14:36:26.356+0000 7fac95b366c0 10 osd.2 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=0 lpr=15 crt=17'4 lcod 17'3 mlcod 17'3 active+clean]  -- Watch(94525525607328,client.4309) send_notify
ceph-osd.2.log.gz 2026-05-15T14:36:26.356+0000 7fac95b366c0  1 -- v2:10.20.193.21:6809/3385761628 --> 10.20.193.21:0/2404294491 -- watch-notify(notify (1) cookie 94525525607328 notify 73014444032 ret 0) -- 0x563054df7a00 con 0x5630546ce400
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 20 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] do_op: op osd_op(client.4309.0:2 2.c 2:30b7a75c:::foo-0:head [notify-ack in=31b] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e17)
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] do_op osd_op(client.4309.0:2 2.c 2:30b7a75c:::foo-0:head [notify-ack in=31b] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e17) may_read -> read-ordered flags ondisk+read+balance_reads+known_if_redirected+supports_pool_eio
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] execute_ctx 2:30b7a75c:::foo-0:head [notify-ack in=31b] ov 17'2
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] do_osd_op 2:30b7a75c:::foo-0:head [notify-ack in=31b]
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] do_osd_op  notify-ack in=31b
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] notify_ack 94525525607328,73014444032
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 15 osd.0 pg_epoch: 17 pg[2.c( v 17'4 (0'0,17'4] local-lis/les=15/16 n=2 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [2,0] r=1 lpr=15 pct=17'3 lua=0'0 crt=17'4 lcod 17'3 active mbc={}] log_op_stats osd_op(client.4309.0:2 2.c 2:30b7a75c:::foo-0:head [notify-ack in=31b] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e17) inb 0 outb 0 lat 0.000078
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0  1 -- v2:10.20.193.21:6805/4116150977 --> 10.20.193.21:0/2404294491 -- osd_op_reply(2 foo-0 [notify-ack] v0'0 uv1 ondisk = 0) -- 0x55d46b591b00 con 0x55d46b6d8c00
ceph-osd.0.log.gz 2026-05-15T14:36:26.356+0000 7f6cb85506c0 10 osd.0 17 dequeue_op osd_op(client.4309.0:2 2.c 2:30b7a75c:::foo-0:head [notify-ack in=31b] snapc 0=[] ondisk+read+balance_reads+known_if_redirected+supports_pool_eio e17) v9 finish latency 0.000053

This specifically shows the watch was originally registered on the primary osd.2, but the notify-ack was sent to the replica osd.0 when rados_replica_read_policy = balanced.

Note, this was found in a teuthology run with new options to enable balanced reads which has not been merged yet due to finding a couple of balanced read issues, but the underlying issue still exists.


Related issues 1 (0 open — 1 closed)

Related to Ceph QA - QA Run #76606: wip-yuri-testing-2026-05-14-1648 (wip-yuri-testing-2026-05-14-1549)QA ClosedLaura Flores

Actions

LF Updated by Laura Flores 6 months ago Actions #2

  • Related to QA Run #76606: wip-yuri-testing-2026-05-14-1648 (wip-yuri-testing-2026-05-14-1549) added

BS Updated by Bill Scales 4 months ago Actions #3

  • Assignee set to Bill Scales
  • Pull request ID set to 70629

Need to fix watch, notify and notify_ack so they are only sent to the primary.

  • watch sets up volatile state in the OSD (as well as a non-volatile record in OI) which is then used by the subsequent notify and notify_ack ops.
  • notify_ack needs to be sent to the same OSD as notify as that OSD is the one waiting for the acknowledgement.

BS Updated by Bill Scales 4 months ago Actions #4

  • Status changed from New to Fix Under Review

UB Updated by Upkeep Bot 2 months ago Actions #5

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 1b14e27c8c98b2aeebed82f851f1d196b121b005
  • Fixed In set to v21.3.0-3876-g1b14e27c8c
  • Upkeep Timestamp set to 2026-09-30T22:49:04+00:00
Actions

Also available in: PDF Atom