Project

General

Profile

Actions

Bug #73169

closed
JP MA

wait_for_recovery is failing with few PGs unable to complete recovery

Bug #73169: wait_for_recovery is failing with few PGs unable to complete recovery

Added by Jose J Palacios Perez about 1 year ago. Updated 7 months ago.

Status:
Duplicate
Priority:
High
Assignee:
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):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Context: job https://pulpito.ceph.com/jjperez-2025-09-17_14:42:00-crimson-rados-wip-perezjos-crimson-only-17-09-2025-PR65197-distro-crimson-release-smithi/8506157/

  • From teuthology.log: ceph_manager assert indicating timeout whilst waiting for recovery:
2025-09-17T17:18:00.969 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_ceph_ceph_bafdbd6dcab322cf9a20ab38e7e1a0c98191b28c/qa/tasks/ceph_manager.py", line 192, in wrapper
    return func(self)
  File "/home/teuthworker/src/github.com_ceph_ceph_bafdbd6dcab322cf9a20ab38e7e1a0c98191b28c/qa/tasks/ceph_manager.py", line 1494, in _do_thrash
    self.ceph_manager.wait_for_recovery(
  File "/home/teuthworker/src/github.com_ceph_ceph_bafdbd6dcab322cf9a20ab38e7e1a0c98191b28c/qa/tasks/ceph_manager.py", line 3021, in wait_for_recovery
    assert now - start < timeout, \
AssertionError: wait_for_recovery: failed before timeout expired
  • stuck waiting for all OSDs to complete recovery - wait_for_recovery :
2025-09-17T17:18:00.963 INFO:tasks.ceph.ceph_manager.ceph:PG 6.f is not active+clean
2025-09-17T17:18:00.963 INFO:tasks.ceph.ceph_manager.ceph:PG 6.e is not active+clean
2025-09-17T17:18:00.963 INFO:tasks.ceph.ceph_manager.ceph:PG 6.d is not active+clean
2025-09-17T17:18:00.964 INFO:tasks.ceph.ceph_manager.ceph:PG 6.c is not active+clean

suite: crimson-rados
suite_branch: main

Possibly related to https://tracker.ceph.com/issues/71002


Related issues 2 (1 open — 1 closed)

Related to crimson - Bug #74086: The pg is not in active+clean state due to peering is not finishedNewShraddha Agrawal

Actions
Related to crimson - Bug #76196: Crimson: repop sent to replicas not yet backfilledResolvedXuehan Xu

Actions

MB Updated by Matan Breizman about 1 year ago Actions #2

  • Priority changed from Normal to High

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #3

/teuthology/moagrawa-2025-10-23_01:15:05-crimson-rados-main-distro-crimson-debug-smithi/8566307/teuthology.log

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #4

teuthology/moagrawa-2025-10-23_01:15:05-crimson-rados-main-distro-crimson-debug-smithi/8566219/remote/smithi060/log/ceph-osd.0.log.gz

wait_for_recovery is failing
2025-10-23T08:35:52.687 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
File "/home/teuthworker/src/github.com_mohit84_ceph_f7bcc210e4a09a722711262b90c2167b1ce0989f/qa/tasks/ceph_manager.py", line 192, in wrapper
return func(self)
File "/home/teuthworker/src/github.com_mohit84_ceph_f7bcc210e4a09a722711262b90c2167b1ce0989f/qa/tasks/ceph_manager.py", line 1494, in _do_thrash
self.ceph_manager.wait_for_recovery(
File "/home/teuthworker/src/github.com_mohit84_ceph_f7bcc210e4a09a722711262b90c2167b1ce0989f/qa/tasks/ceph_manager.py", line 3008, in wait_for_recovery

because osd is getting crash and throwing below stacktrace
ERROR 2025-10-23 08:28:40,378 [shard 0:main] osd - Got SIGSEGV on shard 0
Backtrace:
0# crimson::osd::RecoveryBackend::add_temp_obj(hobject_t const&) in ceph-osd
1# crimson::osd::PGRecovery::dispatch_backfill_event(boost::intrusive_ptr<boost::statechart::event_base const>) in ceph-osd
2# crimson::osd::ScrubAsyncOpT<crimson::osd::ScrubScan>::start() in ceph-osd
3# crimson::osd::PGRecovery::enqueue_push(hobject_t const&, eversion_t const&, std::vector<pg_shard_t, std::allocator<pg_shard_t> > const&) in ceph-osd
4# Unwind_RaiseException in ceph-osd
5# _Unwind_RaiseException in ceph-osd
6# _Unwind_RaiseException in ceph-osd
7# google_breakpad::WriteMinidump(char const*, std::
_cxx11::list<google_breakpad::MappingEntry, std::allocator<google_breakpad::MappingEntry> > const&, std::__cxx11::list<google_breakpad::AppMemory, std::allocator<google_breakpad::AppMemory> > const&, google_breakpad::LinuxDumper*) in ceph-osd
8# google_breakpad::WriteMinidump(char const*, std::__cxx11::list<google_breakpad::MappingEntry, std::allocator<google_breakpad::MappingEntry> > const&, std::__cxx11::list<google_breakpad::AppMemory, std::allocator<google_breakpad::AppMemory> > const&, google_breakpad::LinuxDumper*) in ceph-osd
9# main in ceph-osd
10# 0x00007FEAA38295D0 in /lib64/libc.so.6
11# __libc_start_main in /lib64/libc.so.6
12# _start in ceph-osd

MB Updated by Matan Breizman about 1 year ago Actions #5

MOHIT AGRAWAL wrote in #note-4:

teuthology/moagrawa-2025-10-23_01:15:05-crimson-rados-main-distro-crimson-debug-smithi/8566219/remote/smithi060/log/ceph-osd.0.log.gz

I've created https://tracker.ceph.com/issues/73726 out of this comment since the OSDs in this tracker did not crash.

JP Updated by Jose J Palacios Perez about 1 year ago Actions #6

  • Tags set to frequent-failure

MA Updated by MOHIT AGRAWAL about 1 year ago Actions #8

  • Assignee changed from MOHIT AGRAWAL to MOHIT AGRAWAL

SA Updated by Shraddha Agrawal 11 months ago · Edited Actions #10

shraddhaag-2025-12-04_08:39:06-crimson-rados-main-distro-crimson-debug-smithi/8641186

2025-12-04T15:05:43.199 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '3.4', 'version': "1592'937", 'reported_seq': 15767, 'reported_epoch': 1608, 'state': 'active+undersized+degraded+remapped+backfill_wait', 'last_fresh': '2025-12-04T14:25:16.848442+0000', 'last_change': '2025-12-04T14:25:16.848442+0000', 'last_active': '2025-12-04T14:25:16.848442+0000', 'last_peered': '2025-12-04T14:25:16.848442+0000', 'last_clean': '2025-12-04T14:21:58.743664+0000', 'last_became_active': '2025-12-04T14:25:16.836110+0000', 'last_became_peered': '2025-12-04T14:25:16.836110+0000', 'last_unstale': '2025-12-04T14:25:16.848442+0000', 'last_undegraded': '2025-12-04T14:25:10.658033+0000', 'last_fullsized': '2025-12-04T14:25:10.626692+0000', 'mapping_epoch': 1605, 'log_start': "1578'933", 'ondisk_log_start': "1578'933", 'created': 18, 'last_epoch_clean': 1516, 'parent': '0.0', 'parent_split_bits': 0, 'last_scrub': "0'0", 'last_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'last_clean_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'objects_scrubbed': 0, 'log_size': 4, 'log_dups_size': 933, 'ondisk_log_size': 4, 'stats_invalid': False, 'dirty_stats_invalid': False, 'omap_stats_invalid': False, 'hitset_stats_invalid': False, 'hitset_bytes_stats_invalid': False, 'pin_stats_invalid': False, 'manifest_stats_invalid': False, 'snaptrimq_len': 523, 'last_scrub_duration': 0, 'scrub_schedule': '--', 'scrub_duration': 0, 'objects_trimmed': 67, 'snaptrim_duration': 0, 'stat_sum': {'num_bytes': 1429057, 'num_objects': 12, 'num_object_clones': 9, 'num_object_copies': 36, 'num_objects_missing_on_primary': 0, 'num_objects_missing': 0, 'num_objects_degraded': 12, 'num_objects_misplaced': 0, 'num_objects_unfound': 0, 'num_objects_dirty': 0, 'num_whiteouts': 1, 'num_read': 228, 'num_read_kb': 156774, 'num_write': 377, 'num_write_kb': 103498, 'num_scrub_errors': 0, 'num_shallow_scrub_errors': 0, 'num_deep_scrub_errors': 0, 'num_objects_recovered': 64, 'num_bytes_recovered': 38999537, 'num_keys_recovered': 0, 'num_objects_omap': 0, 'num_objects_hit_set_archive': 0, 'num_bytes_hit_set_archive': 0, 'num_flush': 0, 'num_flush_kb': 0, 'num_evict': 0, 'num_evict_kb': 0, 'num_promote': 0, 'num_flush_mode_high': 0, 'num_flush_mode_low': 0, 'num_evict_mode_some': 0, 'num_evict_mode_full': 0, 'num_objects_pinned': 0, 'num_legacy_snapsets': 0, 'num_large_omap_objects': 0, 'num_objects_manifest': 0, 'num_omap_bytes': 0, 'num_omap_keys': 0, 'num_objects_repaired': 0}, 'up': [2, 3, 0], 'acting': [0, 3], 'avail_no_missing': ['0', '3'], 'object_location_counts': [{'shards': '0,3', 'objects': 12}], 'blocked_by': [], 'up_primary': 2, 'acting_primary': 0, 'purged_snaps': []}
2025-12-04T15:05:43.199 INFO:tasks.ceph.ceph_manager.ceph:PG 3.6 is not active+clean
2025-12-04T15:05:43.199 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '3.6', 'version': "1591'562", 'reported_seq': 15330, 'reported_epoch': 1608, 'state': 'active+undersized+degraded+remapped+backfill_wait', 'last_fresh': '2025-12-04T14:25:13.664248+0000', 'last_change': '2025-12-04T14:25:13.664248+0000', 'last_active': '2025-12-04T14:25:13.664248+0000', 'last_peered': '2025-12-04T14:25:13.664248+0000', 'last_clean': '2025-12-04T14:23:35.508840+0000', 'last_became_active': '2025-12-04T14:25:13.653581+0000', 'last_became_peered': '2025-12-04T14:25:13.653581+0000', 'last_unstale': '2025-12-04T14:25:13.664248+0000', 'last_undegraded': '2025-12-04T14:25:10.609232+0000', 'last_fullsized': '2025-12-04T14:25:10.594750+0000', 'mapping_epoch': 1605, 'log_start': "1586'558", 'ondisk_log_start': "1586'558", 'created': 18, 'last_epoch_clean': 1553, 'parent': '0.0', 'parent_split_bits': 0, 'last_scrub': "0'0", 'last_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'last_clean_scrub_stamp': '2025-12-04T13:34:34.878839+0000', 'objects_scrubbed': 0, 'log_size': 4, 'log_dups_size': 558, 'ondisk_log_size': 4, 'stats_invalid': False, 'dirty_stats_invalid': False, 'omap_stats_invalid': False, 'hitset_stats_invalid': False, 'hitset_bytes_stats_invalid': False, 'pin_stats_invalid': False, 'manifest_stats_invalid': False, 'snaptrimq_len': 523, 'last_scrub_duration': 0, 'scrub_schedule': '--', 'scrub_duration': 0, 'objects_trimmed': 38, 'snaptrim_duration': 0, 'stat_sum': {'num_bytes': 1765230, 'num_objects': 9, 'num_object_clones': 7, 'num_object_copies': 27, 'num_objects_missing_on_primary': 0, 'num_objects_missing': 0, 'num_objects_degraded': 9, 'num_objects_misplaced': 0, 'num_objects_unfound': 0, 'num_objects_dirty': 0, 'num_whiteouts': 0, 'num_read': 169, 'num_read_kb': 117755, 'num_write': 222, 'num_write_kb': 61839, 'num_scrub_errors': 0, 'num_shallow_scrub_errors': 0, 'num_deep_scrub_errors': 0, 'num_objects_recovered': 73, 'num_bytes_recovered': 37553892, 'num_keys_recovered': 0, 'num_objects_omap': 0, 'num_objects_hit_set_archive': 0, 'num_bytes_hit_set_archive': 0, 'num_flush': 0, 'num_flush_kb': 0, 'num_evict': 0, 'num_evict_kb': 0, 'num_promote': 0, 'num_flush_mode_high': 0, 'num_flush_mode_low': 0, 'num_evict_mode_some': 0, 'num_evict_mode_full': 0, 'num_objects_pinned': 0, 'num_legacy_snapsets': 0, 'num_large_omap_objects': 0, 'num_objects_manifest': 0, 'num_omap_bytes': 0, 'num_omap_keys': 0, 'num_objects_repaired': 0}, 'up': [2, 3, 1], 'acting': [1, 3], 'avail_no_missing': ['1', '3'], 'object_location_counts': [{'shards': '1,3', 'objects': 9}], 'blocked_by': [], 'up_primary': 2, 'acting_primary': 1, 'purged_snaps': []}
2025-12-04T15:05:43.202 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_shraddhaag_ceph_5fc716bf9f7215a5ae23ce85501dc5cd6396af8a/qa/tasks/ceph_manager.py", line 192, in wrapper
    return func(self)
  File "/home/teuthworker/src/github.com_shraddhaag_ceph_5fc716bf9f7215a5ae23ce85501dc5cd6396af8a/qa/tasks/ceph_manager.py", line 1494, in _do_thrash
    self.ceph_manager.wait_for_recovery(
  File "/home/teuthworker/src/github.com_shraddhaag_ceph_5fc716bf9f7215a5ae23ce85501dc5cd6396af8a/qa/tasks/ceph_manager.py", line 3021, in wait_for_recovery
    assert now - start < timeout, \
AssertionError: wait_for_recovery: failed before timeout expired

shraddhaag-2025-12-04_08:39:06-crimson-rados-main-distro-crimson-debug-smithi/8641140

SA Updated by Shraddha Agrawal 10 months ago Actions #11

https://qa-proxy.ceph.com/teuthology/shraddhaag-2026-01-29_06:15:00-crimson-rados-main-distro-debug-trial/25354/

2026-01-29T09:48:19.449 INFO:tasks.ceph.ceph_manager.ceph:PG 2.4 is not active+clean
2026-01-29T09:48:19.449 INFO:tasks.ceph.ceph_manager.ceph:PG 2.7 is not active+clean
2026-01-29T09:48:19.449 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '2.7', 'version': "0'0", 'reported_seq': 2748, 'reported_epoch': 1611, 'state': 'activating', 'last_fresh': '2026-01-29T09:08:39.394687+0000', 'last_change': '2026-01-29T09:08:39.394687+0000', 'last_active': '2026-01-29T09:08:07.536401+0000', 'last_peered': '2026-01-29T09:08:07.531778+0000', 'last_clean': '2026-01-29T09:08:07.531778+0000', 'last_became_active': '2026-01-29T09:05:35.227366+0000', 'last_became_peered': '2026-01-29T09:05:35.227366+0000', 'last_unstale': '2026-01-29T09:08:39.394687+0000', 'last_undegraded': '2026-01-29T09:08:39.394687+0000', 'last_fullsized': '2026-01-29T09:08:39.394687+0000', 'mapping_epoch': 1600, 'log_start': "0'0", 'ondisk_log_start': "0'0", 'created': 15, 'last_epoch_clean': 1592, 'parent': '0.0', 'parent_split_bits': 0, 'last_scrub': "0'0", 'last_scrub_stamp': '2026-01-29T08:04:09.588354+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2026-01-29T08:04:09.588354+0000', 'last_clean_scrub_stamp': '2026-01-29T08:04:09.588354+0000', 'objects_scrubbed': 0, 'log_size': 0, 'log_dups_size': 0, 'ondisk_log_size': 0, 'stats_invalid': False, 'dirty_stats_invalid': False, 'omap_stats_invalid': False, 'hitset_stats_invalid': False, 'hitset_bytes_stats_invalid': False, 'pin_stats_invalid': False, 'manifest_stats_invalid': False, 'snaptrimq_len': 1, 'last_scrub_duration': 0, 'scrub_schedule': '--', 'scrub_duration': 0, 'objects_trimmed': 0, 'snaptrim_duration': 0, 'stat_sum': {'num_bytes': 0, 'num_objects': 0, 'num_object_clones': 0, 'num_object_copies': 0, 'num_objects_missing_on_primary': 0, 'num_objects_missing': 0, 'num_objects_degraded': 0, 'num_objects_misplaced': 0, 'num_objects_unfound': 0, 'num_objects_dirty': 0, 'num_whiteouts': 0, 'num_read': 0, 'num_read_kb': 0, 'num_write': 0, 'num_write_kb': 0, 'num_scrub_errors': 0, 'num_shallow_scrub_errors': 0, 'num_deep_scrub_errors': 0, 'num_objects_recovered': 0, 'num_bytes_recovered': 0, 'num_keys_recovered': 0, 'num_objects_omap': 0, 'num_objects_hit_set_archive': 0, 'num_bytes_hit_set_archive': 0, 'num_flush': 0, 'num_flush_kb': 0, 'num_evict': 0, 'num_evict_kb': 0, 'num_promote': 0, 'num_flush_mode_high': 0, 'num_flush_mode_low': 0, 'num_evict_mode_some': 0, 'num_evict_mode_full': 0, 'num_objects_pinned': 0, 'num_legacy_snapsets': 0, 'num_large_omap_objects': 0, 'num_objects_manifest': 0, 'num_omap_bytes': 0, 'num_omap_keys': 0, 'num_objects_repaired': 0}, 'up': [3, 0, 1], 'acting': [3, 0, 1], 'avail_no_missing': ['3', '0', '1'], 'object_location_counts': [], 'blocked_by': [], 'up_primary': 3, 'acting_primary': 3, 'purged_snaps': []}
2026-01-29T09:48:19.450 ERROR:teuthology.run_tasks:Manager failed: thrashosds
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_teuthology_c433f1062990a0488dc29a553589bc609a460691/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/github.com_shraddhaag_ceph_547338694a5ad9a62bc3f5d1490594754efe14df/qa/tasks/thrashosds.py", line 220, in task
    cluster_manager.wait_for_recovery(config.get('timeout', 360))
  File "/home/teuthworker/src/github.com_shraddhaag_ceph_547338694a5ad9a62bc3f5d1490594754efe14df/qa/tasks/ceph_manager.py", line 3021, in wait_for_recovery
    assert now - start < timeout, \
           ^^^^^^^^^^^^^^^^^^^^^
AssertionError: wait_for_recovery: failed before timeout expired

MB Updated by Matan Breizman 8 months ago Actions #13

  • Related to Bug #74086: The pg is not in active+clean state due to peering is not finished added

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

Hey @MOHIT AGRAWAL, any updates on this one? We seem to see this tracker occur recently. Thanks!

I don;t think it is similar to the tracker bug but i am still analyzing the logs. In earlier
case the recovery was not finished because an OSD was crashed but in latest logs the OSD is
not getting crashed.

MA Updated by MOHIT AGRAWAL 8 months ago Actions #15

The main issue is peering process is stuck, during peering process for pg (3.19) primary osd(.3) sends query to all 3 osds.

1064371 DEBUG 2026-03-23 10:54:04,654 [shard 2:main] osd -  pg_epoch 30 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30 pruub=15.063972473s) [3,1,2] r=0 lpr=30 pi=[28,30)/1 crt=29'195 lcod 29'194 mlcod 0'0 peering pruub 52.727001190s@ state<Started/Primary/Peering/GetInfo>:  querying info from osd.0
1064372 DEBUG 2026-03-23 10:54:04,654 [shard 2:main] osd -  pg_epoch 30 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30 pruub=15.063972473s) [3,1,2] r=0 lpr=30 pi=[28,30)/1 crt=29'195 lcod 29'194 mlcod 0'0 peering pruub 52.727001190s@ state<Started/Primary/Peering/GetInfo>:  querying info from osd.1
1064375 DEBUG 2026-03-23 10:54:04,654 [shard 2:main] osd -  pg_epoch 30 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30 pruub=15.063972473s) [3,1,2] r=0 lpr=30 pi=[28,30)/1 crt=29'195 lcod 29'194 mlcod 0'0 peering pruub 52.727001190s@ state<Started/Primary/Peering/GetInfo>:  querying info from osd.2
1064376 DEBUG 2026-03-23 10:54:04,654 [shard 2:main] osd -  pg_epoch 30 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30 pruub=15.063972473s) [3,1,2] r=0 lpr=30 pi=[28,30)/1 crt=29'195 lcod 29'194 mlcod 0'0 peering pruub 52.727001190s@ state<Started/Primary/Peering/GetInfo>:  querying info from osd.2

and below are the pg_query2 related logs that proves the same
the pg_query2 is related to osd.1

1064884 DEBUG 2026-03-23 10:54:04,657 [shard 0:main] ms - [0x7c6160d83780 osd.3(cluster) v2:10.20.193.127:6800/872996270@57752 >> osd.1 v2:10.20.193.123:6803/1771492805] send 1810 send() to core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1064885 DEBUG 2026-03-23 10:54:04,657 [shard 0:main] ms - [0x7c6160d83780 osd.3(cluster) v2:10.20.193.127:6800/872996270@57752 >> osd.1 v2:10.20.193.123:6803/1771492805] got 1810 do_send() from core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1064886 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160d83780 osd.3(cluster) v2:10.20.193.127:6800/872996270@57752 >> osd.1 v2:10.20.193.123:6803/1771492805] -->#1809 === pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1 (131)
1064887 INFO  2026-03-23 10:54:04,658 [shard 0:main] osd - OSDSingletonState::send_alive: want=30 up_thru_wanted=30
1064888 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] osd - OSDSingletonState::send_alive: want=30 <= up_thru_wanted=30; skipping

the pg_query2 is related to osd.2

1064889 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2740 osd.3(cluster) v2:10.20.193.127:6800/872996270@49412 >> osd.2 v2:10.20.193.127:6802/4054012136] connect to existing
1064890 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2740 osd.3(cluster) v2:10.20.193.127:6800/872996270@49412 >> osd.2 v2:10.20.193.127:6802/4054012136] send 2370 send() to core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1064891 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2740 osd.3(cluster) v2:10.20.193.127:6800/872996270@49412 >> osd.2 v2:10.20.193.127:6802/4054012136] got 2370 do_send() from core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1064892 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2740 osd.3(cluster) v2:10.20.193.127:6800/872996270@49412 >> osd.2 v2:10.20.193.127:6802/4054012136] -->  #2370 === pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1 (131)

the pg_query2 is related to osd.0

1064970 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2380 osd.3(cluster) v2:10.20.193.127:6800/872996270@58500 >> osd.0 v2:10.20.193.123:6802/880499688] connect to existing
1064971 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2380 osd.3(cluster) v2:10.20.193.127:6800/872996270@58500 >> osd.0 v2:10.20.193.123:6802/880499688] send 1315 send() to core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1064972 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] ms - [0x7c6160ce2380 osd.3(cluster) v2:10.20.193.127:6800/872996270@58500 >> osd.0 v2:10.20.193.123:6802/880499688] got  1315 do_send() from core 0 -- pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1
1066295 DEBUG 2026-03-23 10:54:04,713 [shard 0:main] ms - [0x7c6160ce2380 osd.3(cluster) v2:10.20.193.127:6800/872996270@58500 >> osd.0 v2:10.20.193.123:6802/880499688] -->  #1316 === pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1 (131)

and after checking the log further it seems primary osd is not getting response form osd.1

pg_query2 response from osd.2

1065343 DEBUG 2026-03-23 10:54:04,664 [shard 0:main] ms - [0x7c6160ce2740 osd.3(cluster) v2:10.20.193.127:6800/872996270@49412 >> osd.2 v2:10.20.193.127:6802/4054012136] <== #2398,2370 === pg_notify2(3.19 3.19 (query:30 sent:30 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30) ([28,29]         all_participants={0, 1, 3} intervals=[([28,29] acting={0, 1, 3})])) e30/30) v1 (130)
1065344 DEBUG 2026-03-23 10:54:04,664 [shard 0:main] osd - OSD::handle_peering_op: 3.19 from 2
1065345 DEBUG 2026-03-23 10:54:04,664 [shard 0:main] osd - peering_event(id=7511, detail=PeeringEvent(from=2 pgid=3.19 sent=30 requested=30 evt=epoch_sent: 30 epoch_requested: 30 MNotifyRec 3.19 from 2 notify: (query:30 sent:30 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30) ([28,29]         all_participants={0, 1, 3} intervals=[([28,29] acting={0, 1, 3})])) features: 0x3f0ffffffffdffff +create_info)): starting start_pg_operation

pg_query2 response from osd.0

1069761 DEBUG 2026-03-23 10:54:04,797 [shard 0:main] ms - [0x7c6160ce2380 osd.3(cluster) v2:10.20.193.127:6800/872996270@58500 >> osd.0 v2:10.20.193.123:6802/880499688] <==         #1347,1316 === pg_notify2(3.19 3.19 (query:30 sent:30 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=30 pruub=14.93        0671692s) ([28,29] all_participants={0, 1, 3} intervals=[([28,29] acting={0, 1, 3})])) e30/30) v1 (130)

But there is no response showing in the logs from osd.1
zgrep -in "pg_notify2(3.19" ceph-osd.3.log.gz | grep osd.1 | grep 1809

Now after checking the ceph-osd.1 log it seems it has blocked

As we can see osd.1 is blocked on await_map stage and it can be unblock only after advancing map to 30

802367 DEBUG 2026-03-23 10:54:04,657 [shard 0:main] ms - [0x7c88218ebfc0 osd.1(cluster) v2:10.20.193.123:6803/1771492805 >> osd.3 v2:10.20.193.12        7:6800/872996270@57752] <== #1809,1810 === pg_query2(3.19 3.19 query(info 0'0 epoch_sent 30) e30/30) v1 (131)
 802368 DEBUG 2026-03-23 10:54:04,657 [shard 0:main] osd - OSD::handle_peering_op: 3.19 from 3
 802369 DEBUG 2026-03-23 10:54:04,657 [shard 0:main] osd - peering_event(id=3968, detail=PeeringEvent(from=3 pgid=3.19 sent=30 requested=30 evt=epoch_sent: 30 epoch_requested: 30 MQuery 3.19 from 3 query_epoch 30 query: query(info 0'0 epoch_sent 30))): starting start_pg_operation
 802370 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] osd - peering_event(id=3968, detail=PeeringEvent(from=3 pgid=3.19 sent=30 requested=30 evt=epoch_sent: 30 epoch_requested: 30 MQuery 3.19 from 3 query_epoch 30 query: query(info 0'0 epoch_sent 30))): start_pg_operation in await_active stage
 802371 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] osd - peering_event(id=3968, detail=PeeringEvent(from=3 pgid=3.19 sent=30 requested=30 evt=epoch_sent: 30 epoch_requested: 30 MQuery 3.19 from 3 query_epoch 30 query: query(info 0'0 epoch_sent 30))): start_pg_operation active, entering await_map
 802372 DEBUG 2026-03-23 10:54:04,658 [shard 0:main] osd - peering_event(id=3968, detail=PeeringEvent(from=3 pgid=3.19 sent=30 requested=30 evt=epoch_sent: 30 epoch_requested: 30 MQuery 3.19 from 3 query_epoch 30 query: query(info 0'0 epoch_sent 30))): start_pg_operation await_map stage
 802373 INFO  2026-03-23 10:54:04,658 [shard 0:main] osd - evt epoch is 30, i have 29, will wait
 802374 INFO  2026-03-23 10:54:04,658 [shard 0:main] osd - OSDSingletonState::osdmap_subscribe: epoch 29

The advancing map requests received just before process a peering_op and it was not showing any progress

801043 DEBUG 2026-03-23 10:54:04,644 [shard 2:main] osd - PGAdvanceMap::start: pg_advance_map(id=33555437, detail=PGAdvanceMap(pg=3.19 from=4294967295 to=30)): start 

There is no log captures specific to progress advancing map to 30
zgrep -i "getting map 30" ceph-osd.1.log.gz | grep 3.19

Most likely it is a pipeline blockage issue but need to debug it further.

MA Updated by MOHIT AGRAWAL 8 months ago Actions #16

It seems pg_advance_map is not able to process because it is not able to get a peering_pp.process and the pipeline is holding by a previous peering event that is never released.


 795771 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - OSD::handle_peering_op: 3.19 from 3
 795772 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): starting start_pg_operation
 795773 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): start_pg_operation in await_active stage
 795774 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): start_pg_operation active, entering await_map
 795775 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): start_pg_operation await_map stage
 795776 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): got map 29, entering get_pg_mapping
 795777 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): can_create=true, target-core=2 
 795778 DEBUG 2026-03-23 10:54:04,223 [shard 0:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): send 551 to the remote pg core 2
 795779 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): entering create_or_wait_pg
 795780 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/        f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): have_pg
 795781 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - 0x0 PeeringEvent<T>::with_pg: start
  795782 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - 0x7ba821d93310 PeeringEvent<T>::with_pg: 0x7ba821d93310 peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'1        95] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))):         pg present
 795783 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - do_peering_event handling epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190        s int 16.000000000s) for pg: 3.19
 795784 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd -  pg_epoch 29 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28) [3,1,2]/[3,1,0] r=1 lpr=28 pi=[25,28)/1 pct=29'192 lua=26'188 crt=29'195 active+remapped PeeringState::updat        e_history advanced history from ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28
 795785 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd -  pg_epoch 29 pg[3.19( v 29'195 (29'191,29'195] local-lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28) [3,1,2]/[3,1,0] r=1 lpr=28 pi=[25,28)/1 pct=29'192 lua=26'188 crt=29'195 active+remapped PeeringState::updat        e_history clearing past_intervals
 795786 DEBUG 2026-03-23 10:54:04,223 [shard 2:main] osd - log is not dirty
 795787 DEBUG 2026-03-23 10:54:04,224 [shard 2:main] osd - 0x7ba821d93310 PeeringEvent<T>::complete_rctx: peering_event(id=3867, detail=PeeringEvent(from=3 pgid=3.19 sent=29 requested=29 evt=epoch_sent: 29 epoch_requested: 29 MInfoRec from 3 info: 3.19( v 29'195 (29'191,29'195] local        -lis/les=28/29 n=31 ec=25/19 lis/c=28/28 les/c/f=29/29/0 sis=28) pg_lease(ru 52.727001190s ub 52.727001190s int 16.000000000s))): submitting ctx
795788 DEBUG 2026-03-23 10:54:04,224 [shard 2:main] osd - OSDSingletonState::dispatch_context_transaction: do_transaction ...
795789 DEBUG 2026-03-23 10:54:04,224 [shard 2:main] alienstore - do_transaction_no_callbacks

and there is no exit message in the logs related to the peering_event(3867) and i think it is blocked because of blocking at backend.

MA Updated by MOHIT AGRAWAL 8 months ago Actions #17

As i have shared in previous logs there was no progress after throwing a message "do_transaction_no_callbacks" so i have
put some debug logs in the function do_transaction_no_callbacks and trigger a build "https://jenkins.ceph.com/job/ceph-dev-pipeline/4428/"

seastar::future<> AlienStore::do_transaction_no_callbacks(
  CollectionRef ch,
  ceph::os::Transaction&& txn)
{
  logger().debug("{}", __func__);
  auto id = seastar::this_shard_id();
  auto done = seastar::promise<>();
  return do_with_op_gate(
    std::move(txn),
    std::move(done),
    [this, ch, id] (auto &txn, auto &done) {
        AlienCollection* alien_coll = static_cast<AlienCollection*>(ch.get());
        // moving the `ch` is crucial for buildability on newer S* versions.
        return alien_coll->with_lock([this, ch=std::move(ch), id, &txn, &done] {
          logger().debug("{}: got collection_lock", __func__);
          assert(tp);
          return tp->submit(ch->get_cid().hash_to_shard(tp->size()),
            [this, ch, id, &txn, &done, &alien=seastar::engine().alien()] {
            logger().debug("{}: submitted to thread pool", __func__);
            txn.register_on_commit(new OnCommit(id, done, alien, txn));
            auto c = static_cast<AlienCollection*>(ch.get());
            return store->queue_transaction(c->collection, std::move(txn));
          });
        }).then([&done] (int r) {
          logger().debug("{}: transaction_queued r={}", __func__, r);
          assert(r == 0);
          return done.get_future();
        });
    });
}


I will run the test case again to find out RCA.

MA Updated by MOHIT AGRAWAL 8 months ago Actions #18

After checking the logs i am not seeing the message "submitted to thread pool", it seems the blocking
is happening at thread_pool->submit. I have put more details logs and retrigger a build to find out RCA.

seastar::future<> AlienStore::do_transaction_no_callbacks(
  CollectionRef ch,
  ceph::os::Transaction&& txn)
{
  logger().debug("{}", __func__);
  auto id = seastar::this_shard_id();
  auto done = seastar::promise<>();
  return do_with_op_gate(
    std::move(txn),
    std::move(done),
    [this, ch, id] (auto &txn, auto &done) {
        AlienCollection* alien_coll = static_cast<AlienCollection*>(ch.get());
        // moving the `ch` is crucial for buildability on newer S* versions.
        return alien_coll->with_lock([this, ch=std::move(ch), id, &txn, &done] {
          logger().debug("{}: got collection_lock pgid={}", __func__, ch->get_cid());
          assert(tp);
          return tp->submit(ch->get_cid().hash_to_shard(tp->size()),
            [this, ch, id, &txn, &done, &alien=seastar::engine().alien()] {
            logger().debug("{}: submitted to thread pool shard={} thread_shard={}",
                           __func__, ch->get_cid().hash_to_shard(tp->size()),
                           seastar::this_shard_id());
            txn.register_on_commit(new OnCommit(id, done, alien, txn));
            auto c = static_cast<AlienCollection*>(ch.get());
            return store->queue_transaction(c->collection, std::move(txn));
          });
        }).then([&done, ch] (int r) {
          logger().debug("{}: transaction_queued pgid={} r={}", __func__, ch->get_cid(), r);
          assert(r == 0);
          return done.get_future();
        });
    });
}

MA Updated by MOHIT AGRAWAL 8 months ago Actions #19

For peering stuck issue my understand is like below
Issue : should_send_op incorrectly returns TRUE for objects that don;t exist on the backfill target.

What happens:
- After return TRUE primary sent a txn with setattr ops
- setattr requires object to exist
- HEAD does not exist - throw ENOENT and abort
- alien thread dies
- promise never resolved
- free_slots[shard=N] never returned

and subsequent transactions queued on shard N wait for slot and stuck forever.

Fix:
Put !is_missing_on_peer(peer, hoid) in should_send_op
- object in peer_missing = push in-flight
- HEAD doesn't exist yet on backfill target
- should_send=FALSE → no setattr → no ENOENT

When push completes:
peer_missing cleared for hoid
!is_missing_on_peer=TRUE
should_send=TRUE → setattr → HEAD exists and no crash.

I have executed a job almost more than 200 times and it is working fine.

MA Updated by MOHIT AGRAWAL 8 months ago Actions #20

  • Status changed from New to Duplicate
  • Parent task set to #76196

MA Updated by MOHIT AGRAWAL 8 months ago Actions #21

  • Status changed from Duplicate to In Progress
  • Parent task deleted (#76196)

MA Updated by MOHIT AGRAWAL 8 months ago Actions #22

  • Status changed from In Progress to Duplicate

MA Updated by MOHIT AGRAWAL 8 months ago Actions #23

  • Related to Bug #76196: Crimson: repop sent to replicas not yet backfilled added
Actions

Also available in: PDF Atom