Project

General

Profile

Actions

Bug #74794

closed
LS AM

rados/thrash - The WatchDog barked due to Thrasher ceph.osd.9 threw exception wait_for_recovery: failed before timeout expired - Many PGs stuck not active+clean

Bug #74794: rados/thrash - The WatchDog barked due to Thrasher ceph.osd.9 threw exception wait_for_recovery: failed before timeout expired - Many PGs stuck not active+clean

Added by Lee Sanders 10 months ago. Updated 8 days ago.

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

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v22.0.0-757-g47ef35b929
Released In:
Upkeep Timestamp:
2026-11-11T21:01:48+00:00

Description

/a/skanta-2026-01-29_13:05:02-rados-wip-bharath5-testing-2026-01-28-2018-distro-default-trial/25710

2026-01-29T16:55:42.108 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '3.204', 'version': "467'131", 'reported_seq': 15156, 'reported_epoch': 7021, 'state': 'active+clean+snaptrim_wait', 'last_fresh': '2026-01-29T16:55:35.468098+0000', 'last_change': '2026-01-29T15:48:03.081561+0000', 'last_active': '2026-01-29T16:55:35.468098+0000', 'last_peered': '2026-01-29T16:55:35.468098+0000', 'last_clean': '2026-01-29T16:55:35.468098+0000', 'last_became_active': '2026-01-29T14:28:20.686516+0000', 'last_became_peered': '2026-01-29T14:28:20.686516+0000', 'last_unstale': '2026-01-29T16:55:35.468098+0000', 'last_undegraded': '2026-01-29T16:55:35.468098+0000', 'last_fullsized': '2026-01-29T16:55:35.468098+0000', 'mapping_epoch': 3254, 'log_start': "449'125", 'ondisk_log_start': "449'125", 'created': 2700, 'last_epoch_clean': 3300, 'parent': '0.0', 'parent_split_bits': 10, 'last_scrub': "467'131", 'last_scrub_stamp': '2026-01-29T13:32:52.061588+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2026-01-29T13:16:10.026969+0000', 'last_clean_scrub_stamp': '2026-01-29T13:32:52.061588+0000', 'objects_scrubbed': 0, 'log_size': 6, 'log_dups_size': 122, 'ondisk_log_size': 6, 'stats_invalid': True, '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': 10, 'last_scrub_duration': 1, 'scrub_schedule': 'queued for scrub', 'scrub_duration': 300, 'objects_trimmed': 0, 'snaptrim_duration': 2.283725515, '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': [2, 0, 11], 'acting': [2, 0, 11], 'avail_no_missing': [], 'object_location_counts': [], 'blocked_by': [], 'up_primary': 2, 'acting_primary': 2, 'purged_snaps': [{'start': '156', 'length': '1'}, {'start': '16d', 'length': '1'}, {'start': '17d', 'length': '1'}, {'start': '185', 'length': '1'}, {'start': '187', 'length': '1'}, {'start': '18c', 'length': '2'}, {'start': '192', 'length': '1'}, {'start': '195', 'length': '1'}, {'start': '197', 'length': '2'}, {'start': '19b', 'length': '1'}, {'start': '19e', 'length': '1'}, {'start': '1a9', 'length': '2'}, {'start': '1ac', 'length': '2'}, {'start': '1b1', 'length': '1'}]}
2026-01-29T16:55:42.108 INFO:tasks.ceph.ceph_manager.ceph:PG 3.206 is not active+clean
2026-01-29T16:55:42.108 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '3.206', 'version': "281'229", 'reported_seq': 9505, 'reported_epoch': 7021, 'state': 'active+clean+snaptrim_wait', 'last_fresh': '2026-01-29T16:55:36.350714+0000', 'last_change': '2026-01-29T15:48:05.515523+0000', 'last_active': '2026-01-29T16:55:36.350714+0000', 'last_peered': '2026-01-29T16:55:36.350714+0000', 'last_clean': '2026-01-29T16:55:36.350714+0000', 'last_became_active': '2026-01-29T15:40:18.251654+0000', 'last_became_peered': '2026-01-29T15:40:18.251654+0000', 'last_unstale': '2026-01-29T16:55:36.350714+0000', 'last_undegraded': '2026-01-29T16:55:36.350714+0000', 'last_fullsized': '2026-01-29T16:55:36.350714+0000', 'mapping_epoch': 5294, 'log_start': "279'225", 'ondisk_log_start': "279'225", 'created': 2700, 'last_epoch_clean': 5303, 'parent': '0.0', 'parent_split_bits': 10, 'last_scrub': "281'229", 'last_scrub_stamp': '2026-01-29T14:24:03.736616+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2026-01-29T13:16:10.026969+0000', 'last_clean_scrub_stamp': '2026-01-29T14:24:03.736616+0000', 'objects_scrubbed': 0, 'log_size': 4, 'log_dups_size': 228, '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': 16, 'last_scrub_duration': 1, 'scrub_schedule': 'queued for scrub', 'scrub_duration': 104, 'objects_trimmed': 0, 'snaptrim_duration': 1.20541385, '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': [10, 8, 3], 'acting': [10, 8, 3], 'avail_no_missing': [], 'object_location_counts': [], 'blocked_by': [], 'up_primary': 10, 'acting_primary': 10, 'purged_snaps': [{'start': '156', 'length': '1'}, {'start': '16d', 'length': '1'}, {'start': '17d', 'length': '1'}, {'start': '185', 'length': '1'}, {'start': '187', 'length': '1'}, {'start': '18d', 'length': '1'}, {'start': '195', 'length': '1'}, {'start': '197', 'length': '2'}, {'start': '19b', 'length': '1'}, {'start': '19e', 'length': '1'}, {'start': '1a9', 'length': '1'}]}
2026-01-29T16:55:42.108 INFO:tasks.ceph.ceph_manager.ceph:PG 3.209 is not active+clean
2026-01-29T16:55:42.108 INFO:tasks.ceph.ceph_manager.ceph:{'pgid': '3.209', 'version': "0'0", 'reported_seq': 8323, 'reported_epoch': 7022, 'state': 'active+clean+snaptrim_wait', 'last_fresh': '2026-01-29T16:55:38.676360+0000', 'last_change': '2026-01-29T15:52:58.718583+0000', 'last_active': '2026-01-29T16:55:38.676360+0000', 'last_peered': '2026-01-29T16:55:38.676360+0000', 'last_clean': '2026-01-29T16:55:38.676360+0000', 'last_became_active': '2026-01-29T15:52:13.490376+0000', 'last_became_peered': '2026-01-29T15:52:13.490376+0000', 'last_unstale': '2026-01-29T16:55:38.676360+0000', 'last_undegraded': '2026-01-29T16:55:38.676360+0000', 'last_fullsized': '2026-01-29T16:55:38.676360+0000', 'mapping_epoch': 5518, 'log_start': "0'0", 'ondisk_log_start': "0'0", 'created': 2700, 'last_epoch_clean': 5629, 'parent': '0.0', 'parent_split_bits': 10, 'last_scrub': "0'0", 'last_scrub_stamp': '2026-01-29T14:25:11.694464+0000', 'last_deep_scrub': "0'0", 'last_deep_scrub_stamp': '2026-01-29T13:16:10.026969+0000', 'last_clean_scrub_stamp': '2026-01-29T14:25:11.694464+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': 10, 'last_scrub_duration': 1, 'scrub_schedule': 'queued for scrub', 'scrub_duration': 632, 'objects_trimmed': 0, 'snaptrim_duration': 2.360235675, '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': [2, 6, 11], 'acting': [2, 6, 11], 'avail_no_missing': [], 'object_location_counts': [], 'blocked_by': [], 'up_primary': 2, 'acting_primary': 2, 'purged_snaps': [{'start': '156', 'length': '1'}, {'start': '16d', 'length': '1'}, {'start': '17d', 'length': '1'}, {'start': '185', 'length': '1'}, {'start': '187', 'length': '1'}, {'start': '18c', 'length': '2'}, {'start': '192', 'length': '1'}, {'start': '195', 'length': '1'}, {'start': '197', 'length': '2'}, {'start': '19b', 'length': '1'}, {'start': '19e', 'length': '1'}, {'start': '1a9', 'length': '2'}, {'start': '1ac', 'length': '2'}, {'start': '1b1', 'length': '1'}]}

2026-01-29T16:55:42.900 INFO:teuthology.orchestra.run.trial016.stdout:}
2026-01-29T16:55:42.905 INFO:teuthology.orchestra.run.trial016.stdout:osd.5: {}
2026-01-29T16:55:42.905 INFO:teuthology.orchestra.run.trial016.stderr:osd.5: osd_enable_op_tracker = ''
2026-01-29T16:55:42.907 DEBUG:teuthology.orchestra.run.trial016:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 30 ceph --cluster ceph --admin-daemon /var/run/ceph/ceph-osd.8.asok dump_historic_ops
2026-01-29T16:55:42.914 INFO:teuthology.orchestra.run.trial016.stdout:osd.6: {}
2026-01-29T16:55:42.915 INFO:teuthology.orchestra.run.trial016.stderr:osd.6: osd_enable_op_tracker = ''
2026-01-29T16:55:42.917 INFO:tasks.ceph.osd.11.trial131.stderr:2026-01-29T16:55:42.914+0000 7f77643fd640 -1 received  signal: Hangup from /usr/bin/python3 /usr/bin/daemon-helper kill ceph-osd -f --cluster ceph -i 11  (PID: 17151) UID: 0
2026-01-29T16:55:42.924 INFO:teuthology.orchestra.run.trial016.stdout:osd.7: {}
2026-01-29T16:55:42.924 INFO:teuthology.orchestra.run.trial016.stderr:osd.7: osd_enable_op_tracker = ''
2026-01-29T16:55:42.933 INFO:teuthology.orchestra.run.trial016.stdout:osd.8: {}
2026-01-29T16:55:42.934 INFO:teuthology.orchestra.run.trial016.stderr:osd.8: osd_enable_op_tracker = ''
2026-01-29T16:55:42.943 INFO:teuthology.orchestra.run.trial016.stdout:osd.9: {}
2026-01-29T16:55:42.943 INFO:teuthology.orchestra.run.trial016.stderr:osd.9: osd_enable_op_tracker = ''
2026-01-29T16:55:42.953 INFO:teuthology.orchestra.run.trial016.stdout:osd.10: {}
2026-01-29T16:55:42.953 INFO:teuthology.orchestra.run.trial016.stderr:osd.10: osd_enable_op_tracker = ''
2026-01-29T16:55:42.963 INFO:teuthology.orchestra.run.trial016.stdout:osd.11: {}
2026-01-29T16:55:42.963 INFO:teuthology.orchestra.run.trial016.stderr:osd.11: osd_enable_op_tracker = ''
2026-01-29T16:55:42.972 INFO:teuthology.orchestra.run.trial016.stdout:osd.12: {}
2026-01-29T16:55:42.972 INFO:teuthology.orchestra.run.trial016.stderr:osd.12: osd_enable_op_tracker = ''
2026-01-29T16:55:42.974 INFO:tasks.ceph.osd.14.trial110.stderr:2026-01-29T16:55:42.970+0000 7fc0d2019640 -1 osd.14 7024 get_health_metrics reporting 6 slow ops, oldest is pg_backfill(finish_ack 3.1b0 e 6224/6224 lb MIN)
2026-01-29T16:55:42.976 INFO:teuthology.orchestra.run.trial016.stdout:ERROR: (22) Invalid argument
2026-01-29T16:55:42.976 INFO:teuthology.orchestra.run.trial016.stdout:op_tracker tracking is not enabled now, so no ops are tracked currently, even those get stuck. Please enable "osd_enable_op_tracker", and the tracker will start to track new ops received afterwards.
2026-01-29T16:55:42.982 INFO:teuthology.orchestra.run.trial016.stdout:osd.13: {}
2026-01-29T16:55:42.982 INFO:teuthology.orchestra.run.trial016.stderr:osd.13: osd_enable_op_tracker = ''
2026-01-29T16:55:42.983 DEBUG:teuthology.orchestra.run.trial016:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 30 ceph --cluster ceph --admin-daemon /var/run/ceph/ceph-osd.12.asok dump_ops_in_flight
2026-01-29T16:55:42.992 INFO:teuthology.orchestra.run.trial016.stdout:osd.14: {}
2026-01-29T16:55:42.992 INFO:teuthology.orchestra.run.trial016.stderr:osd.14: osd_enable_op_tracker = ''
2026-01-29T16:55:43.002 INFO:teuthology.orchestra.run.trial016.stdout:osd.15: {}
2026-01-29T16:55:43.002 INFO:teuthology.orchestra.run.trial016.stderr:osd.15: osd_enable_op_tracker = ''
2026-01-29T16:55:43.017 INFO:tasks.daemonwatchdog.daemon_watchdog:OSDThrasher failed
2026-01-29T16:55:43.017 INFO:tasks.daemonwatchdog.daemon_watchdog:BARK! unmounting mounts and killing all daemons
2026-01-29T16:55:43.018 INFO:tasks.ceph.osd.15.trial131.stderr:2026-01-29T16:55:43.014+0000 7f0489816640 -1 received  signal: Hangup from /usr/bin/python3 /usr/bin/daemon-helper kill ceph-osd -f --cluster ceph -i 15  (PID: 17153) UID: 0
2026-01-29T16:55:43.067 INFO:teuthology.orchestra.run.trial016.stdout:ERROR: (22) Invalid argument
2026-01-29T16:55:43.067 INFO:teuthology.orchestra.run.trial016.stdout:op_tracker tracking is not enabled now, so no ops are tracked currently, even those get stuck. Please enable "osd_enable_op_tracker", and the tracker will start to track new ops received afterwards.


Related issues 2 (2 open — 0 closed)

Related to RADOS - Bug #70279: rados/thrash: Assertion error: wait_for_recovery: failed before timeout expired due to "undersized+peered" pgIn ProgressLaura Flores

Actions
Copied to RADOS - Backport #83073: umbrella: rados/thrash - The WatchDog barked due to Thrasher ceph.osd.9 threw exception wait_for_recovery: failed before timeout expired - Many PGs stuck not active+cleanFix Under ReviewAishwarya Mathuria

Actions

LF Updated by Laura Flores 10 months ago Actions #1

  • Description updated (diff)

LF Updated by Laura Flores 10 months ago Actions #2

Lee Sanders wrote:

/a/skanta-2026-01-29_13:05:02-rados-wip-bharath5-testing-2026-01-28-2018-distro-default-trial/25710
[...]

PG states before traceback:

{
   "fsid":"6a4beeab-f882-4546-b13f-aaeeb9405c3a",
   "health":{
      "status":"HEALTH_WARN",
      "checks":{
         "OSDMAP_FLAGS":{
            "severity":"HEALTH_WARN",
            "summary":{
               "message":"nodeep-scrub flag(s) set",
               "count":12
            },
            "muted":false
         },
         "SLOW_OPS":{
            "severity":"HEALTH_WARN",
            "summary":{
               "message":"20 slow ops, oldest one blocked for 4043 sec, daemons [osd.1,osd.10] have slow ops.",
               "count":1
            },
            "muted":false
         }
      },
      "mutes":[

      ]
   },
   "election_epoch":8,
   "quorum":[
      0,
      1,
      2
   ],
   "quorum_names":[
      "a",
      "b",
      "c" 
   ],
   "quorum_age":13193,
   "monmap":{
      "epoch":1,
      "min_mon_release_name":"tentacle",
      "num_mons":3
   },
   "osdmap":{
      "epoch":7024,
      "num_osds":16,
      "num_up_osds":16,
      "osd_up_since":1769694892,
      "num_in_osds":11,
      "osd_in_since":1769701775,
      "num_remapped_pgs":162
   },
   "pgmap":{
      "pgs_by_state":[
         {
            "state_name":"active+clean",
            "count":377
         },
         {
            "state_name":"active+clean+snaptrim_wait",
            "count":128
         },
         {
            "state_name":"active+remapped+backfill_wait",
            "count":102
         },
         {
            "state_name":"active+remapped+backfilling",
            "count":60
         },
         {
            "state_name":"active+clean+scrubbing",
            "count":20
         },
         {
            "state_name":"active+clean+snaptrim",
            "count":7
         },
         {
            "state_name":"active+recovering",
            "count":1
         }
      ],
      "num_pgs":695,
      "num_pools":3,
      "num_objects":420,
      "data_bytes":1019004401,
      "bytes_used":3532922880,
      "bytes_avail":1059471482880,
      "bytes_total":1063004405760,
      "misplaced_objects":149,
      "misplaced_total":1260,
      "misplaced_ratio":0.11825396825396824
   },
   "fsmap":{
      "epoch":1,
      "btime":"2026-01-29T13:15:47:789805+0000",
      "by_rank":[

      ],
      "up:standby":0
   },
   "mgrmap":{
      "available":true,
      "num_standbys":1,
      "modules":[
         "iostat",
         "nfs" 
      ],
      "services":{

      }
   },
   "servicemap":{
      "epoch":80,
      "modified":"2026-01-29T16:46:56.742775+0000",
      "services":{

      }
   },
   "progress_events":{

   }
}

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #3

How about reruning with the OpTracker turned on?

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #4

  • Status changed from New to Need More Info

LF Updated by Laura Flores 10 months ago Actions #5

  • Related to Bug #70279: rados/thrash: Assertion error: wait_for_recovery: failed before timeout expired due to "undersized+peered" pg added

AM Updated by Aishwarya Mathuria 10 months ago Actions #6

/a/skanta-2026-02-05_03:38:32-rados-wip-bharath2-testing-2026-02-03-0542-distro-default-trial/35666

NN Updated by Naveen Naidu 10 months ago Actions #7

/a/skanta-2026-01-26_08:54:40-rados-wip-bharath4-testing-2026-01-26-1300-distro-default-trial/17728

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #8

  • Assignee set to Aishwarya Mathuria

Could you please take a look why the recovery hasn't complete on time?

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #9

Bump up.

AM Updated by Aishwarya Mathuria 9 months ago Actions #10

@Radoslaw Zarzynski apologies for the delay. I'm looking into this.
From the logs, I am seeing the pgs go from backfilling state to backfill_wait state

2026-01-26T13:11:21.343+0000 7fc37a747640 10 osd.7 pg_epoch: 5574 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfilling mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] do_peering_event: epoch_sent: 4654 epoch_requested: 4654 DeferBackfill: delay 0
2026-01-26T13:11:21.343+0000 7fc37a747640 10 osd.7 pg_epoch: 5574 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfilling mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] PeeringState::needs_backfill osd.12 has last_backfill MIN
2026-01-26T13:11:21.343+0000 7fc37a747640 10 osd.7 pg_epoch: 5574 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfilling mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] state<Started/Primary/Active/Backfilling>: defer backfill, retry delay 0
2026-01-26T13:11:21.343+0000 7fc37a747640  5 osd.7 pg_epoch: 5574 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfill_wait mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] enter Started/Primary/Active/NotBackfilling
2026-01-26T13:11:21.343+0000 7fc37a747640 20 osd.7 pg_epoch: 5574 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfill_wait mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] PeeringState::update_calc_stats actingset 5,7,15 upset 5,7,12 acting_recovery_backfill 5,7,12,15

And then backfilling again after a while:

2026-01-26T13:50:15.240+0000 7fc37af48640  5 osd.7 pg_epoch: 6551 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfill_wait mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] enter Started/Primary/Active/Backfilling
2026-01-26T13:50:15.240+0000 7fc37af48640 10 osd.7 pg_epoch: 6551 pg[3.126( v 619'214 (615'210,619'214] local-lis/les=4632/4639 n=1 ec=1348/30 lis/c=4632/4621 les/c/f=4639/4623/0 sis=4632) [7,5,12]/[7,5,15] backfill=[12] r=0 lpr=4632 pi=[4621,4632)/2 crt=619'214 lcod 0'0 mlcod 0'0 active+remapped+backfilling mbc={} trimq=[1a5~4,1aa~1,1ac~1,1ae~8,1b7~4,1bc~3,1c0~1] ps=[18d~13,1a1~4]] queue_recovery -- already queued

I did notice this earlier which seems strange:

2026-01-26T12:43:49.079+0000 7fc37a747640 20 osd.7 op_wq(0) _enqueue OpSchedulerItem(3.95 PGRecovery(pgid=3.95 epoch_queued=4599 reserved_pushes=1) class_id 1 prio 5 cost 1 e4599 reserved_pushes 1)
2026-01-26T12:43:49.079+0000 7fc37a747640 10 osd.7 4614 _maybe_queue_recovery starting 1, recovery_ops_reserved 6 -> 7
2026-01-26T12:43:49.079+0000 7fc37a747640 15 osd.7 4614 _recover_now active 3 + reserved 7 >= max 10

subsequent _recover_now() checks return false till the timeout.

2026-01-26T12:48:43.402+0000 7fc37af48640 15 osd.7 4866 _recover_now active 0 + reserved 10 >= max 10

I will continue to look into this.

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #11

Bump up.

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #12

Bump up.

KS Updated by Kamoltat (Junior) Sirivadhna 8 months ago Actions #13

bump up: ping @Aishwarya Mathuria

NN Updated by Naveen Naidu 8 months ago Actions #14

/a/skanta-2026-04-01_10:28:51-rados-wip-bharath10-testing-2026-04-01-1346-distro-default-trial/128914

RZ Updated by Radoslaw Zarzynski 8 months ago Actions #15

@Aishwarya Mathuria: there are new logs.

AM Updated by Aishwarya Mathuria 8 months ago Actions #16

thanks @Radoslaw Zarzynski! Taking a look now

AM Updated by Aishwarya Mathuria 8 months ago Actions #17

We are seeing the same symptom pattern in both EC and replicated/backfill cases: recovery/backfill makes partial state progress, but the op/slot does not appear to be released afterward.

In the EC case, objects enter recovery, but there is no matching finish_recovery_op() , leaving rops stuck.

In the replicated case, OSD recovery scheduler logs show recovery_ops_reserved increasing in _maybe_queue_recovery() , while later _recover_now() refuses new work because `active + reserved >= max`, even when active drops to 0.

2026-01-26T12:48:43.402+0000 7fc37af48640 15 osd.7 4866 _recover_now active 0 + reserved 10 >= max 10

I am continuing to look into the logs, still not sure what exactly is causing this.

AM Updated by Aishwarya Mathuria 8 months ago Actions #18

  • Status changed from Need More Info to In Progress

RZ Updated by Radoslaw Zarzynski 8 months ago Actions #19

@Aishwarya Mathuria: any news?

SS Updated by Sridhar Seshasayee 7 months ago Actions #20

/a/skanta-2026-04-09_03:57:47-rados-wip-bharath16-testing-2026-04-08-1405-distro-default-trial/141099

LF Updated by Laura Flores 7 months ago Actions #21

Bump up

AM Updated by Aishwarya Mathuria 7 months ago Actions #22

/a/skanta-2026-02-07_00:06:33-rados-wip-bharath3-testing-2026-02-06-1157-distro-default-trial/39148

LF Updated by Laura Flores 7 months ago Actions #23

Bump up

AM Updated by Aishwarya Mathuria 6 months ago Actions #24

Status update:

What’s failing : wait_for_recovery times out because recovery throughput goes to zero. Many PGs sit in backfill_wait / backfilling, but the blocker is on the OSD: recovery_ops_reserved hits osd_recovery_max_active while recovery_ops_active stays 0, so _recover_now stops starting new recovery even though nothing is actually running.

Mechanism : _maybe_queue_recovery() increments recovery_ops_reserved when it enqueues PGRecovery on op_shardedwq. The slot is only released when do_recovery() finishes (release_reserved_pushes(1)). If that queued PGRecovery never runs (scheduler backlog / peering flood on the same shard), the reservation leaks.
During a map-thrash burst, for example, (~06:28:17–42 on osd.2), nine PGs were enqueued this way; reserved climbed to 10/10 and stayed there for hours with active=0.

Evidence : Example PG 3.77 — recovery does run when capacity is free (PGRecovery reaches _process / do_recovery at ~06:21). After the wedge, epoch 5347 was enqueued at 06:28:20 but never appears in _process; only high-priority PGPeeringEvent traffic.
Last healthy release_reserved_pushes(1) on osd.2 was ~06:23:54; from 06:28:43 logs show active 0 + reserved 10 >= max 10.

Next steps:
- adding DEBUG logs around the release_reserved_pushes code
- figure out why recovery for these pgs was in queue for hours

LF Updated by Laura Flores 6 months ago Actions #25

/a/skanta-2026-05-27_06:21:57-rados-wip-bharath4-testing-2026-05-27-1003-distro-default-trial/239910

LF Updated by Laura Flores 6 months ago Actions #26

Bump up

LF Updated by Laura Flores 6 months ago Actions #27

Aishwarya Mathuria wrote in #note-22:

/a/skanta-2026-02-07_00:06:33-rados-wip-bharath3-testing-2026-02-06-1157-distro-default-trial/39148

Laura Flores wrote in #note-25:

/a/skanta-2026-05-27_06:21:57-rados-wip-bharath4-testing-2026-05-27-1003-distro-default-trial/239910

Another recent failure:
/a/lflores-2026-05-29_18:58:15-rados-wip-bharath4-testing-2026-05-27-1003-distro-default-trial/247266

An observation -- each of these three jobs that failed had a similar test description that included "workloads/pool-snaps-few-objects":

description: rados/thrash/{0-size-min-size-overrides/3-size-2-min-size 1-pg-log-overrides/short_pg_log
    2-recovery-overrides/{more-async-partial-recovery} 3-scrub-overrides/{max-simultaneous-scrubs-3}
    backoff/normal ceph clusters/{fixed-4} crc-failures/default d-balancer/crush-compat
    mon_election/connectivity msgr-failures/osd-dispatch-delay msgr/async-v1only objectstore/{bluestore/{alloc$/{btree}
    base mem$/{normal-1} onode-segment$/{1M} write$/{v1/{compr$/{yes$/{zlib}} v1}}}} 
    rados supported-random-distro/{ubuntu_latest} thrashers/morepggrow thrashosds-health
    workloads/pool-snaps-few-objects}

And each have PGs that are stuck in some combination of "backfill_wait", "backfilling", and "snaptrim_wait":

{"pgs_by_state":[{"state_name":"active+clean","count":515},{"state_name":"active+remapped+backfill_wait","count":59},{"state_name":"active+remapped+backfilling","count":23},{"state_name":"active+clean+snaptrim_wait","count":19}

SS Updated by Sridhar Seshasayee 6 months ago Actions #28

/a/sseshasa-2026-05-26_18:29:48-rados-wip-sseshasa-testing-2026-05-26-1779803771-distro-default-trial/238323

LF Updated by Laura Flores 6 months ago Actions #29

/a/lflores-2026-06-05_19:26:14-rados-wip-lflores-testing-3-2026-06-05-1057-distro-default-trial/269152

LF Updated by Laura Flores 6 months ago Actions #30

Bump up

AM Updated by Aishwarya Mathuria 6 months ago Actions #31

Analysing the latest failures - no new updates. The issue seems to be getting exposed by the workloads/pool-snaps-few-objects + thrashers/morepggrow combo, so I'll be trying to replicate the issue with some additional logs.

SS Updated by Sridhar Seshasayee 6 months ago Actions #32

/a/skanta-2026-06-14_23:24:50-rados-wip-bharath11-testing-2026-06-12-0509-distro-default-trial/293715

KS Updated by Kamoltat (Junior) Sirivadhna 6 months ago Actions #33

still in progress. bump up

AM Updated by Aishwarya Mathuria 6 months ago Actions #34

/a/skanta-2026-06-15_22:17:34-rados-wip-bharath12-testing-2026-06-15-1114-distro-default-trial/294599

LF Updated by Laura Flores 5 months ago Actions #37

Bump up

LF Updated by Laura Flores 5 months ago Actions #38

/a/skanta-2026-06-25_00:45:57-rados-wip-bharath16-testing-2026-06-24-1509-distro-default-trial/314277

LF Updated by Laura Flores 5 months ago Actions #39

Bump up

@Aishwarya Mathuria is there anything telling from the extra logging?

AM Updated by Aishwarya Mathuria 5 months ago Actions #40

@Laura Flores I'm working on it - apologies for the delay in updating the tracker.

The issue appears to be driven largely by cluster overload during PG growth, not a single wedged “recovering” PG. The test can grow pg_num while the cluster still has peering/activating/backfill backlog, which leads to long queued for pg slow ops and elevated inactive/peering counts.
I'm trying to figure out if the test is a bit unrealistic by setting (false is the default and it is set to true for thrash tests) :

aggressive_pg_num_changes: false

This should make the test use the normal mgr adjust_pgs() path so splits/pgp_num updates defer when inactive_pgs_ratio, degraded_ratio, or misplaced_ratio are high.
I'm hoping this will help us decide if we have a bug or the test needs to be modified.

AM Updated by Aishwarya Mathuria 5 months ago Actions #41

/a/skanta-2026-07-10_04:56:13-rados-wip-bharath8-testing-2026-07-08-0700-distro-default-trial/352233

LF Updated by Laura Flores 5 months ago Actions #42

Aishwarya Mathuria wrote in #note-40:

@Laura Flores I'm working on it - apologies for the delay in updating the tracker.

The issue appears to be driven largely by cluster overload during PG growth, not a single wedged “recovering” PG. The test can grow pg_num while the cluster still has peering/activating/backfill backlog, which leads to long queued for pg slow ops and elevated inactive/peering counts.
I'm trying to figure out if the test is a bit unrealistic by setting (false is the default and it is set to true for thrash tests) :

[...]

This should make the test use the normal mgr adjust_pgs() path so splits/pgp_num updates defer when inactive_pgs_ratio, degraded_ratio, or misplaced_ratio are high.
I'm hoping this will help us decide if we have a bug or the test needs to be modified.

ACK!

JB Updated by Jonathan Bailey 4 months ago Actions #43

/a/skanta-2026-07-13_12:08:50-rados-wip-bharath23-testing-2026-07-12-2036-distro-default-trial/361058

AM Updated by Aishwarya Mathuria 4 months ago Actions #44

Aishwarya Mathuria wrote in #note-40:

@Laura Flores I'm working on it - apologies for the delay in updating the tracker.

The issue appears to be driven largely by cluster overload during PG growth, not a single wedged “recovering” PG. The test can grow pg_num while the cluster still has peering/activating/backfill backlog, which leads to long queued for pg slow ops and elevated inactive/peering counts.
I'm trying to figure out if the test is a bit unrealistic by setting (false is the default and it is set to true for thrash tests) :

[...]

This should make the test use the normal mgr adjust_pgs() path so splits/pgp_num updates defer when inactive_pgs_ratio, degraded_ratio, or misplaced_ratio are high.
I'm hoping this will help us decide if we have a bug or the test needs to be modified.

This is the test run result with aggressive_pg_num_changes set to false - https://pulpito-ng.ceph.com/runs/amathuri-2026-07-13_13:46:24-rados:thrash-main-distro-default-trial and it looks pretty clean.
I'll look into which other tests set this config to true and if it depicts a real world scenario. Otherwise, maybe we can consider turning it off for morepggrow thrash tests?
Let me know if you have any thoughts on this @Laura Flores and @Radoslaw Zarzynski.

LF Updated by Laura Flores 4 months ago Actions #45

Aishwarya Mathuria wrote in #note-44:

Aishwarya Mathuria wrote in #note-40:

@Laura Flores I'm working on it - apologies for the delay in updating the tracker.

The issue appears to be driven largely by cluster overload during PG growth, not a single wedged “recovering” PG. The test can grow pg_num while the cluster still has peering/activating/backfill backlog, which leads to long queued for pg slow ops and elevated inactive/peering counts.
I'm trying to figure out if the test is a bit unrealistic by setting (false is the default and it is set to true for thrash tests) :

[...]

This should make the test use the normal mgr adjust_pgs() path so splits/pgp_num updates defer when inactive_pgs_ratio, degraded_ratio, or misplaced_ratio are high.
I'm hoping this will help us decide if we have a bug or the test needs to be modified.

This is the test run result with aggressive_pg_num_changes set to false - https://pulpito-ng.ceph.com/runs/amathuri-2026-07-13_13:46:24-rados:thrash-main-distro-default-trial and it looks pretty clean.
I'll look into which other tests set this config to true and if it depicts a real world scenario. Otherwise, maybe we can consider turning it off for morepggrow thrash tests?
Let me know if you have any thoughts on this @Laura Flores and @Radoslaw Zarzynski.

Makes sense to me!

JP Updated by Jaya Prakash 4 months ago Actions #46

/a/jayaprakash-2026-07-24_10:10:00-rados-wip-jaya-bs-testing-umbrella-23-07-2026-distro-default-trial/396316

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #47

Bump up – WIP.

JB Updated by Jonathan Bailey 4 months ago Actions #48

/a/skanta-2026-07-29_01:45:42-rados-wip-bharath23-testing-2026-07-28-1848-distro-default-trial/407465

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #49

Bump up.

LS Updated by Lee Sanders 4 months ago Actions #50

/a/yuriw-2026-07-24_19:54:08-rados-wip-yuri-testing-20260724.161317-umbrella-distro-default-trial/
['398230','398254']

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #51

@Aishwarya Mathuria: what's the status of this?

LF Updated by Laura Flores 4 months ago Actions #52

Bump up

RZ Updated by Radoslaw Zarzynski 3 months ago Actions #53

Bump up.

AM Updated by Aishwarya Mathuria 3 months ago Actions #54

/a/yuriw-2026-08-24_23:11:13-rados-wip-yuri2-testing-20260824.212845-main-distro-default-trial/510406

RZ Updated by Radoslaw Zarzynski 3 months ago Actions #55

Bump up.

LF Updated by Laura Flores 3 months ago Actions #56

/a/skanta-2026-07-28_02:50:14-rados-wip-bharath2-testing-20260727.155959-main-distro-default-trial/402489

NM Updated by Nitzan Mordechai 3 months ago Actions #57

/a/skanta-2026-09-12_14:24:38-rados-wip-bharath12-testing-20260911.231931-main-distro-default-trial/553849

LF Updated by Laura Flores 3 months ago Actions #58

Bump up

MW Updated by Matty Williams 3 months ago Actions #59

/a/skanta-2026-09-16_04:01:33-rados-wip-bharath19-testing-20260915.234926-main-distro-default-trial/558589

JB Updated by Jonathan Bailey 3 months ago Actions #60

/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541238

SS Updated by Sridhar Seshasayee 2 months ago Actions #61

/a/skanta-2026-09-09_16:03:40-rados-wip-bharath14-testing-20260909.090422-main-distro-default-trial/546238

JP Updated by Jaya Prakash 2 months ago Actions #62

/a/skanta-2026-09-18_10:03:55-rados-wip-bharath23-testing-20260918.000104-umbrella-distro-default-trial/567061

LF Updated by Laura Flores 2 months ago Actions #63

Bump up

NN Updated by Naveen Naidu 2 months ago Actions #64

/a/skanta-2026-09-04_04:06:36-rados-wip-bharath7-testing-20260904.011528-main-distro-default-trial/537382

LS Updated by Lee Sanders 2 months ago Actions #65

/a/skanta-2026-09-24_04:14:51-rados-wip-bharath20-testing-20260924.011348-main-distro-default-trial/
577674, 577864

LF Updated by Laura Flores 2 months ago Actions #66

Bump up (Aishwarya is working on testing the change).

LF Updated by Laura Flores about 2 months ago Actions #67

Bump up

NM Updated by Nitzan Mordechai about 2 months ago Actions #68

  • Backport set to umbrella

/a/skanta-2026-10-02_06:39:18-rados-wip-bharath3-testing-20261001.121332-umbrella-distro-default-trial/600809

SS Updated by Sridhar Seshasayee about 2 months ago Actions #69

/a/lflores-2026-10-12_22:55:25-rados-wip-lflores-testing-3-2026-10-12-1144-umbrella-distro-default-smithi/630978

AM Updated by Aishwarya Mathuria about 2 months ago Actions #70

/a/skanta-2026-10-06_23:12:02-rados-wip-bharath31-testing-20261006.075505-main-distro-default-trial/
['612594', '612545']

LF Updated by Laura Flores about 2 months ago Actions #71

Bump up

LF Updated by Laura Flores about 1 month ago Actions #72

Bump up

AM Updated by Aishwarya Mathuria about 1 month ago Actions #73

  • Pull request ID set to 72990

LF Updated by Laura Flores about 1 month ago Actions #74

  • Status changed from In Progress to Fix Under Review

LF Updated by Laura Flores 27 days ago Actions #75

Added to a QA batch

CF Updated by Connor Fawcett 22 days ago Actions #76

/a/skanta-2026-11-03_06:27:24-rados-wip-bharath11-testing-20261028.083425-main-distro-default-trial/707184

JP Updated by Jaya Prakash 22 days ago Actions #77

/a/pdonnell-2026-11-04_14:03:40-rados-main-distro-default-trial/713352

KS Updated by Kamoltat (Junior) Sirivadhna 21 days ago Actions #78

  • Status changed from Fix Under Review to Pending Backport

merged

UB Updated by Upkeep Bot 21 days ago Actions #79

  • Copied to Backport #83073: umbrella: rados/thrash - The WatchDog barked due to Thrasher ceph.osd.9 threw exception wait_for_recovery: failed before timeout expired - Many PGs stuck not active+clean added

UB Updated by Upkeep Bot 21 days ago Actions #80

  • Status changed from Pending Backport to Backporting
  • Merge Commit set to 47ef35b929462685576aac5062a6eeff17470cc4
  • Fixed In set to v22.0.0-757-g47ef35b929
  • Upkeep Timestamp set to 2026-11-11T21:01:48+00:00

CF Updated by Connor Fawcett 21 days ago Actions #81

/a/skanta-2026-11-02_04:43:35-rados-wip-bharath18-testing-20261029.065635-main-distro-default-trial/701813
/a/skanta-2026-11-02_04:43:35-rados-wip-bharath18-testing-20261029.065635-main-distro-default-trial/701816

AA Updated by Alex Ainscow 20 days ago Actions #82

/a/aainscow-2026-11-11_22:19:05-rados-wip-aainscow-stretch-poolmig-main-261111c-distro-default-gibba/749319

LF Updated by Laura Flores 9 days ago Actions #83

/a/skanta-2026-11-04_05:01:14-rados-wip-bharath30-testing-20261103.033156-main-distro-default-trial/709751
/a/skanta-2026-11-04_05:01:14-rados-wip-bharath30-testing-20261103.033156-main-distro-default-trial/709945

MW Updated by Matty Williams 8 days ago Actions #84

/a/skanta-2026-11-21_04:34:59-rados-wip-bharath32-testing-20261121.005100-umbrella-distro-default-trial/775997

Actions

Also available in: PDF Atom