Bug #71508
openSurprised Pikachu : can't scrub muted osd
0%
Description
Description:
rados/singleton-nomsgr/{all/osd_stale_reads mon_election/classic rados supported-random-distro$/{ubuntu_latest}}
Failure message:
Exiting scrub checking -- not all pgs scrubbed.
SYNOPSIS
Option --ms-blackhole-osd applied to OSD breaks ability of cluster to change primary PG away from affected OSD.
ANALYSIS
The problems seemed to be related to
2025-05-29T13:50:48.751+0000 7f8aa8d46640 20 slow request osd_op(client.4198.0:3 2.6 2:602f83fe:::foo:head [read 0~3] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e16) initiated 2025-05-29T13:41:01.719489+0000 currently waiting for readable
And yes, there is some hiccup at related time:
2025-05-29T13:40:45.688172+0000 mon.a (mon.0) 91 : cluster [DBG] osdmap e16: 3 total, 3 up, 3 in 2025-05-29T13:40:46.618241+0000 mgr.x (mgr.4101) 10 : cluster [DBG] pgmap v18: 40 pgs: 32 unknown, 8 active+clean; 19 B data, 79 MiB used, 300 GiB / 300 GiB avail; 294 B/s wr, 0 op/s 2025-05-29T13:40:46.692995+0000 mon.a (mon.0) 94 : cluster [WRN] Health check failed: 1 osds down (OSD_DOWN) 2025-05-29T13:40:46.708160+0000 mon.a (mon.0) 96 : cluster [DBG] osdmap e17: 3 total, 2 up, 3 in
ACT 1. Digging through foo:head
I. Client sends request to write to foo:head
2025-05-29T13:40:45.715+0000 7f8a92a27640 20 osd.1 pg_epoch: 16 pg[2.6( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=0 lpr=15 crt=0'0 mlcod 0'0 active+clean] do_op: op osd_op(client.4196.0:2 2.6 2:602f83fe:::foo:head [writefull 0~3 in=3b] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e15) ... 2025-05-29T13:40:45.715+0000 7f8a92a27640 10 osd.1 pg_epoch: 16 pg[2.6( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=0 lpr=15 crt=0'0 mlcod 0'0 active+clean] new_repop rep_tid 1 on osd_op(client.4196.0:2 2.6 2:602f83fe:::foo:head [writefull 0~3 in=3b] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e15) v9
II. osd.1 sends repop to osd.0
2025-05-29T13:40:45.723+0000 7f704180c640 10 osd.0 pg_epoch: 16 pg[2.6( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=1 lpr=15 crt=0'0 active mbc={}] do_repop 2:602f83fe:::foo:head v 16'1 (transaction) 183
III. and respond to client
2025-05-29T13:40:45.727+0000 7f8a92a27640 10 osd.1 pg_epoch: 16 pg[2.6( v 16'1 (0'0,16'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=0 lpr=15 crt=16'1 lcod 0'0 mlcod 0'0 active+clean] sending reply on osd_op(client.4196.0:2 2.6 2:602f83fe:::foo:head [writefull 0~3 in=3b] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e15) 0x562e9a2e9400
IV. Test is setting wonderfully well documented --ms-blackhole-osd
2025-05-29T13:40:45.731+0000 7f8aa2e2b640 20 osd.1 16 OSD::ms_dispatch: command(tid 3: {"prefix": "injectargs","injected_args":["--ms-blackhole-osd", "--ms-blackhole-mon"]})
2025-05-29T13:40:45.731+0000 7f8aa2e2b640 20 osd.1 16 _dispatch 0x562e9a634820 command(tid 3: {"prefix": "injectargs","injected_args":["--ms-blackhole-osd", "--ms-blackhole-mon"]})
V. Client reading its foo:head
2025-05-29T13:40:46.707+0000 7f8a8ea1f640 20 osd.1 pg_epoch: 16 pg[2.6( v 16'1 (0'0,16'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=0 lpr=15 crt=16'1 lcod 0'0 mlcod 0'0 active+clean] do_op: op osd_op(client.4198.0:2 2.6 2:602f83fe:::foo:head [read 0~3] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e16)
VI. OSD.1 replies
2025-05-29T13:41:01.715+0000 7f8a92a27640 20 osd.1 pg_epoch: 16 pg[2.6( v 16'1 (0'0,16'1] local-lis/les=15/16 n=1 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=15) [1,0] r=0 lpr=15 crt=16'1 lcod 0'0 mlcod 0'0 active+clean] do_op: op osd_op(client.4198.0:3 2.6 2:602f83fe:::foo:head [read 0~3] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e16) 2025-05-29T13:41:01.715+0000 7f8a92a27640 10 osd.1 16 dequeue_op osd_op(client.4198.0:3 2.6 2:602f83fe:::foo:head [read 0~3] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e16) v9 finish
VII. But obviously client did not receive anything and is complaining
2025-05-29T13:41:32.303+0000 7f8aa8d46640 20 slow request osd_op(client.4198.0:3 2.6 2:602f83fe:::foo:head [read 0~3] snapc 0=[] ondisk+read+known_if_redirected+supports_pool_eio e16) initiated 2025-05-29T13:41:01.719489+0000 currently waiting for readable
ACT 2: never ending scrub
I. We have this in teuthology.log:
2025-05-29T14:00:11.577 INFO:tasks.ceph:pgid 2.17 last_scrub_stamp 2025-05-29T13:40:44.669910+0000 time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=40, tm_sec=44, tm_wday=3, tm_yday=149, tm_isdst=-1) <= time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=50, tm_sec=53, tm_wday=3, tm_yday=149, tm_isdst=0) 2025-05-29T14:00:11.577 INFO:tasks.ceph:pgid 1.7 last_scrub_stamp 2025-05-29T13:40:36.635731+0000 time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=40, tm_sec=36, tm_wday=3, tm_yday=149, tm_isdst=-1) <= time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=50, tm_sec=53, tm_wday=3, tm_yday=149, tm_isdst=0) 2025-05-29T14:00:11.577 INFO:tasks.ceph:pgid 1.3 last_scrub_stamp 2025-05-29T13:40:36.635731+0000 time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=40, tm_sec=36, tm_wday=3, tm_yday=149, tm_isdst=-1) <= time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=50, tm_sec=53, tm_wday=3, tm_yday=149, tm_isdst=0) 2025-05-29T14:00:11.577 INFO:tasks.ceph:pgid 2.3 last_scrub_stamp 2025-05-29T13:40:44.669910+0000 time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=40, tm_sec=44, tm_wday=3, tm_yday=149, tm_isdst=-1) <= time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=50, tm_sec=53, tm_wday=3, tm_yday=149, tm_isdst=0) 2025-05-29T14:00:11.577 INFO:tasks.ceph:pgid 2.d last_scrub_stamp 2025-05-29T13:40:44.669910+0000 time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=40, tm_sec=44, tm_wday=3, tm_yday=149, tm_isdst=-1) <= time.struct_time(tm_year=2025, tm_mon=5, tm_mday=29, tm_hour=13, tm_min=50, tm_sec=53, tm_wday=3, tm_yday=149, tm_isdst=0) 2025-05-29T14:00:11.578 INFO:tasks.ceph:Still waiting for all pgs to be scrubbed.
II. State extracted from:
#grep '2025-05-29T14:00:11.574.*stdout:{"pg_ready"' teuthology.log |sed "s/^.*stdout://" |jq .
"pgid": "2.17",
"pgid": "1.7",
"pgid": "1.3",
"pgid": "2.3",
"pgid": "2.d",
All have:
"up": [1, 2 ],
"acting": [1, 2 ],
So, we cannot talk to OSD.1, but still keep its PGs as primary.
In addition, it is strange it is always [1,2], not [1,0], not [2,1], not [0,1].
Maybe just accident?
RZ Updated by Radoslaw Zarzynski over 1 year ago
- Assignee set to Ronen Friedman
2025-05-29T14:00:11.578 INFO:tasks.ceph:Still waiting for all pgs to be scrubbed.
Do we have a timeout for such waiting?
RF Updated by Ronen Friedman over 1 year ago
Not sure this is related to scrub. Take for example PG[2.d]:
Its primary was changed to OSD.2 already at 13:40:47:
163:16978:2025-05-29T13:40:45.695+0000 7f7565381640 10 osd.2 pg_epoch: 16 pg[2.d( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=0/0 les/c/f=0/0/0 sis=15) [1,2] r=1 lpr=15 crt=0'0 unknown mbc={}] scrubber<ReplicaActive/ReplicaIdle>: FSM: -- state -->> ReplicaActive/ReplicaIdle
332:19793:2025-05-29T13:40:47.155+0000 7f7561379640 10 osd.2 pg_epoch: 17 pg[2.d( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=17 pruub=14.551725388s) [2] r=0 lpr=17 pi=[15,17)/1 crt=0'0 mlcod 0'0 active pruub 31.476766586s@ mbc={}] scrubber<ReplicaActive/ReplicaIdle>: on_new_interval: current role:Primary active?false q/a:false
334:19801:2025-05-29T13:40:47.155+0000 7f7561379640 20 osd.2 pg_epoch: 17 pg[2.d( empty local-lis/les=15/16 n=0 ec=15/15 lis/c=15/15 les/c/f=16/16/0 sis=17 pruub=14.551725388s) [2] r=0 lpr=17 pi=[15,17)/1 crt=0'0 mlcod 0'0 active pruub 31.476766586s@ mbc={}] scrubber<ReplicaActive/ReplicaIdle>: FSM: ReplicaActive::exit()
It was then scrubbed, and the scrub has completed:
222764:2025-05-29T14:04:01.882+0000 7f7561379640 10 osd.2 pg_epoch: 20 pg[2.d( empty local-lis/les=19/20 n=0 ec=15/15 lis/c=19/19 les/c/f=20/20/0 sis=19) [2,0] r=0 lpr=19 crt=0'0 mlcod 0'0 active+clean] scrubber<PrimaryActive/PrimaryIdle>: FSM: -- state -->> PrimaryActive/PrimaryIdle 222765:2025-05-29T14:04:01.882+0000 7f7561379640 20 scrubberFSM event: --^^^^---- ScrubFinished
SO - why were we waiting for OSD.1? is this a monitor problem?
LF Updated by Laura Flores over 1 year ago
@Ronen Friedman were you able to fully rule out an issue with scrub?
NM Updated by Nitzan Mordechai 7 months ago
- Backport set to tentacle
/a/nmordech-2026-04-29_15:16:37-rados-wip-nmordech-testing-20260429.100618-distro-default-trial/185415
LF Updated by Laura Flores 7 months ago
Nitzan Mordechai wrote in #note-4:
/a/nmordech-2026-04-29_15:16:37-rados-wip-nmordech-testing-20260429.100618-distro-default-trial/185415
I think this should be filed under https://tracker.ceph.com/issues/68770.