Project

General

Profile

Actions

Bug #75273

closed
CL AM

failed to complete snap trimming before timeout

Bug #75273: failed to complete snap trimming before timeout

Added by chunmei liu 9 months ago. Updated about 1 month ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-332-g424bacaf1b
Released In:
v21.2.0~850
Upkeep Timestamp:
2026-10-24T01:44:31+00:00

Description

https://pulpito.ceph.com/liucm-2026-02-24_15:28:57-crimson-rados-wip-liucm-shard-redesign-crimson-only-distro-debug-trial/68171/

Traceback (most recent call last):
File "/home/teuthworker/src/git.ceph.com_teuthology_fa17720d0088c3ac28e473468bfc79eeaff5cd38/teuthology/run_tasks.py", line 160, in run_tasks
suppress = manager.__exit__(*exc_info)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/ceph.py", line 2011, in task
osd_scrub_pgs(ctx, config)
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/ceph.py", line 1386, in osd_scrub_pgs
raise RuntimeError('Exiting scrub checking -- not all pgs scrubbed.')
RuntimeError: Exiting scrub checking -- not all pgs scrubbed.
2026-02-24T16:51:50.236 DEBUG:teuthology.run_tasks:Unwinding manager install
2026-02-24T16:51:50.247 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
File "/home/teuthworker/src/git.ceph.com_teuthology_fa17720d0088c3ac28e473468bfc79eeaff5cd38/teuthology/contextutil.py", line 32, in nested
yield vars
File "/home/teuthworker/src/git.ceph.com_teuthology_fa17720d0088c3ac28e473468bfc79eeaff5cd38/teuthology/task/install/__init__.py", line 644, in task
yield
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/ceph.py", line 2000, in task
yield
File "/home/teuthworker/src/git.ceph.com_teuthology_fa17720d0088c3ac28e473468bfc79eeaff5cd38/teuthology/run_tasks.py", line 160, in run_tasks
suppress = manager.__exit__(*exc_info)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/contextlib.py", line 144, in exit
next(self.gen)
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/rados.py", line 372, in task
running.get()
File "src/gevent/greenlet.py", line 831, in gevent._gevent_cgreenlet.Greenlet.get
File "src/gevent/greenlet.py", line 373, in gevent._gevent_cgreenlet.Greenlet._raise_exception
File "/home/teuthworker/src/git.ceph.com_teuthology_fa17720d0088c3ac28e473468bfc79eeaff5cd38/virtualenv/lib/python3.12/site-packages/gevent/_compat.py", line 49, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/rados.py", line 363, in thread
manager.wait_snap_trimming_complete(pool)
^^^^^^^^^^^^^^^
File "/home/teuthworker/src/git.ceph.com_ceph-c_d26e5c228e3cdea4d585bcd077f8513a649ab5d1/qa/tasks/ceph_manager.py", line 2604, in wait_snap_trimming_complete
assert (now - start) < FATAL_TIMEOUT, \
^^^^^^^^^^^^^^^
AssertionError: failed to complete snap trimming before timeout


Related issues 1 (1 open — 0 closed)

Related to crimson - Bug #76935: snaptrim stalls under thrash + pggrow despite higher op_delayFix Under ReviewAishwarya Mathuria

Actions

AM Updated by Aishwarya Mathuria 9 months ago Actions #1

/a/amathuri-2026-03-03_11:43:27-crimson-rados:thrash-wip-amat-fix-74504-distro-debug-trial/78335/

AM Updated by Aishwarya Mathuria 9 months ago Actions #2

Seems to be happening with pggrow tests - assigning to myself.

AM Updated by Aishwarya Mathuria 9 months ago Actions #3

  • Assignee set to Aishwarya Mathuria

AM Updated by Aishwarya Mathuria 8 months ago Actions #5

  • Status changed from New to In Progress

This is common across all 3 failures: there is always exactly one PG remaining in snaptrim, and the test times out waiting for snap trimming to complete,

2026-03-03T12:46:15.013067+0000 mgr.x (mgr.4102) 1761 : cluster [DBG] pgmap v2859: 1465 pgs: 1 active+clean+scrubbing+deep+snaptrim, 1464 active+clean; 674 MiB data, 1.8 GiB used, 197 GiB / 199 GiB avail

While taking a look at the primary OSD logs for this pg, I noticed that we keep hitting the to_trim empty condition:

DEBUG 2026-03-03 12:19:05,570 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean : on_active_actmap snap_trimq=[1~1a5,1a7~14,1bc~2,1c1~2,1c4~3,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
DEBUG 2026-03-03 12:19:05,583 [shard 0:main] osd - snaptrim_event(id=164590, detail=SnapTrimEvent(pgid=3.371 snapid=1 needs_pause=1)): to_trim is empty! Stopping iteration
DEBUG 2026-03-03 12:19:05,583 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : trimmed snap=1
DEBUG 2026-03-03 12:19:05,584 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : going to start SnapTrimEvent, to_trim=2
INFO 2026-03-03 12:19:05,584 [shard 0:main] osd - PerShardState::start_operation_may_interrupt, snaptrim_event(id=164591, detail=SnapTrimEvent(pgid=3.371 snapid=2 needs_pause=1))
DEBUG 2026-03-03 12:19:05,584 [shard 0:main] seastore - 0x7c7fb41d8c80 trans.90482 SeaStoreS::repeat_with_onode: omap_iterate cid=3.371_head oid=#3:8ec00000:.internal_pg_local::snapmapper:head# ...
DEBUG 2026-03-03 12:19:05,592 [shard 0:main] osd - snaptrim_event(id=164591, detail=SnapTrimEvent(pgid=3.371 snapid=2 needs_pause=1)): to_trim is empty! Stopping iteration
DEBUG 2026-03-03 12:19:05,592 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : trimmed snap=2
DEBUG 2026-03-03 12:19:05,592 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : going to start SnapTrimEvent, to_trim=3
DEBUG 2026-03-03 12:19:05,592 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : going to start SnapTrimEvent, to_trim=3
INFO 2026-03-03 12:19:05,592 [shard 0:main] osd - PerShardState::start_operation_may_interrupt, snaptrim_event(id=164594, detail=SnapTrimEvent(pgid=3.371 snapid=3 needs_pause=1))
DEBUG 2026-03-03 12:19:05,593 [shard 0:main] seastore - 0x7c7fb45e5480 trans.90487 SeaStoreS::repeat_with_onode: omap_iterate cid=3.371_head oid=#3:8ec00000:.internal_pg_local::snapmapper:head# ...
DEBUG 2026-03-03 12:19:05,602 [shard 0:main] osd - snaptrim_event(id=164594, detail=SnapTrimEvent(pgid=3.371 snapid=3 needs_pause=1)): to_trim is empty! Stopping iteration
DEBUG 2026-03-03 12:19:05,602 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : trimmed snap=3
.
. 
DEBUG 2026-03-03 12:19:06,497 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : going to start SnapTrimEvent, to_trim=8f
INFO 2026-03-03 12:19:06,497 [shard 0:main] osd - PerShardState::start_operation_may_interrupt, snaptrim_event(id=164941, detail=SnapTrimEvent(pgid=3.371 snapid=8f needs_pause=1))
DEBUG 2026-03-03 12:19:06,504 [shard 0:main] seastore - 0x7c7fb471b480 trans.91050 SeaStoreS::repeat_with_onode: omap_iterate cid=3.371_head oid=#3:8ec00000:.internal_pg_local::snapmapper:head# ...
DEBUG 2026-03-03 12:19:06,507 [shard 0:main] osd - snaptrim_event(id=164941, detail=SnapTrimEvent(pgid=3.371 snapid=8f needs_pause=1)): to_trim is empty! Stopping iteration
DEBUG 2026-03-03 12:19:06,507 [shard 0:main] osd - pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : trimmed snap=8f

We do see snap_trimq being non-empty however, which makes me think snap trim is not progressing.

DEBUG 2026-03-03 12:19:05,570 [shard 0:main] osd -  pg_epoch 1027 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1025/1026 n=0 ec=1025/16 lis/c=1025/1025 les/c/f=1026/1026/0 sis=1025) [2,3,1] r=0 lpr=1025 crt=52'16 lcod 0'0 mlcod 0'0 active+clean : on_active_actmap snap_trimq=[1~1a5,1a7~14,1bc~2,1c1~2,1c4~3,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
DEBUG 2026-03-03 12:19:08,558 [shard 0:main] osd -  pg_epoch 1030 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean : on_active_actmap snap_trimq=[1~1a5,1a7~14,1bc~2,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
DEBUG 2026-03-03 12:19:09,839 [shard 0:main] osd -  pg_epoch 1031 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~14,1bc~2,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
INFO  2026-03-03 12:19:10,786 [shard 0:main] osd -  pg_epoch 1032 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_advmap new removed snaps [1bb~1], snap_trimq now[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
DEBUG 2026-03-03 12:19:10,811 [shard 0:main] osd -  pg_epoch 1032 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1]
INFO  2026-03-03 12:19:11,805 [shard 0:main] osd -  pg_epoch 1033 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_advmap new removed snaps [1f7~1], snap_trimq now[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1,1f7~1]
DEBUG 2026-03-03 12:19:11,856 [shard 0:main] osd -  pg_epoch 1033 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1,1f7~1]
DEBUG 2026-03-03 12:19:12,823 [shard 0:main] osd -  pg_epoch 1034 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1,1f7~1]
DEBUG 2026-03-03 12:19:14,802 [shard 0:main] osd -  pg_epoch 1036 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~17,1bf~1,1c1~6,1c8~4,1cd~4,1d2~c,1df~3,1eb~1,1f1~1,1f4~1,1f7~1]
DEBUG 2026-03-03 12:30:52,826 [shard 0:main] osd -  pg_epoch 1514 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~20,1c8~4,1cd~11,1df~6,1e6~7,1f0~2,1f3~3,1f7~4,1ff~11,211~4,216~1,218~6,221~2,227~1,22c~1,237~1,239~1]

I was checking when snaptrim got over and found a finsihed trimming log. Although immediately after that we are in snaptrim state again:

DEBUG 2026-03-03 12:30:55,727 [shard 0:main] osd -  pg_epoch 1515 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0pr=1440 crt=19'3 lcod 0'0 mlcod 0'0 active+clean : PG::on_active_actmap() finished trimming
DEBUG 2026-03-03 12:30:55,727 [shard 0:main] osd -  pg_epoch 1515 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim check_recovery_sources no source osds () went down
DEBUG 2026-03-03 12:31:15,778 [shard 0:main] osd -  pg_epoch 1527 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~20,1c8~4,1cd~11,1df~6,1e6~7,1f0~2,1f3~3,1f7~4,1ff~11,211~4,216~1,218~6,221~2,227~1,22c~1,237~1,239~1]
DEBUG 2026-03-03 12:31:20,753 [shard 0:main] osd -  pg_epoch 1529 pg[3.371( v 52'16 (0'0,52'16] local-lis/les=1028/1029 n=0 ec=1025/16 lis/c=1028/1028 les/c/f=1029/1029/0 sis=1028) [2,1,0] r=0 lpr=1028 crt=52'16 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[1~1a5,1a7~20,1c8~4,1cd~11,1df~6,1e6~7,1f0~2,1f3~3,1f7~4,1ff~11,211~4,216~1,218~6,221~2,227~1,22c~1,237~1,239~1]

Test fails at:

2026-03-03T12:31:21.396 ERROR:teuthology:Uncaught exception (Hub)
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/teuthworker/src/git.ceph.com_ceph-c_691f46cd1cc6ea97a11eaa61abc1d4c9849b6c7a/qa/tasks/rados.py", line 363, in thread
    manager.wait_snap_trimming_complete(pool)
  File "/home/teuthworker/src/git.ceph.com_ceph-c_691f46cd1cc6ea97a11eaa61abc1d4c9849b6c7a/qa/tasks/ceph_manager.py", line 2604, in wait_snap_trimming_complete
    assert (now - start) < FATAL_TIMEOUT, \
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: failed to complete snap trimming before timeout.

I haven't been able to reproduce this locally so I will work on a PR to add some logging that might help the next time we hit this.

MB Updated by Matan Breizman 8 months ago Actions #6

latest main:
https://pulpito.ceph.com/matan-2026-04-05_09:15:33-crimson-rados-main-distro-debug-trial/

Failure: failed to complete snap trimming before timeout
3 jobs: ['132327', '132276', '132284']

MB Updated by Matan Breizman 8 months ago · Edited Actions #7

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 68225

https://pulpito.ceph.com/matan-2026-04-05_09:15:33-crimson-rados-main-distro-debug-trial/132327

Could we be “over‑splitting”? The thrasher appears to grow the pool very aggressively.
The thrasher seems to keep growing the pool rapidly:

2026-04-05T10:51:44.552 INFO:tasks.thrashosds.thrasher:Growing pool unique_pool_0
2026-04-05T10:51:50.573 INFO:tasks.thrashosds.thrasher:Growing pool unique_pool_0
2026-04-05T10:51:56.594 INFO:tasks.thrashosds.thrasher:Growing pool unique_pool_0
2026-04-05T10:52:02.606 INFO:tasks.thrashosds.thrasher:Growing pool unique_pool_0
2026-04-05T10:52:08.489 INFO:tasks.thrashosds.thrasher:Growing pool unique_pool_0

The OSD is running on only 4 reactors:

        osd:
          crimson cpu num: 4

pg num reaches over 300 and keeps splitting near test ending and keeps splitting:

DEBUG 2026-04-05 11:05:15,576 [shard 0:main] osd - PGShardMapping::get_or_create_pg_mapping: mapping pg 3.a5 to core 2 (primary): num_pgs 304, store_index 0

Which makes sens for some snap trimming to be unable to end on time:

2026-04-05T11:04:44.077 INFO:tasks.ceph.ceph_manager.ceph:pg 3.642 in trimming, state: active+clean+snaptrim
2026-04-05T11:04:44.077 INFO:tasks.ceph.ceph_manager.ceph:pg 3.63e in trimming, state: active+clean+snaptrim
2026-04-05T11:04:44.078 INFO:tasks.ceph.ceph_manager.ceph:pg 3.402 in trimming, state: active+clean+snaptrim

The timeout in wait_snap_trimming_complete is hardcoded:

        FATAL_TIMEOUT = 600


The thrasher's _do_thrash expects some time between states in which the OSD is not clean, however in crimson's pggrow we never kill osds (chance_down: 0).
I'm pushing a commit which adds clean_wait: 60 to pggrow.yaml so that we could sleep between thrasher "actions".
The next step would probably be to add chance_down to pggrow but we can wait with that until we feel confident enough.

https://github.com/ceph/ceph/pull/68225

UB Updated by Upkeep Bot 8 months ago Actions #8

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 424bacaf1bd682d7e5ae3fac144f58751a56b627
  • Fixed In set to v21.0.0-332-g424bacaf1b
  • Upkeep Timestamp set to 2026-04-08T16:24:21+00:00

MB Updated by Matan Breizman 8 months ago · Edited Actions #9

  • Status changed from Resolved to In Progress

We're still hitting this issue with reduced split operations - though much less (single failure).
https://pulpito.ceph.com/matan-2026-04-07_09:50:51-crimson-rados-main-distro-debug-trial/136326

The above run had 36 "Growing pool" ops. The next thing to understand is whether there's an actual issue (stuck ops) or the "FATAL_TIMEOUT = 600" is to short for the resources allocated for crimson OSDs in this test.

UB Updated by Upkeep Bot 8 months ago Actions #10

  • Status changed from In Progress to Resolved
  • Upkeep Timestamp changed from 2026-04-08T16:24:21+00:00 to 2026-04-12T12:46:59+00:00

AM Updated by Aishwarya Mathuria 7 months ago Actions #12

I can look into this again

AM Updated by Aishwarya Mathuria 7 months ago Actions #13

  • Status changed from Resolved to In Progress

UB Updated by Upkeep Bot 7 months ago Actions #14

  • Status changed from In Progress to Resolved
  • Upkeep Timestamp changed from 2026-04-12T12:46:59+00:00 to 2026-04-29T01:21:18+00:00

AM Updated by Aishwarya Mathuria 7 months ago · Edited Actions #16

From https://pulpito.ceph.com/jjperez-2026-04-22_13:00:58-crimson-rados-wip-perezjos-crimson-only-14-04-2026-PR68333-distro-debug-trial/169064 osd.2 I see snaptrim starting for this snap_id (pg 3.9a was the one stuck snaptrimming at timeout) :

DEBUG 2026-04-26 06:12:28,656 [shard 0:main] osd -  pg_epoch 541 pg[3.9a( v 267'89 (242'77,267'89] local-lis/les=539/540 n=0 ec=536/19 lis/c=539/539 les/c/f=540/540/0 sis=539) [2,3,1] r=0 lpr=539 crt=267'89 lcod 0'0 mlcod 0'0 active+clean+snaptrim : going to start SnapTrimEvent, to_trim=2
INFO  2026-04-26 06:12:28,656 [shard 0:main] osd - PerShardState::start_operation_may_interrupt, snaptrim_event(id=27410, detail=SnapTrimEvent(pgid=3.9a snapid=2 needs_pause=1))

but then no SnapTrimEvent “awaiting completion/all completed” logs and no snap_mapper ... pg_id:9a ... get_next_objects_to_trim snapid=2  after peering, while the PG stays active+clean+snaptrim and repeatedly prints already trimming

DEBUG 2026-04-26 06:12:29,641 [shard 0:main] osd -  pg_epoch 542 pg[3.9a( v 267'89 (242'77,267'89] local-lis/les=539/540 n=0 ec=536/19 lis/c=539/539 les/c/f=540/540/0 sis=539) [2,3,1] r=0 lpr=539 crt=267'89 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap snap_trimq=[2~dd,e0~f,f0~1,f2~2,f7~2,fa~1,fc~1,fe~1,103~1]
DEBUG 2026-04-26 06:12:29,641 [shard 0:main] osd -  pg_epoch 542 pg[3.9a( v 267'89 (242'77,267'89] local-lis/les=539/540 n=0 ec=536/19 lis/c=539/539 les/c/f=540/540/0 sis=539) [2,3,1] r=0 lpr=539 crt=267'89 lcod 0'0 mlcod 0'0 active+clean+snaptrim : on_active_actmap already trimming.

Since SnapMapper is invoked only after co_await pg->background_process_lock.lock_with_op(*this) I'm wondering if we could be blocked here.

And it's just this one pg that remains in snaptrim state.
Cluster log from around the time the timeout occurs:

2026-04-26T06:32:15.954458+0000 mgr.x (mgr.4104) 1056 : cluster [DBG] pgmap v2150: 415 pgs: 1 active+clean+snaptrim, 414 active+clean; 135 MiB data, 1.9 GiB used, 197 GiB / 199 GiB avail

I still have to check other recent logs to verify that it's the same issue.

AM Updated by Aishwarya Mathuria 6 months ago Actions #21

  • Related to Bug #76935: snaptrim stalls under thrash + pggrow despite higher op_delay added

UB Updated by Upkeep Bot about 1 month ago Actions #22

  • Released In set to v21.2.0~850
  • Upkeep Timestamp changed from 2026-04-29T01:21:18+00:00 to 2026-10-24T01:44:31+00:00
Actions

Also available in: PDF Atom