Project

General

Profile

Actions

Bug #63016

closed
SH BH

ceph-crash: error "dictionary changed size during iteration"

Bug #63016: ceph-crash: error "dictionary changed size during iteration"

Added by Sébastien Han about 3 years ago. Updated about 1 month ago.

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

0%

Source:
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-3878-g75663a1895
Released In:
Upkeep Timestamp:
2026-10-20T01:15:05+00:00

Description

For reference: https://github.com/rook/rook/issues/12935

A lot of crashes were posted and added up to the scrapping directory, leading to ceph-crash to fail with:

"dictionary changed size during iteration"


Related issues 3 (0 open — 3 closed)

Copied to Ceph - Backport #81242: tentacle: ceph-crash: error "dictionary changed size during iteration"RejectedBrad Hubbard

Actions
Copied to Ceph - Backport #81243: umbrella: ceph-crash: error "dictionary changed size during iteration"RejectedBrad Hubbard

Actions
Copied to Ceph - Backport #81244: squid: ceph-crash: error "dictionary changed size during iteration"RejectedBrad Hubbard

Actions

SH Updated by Sébastien Han about 3 years ago Actions #1

  • Pull request ID set to 53711

BH Updated by Brad Hubbard 2 months ago · Edited Actions #2

Seeing this downstream with the following stack.

2026-09-20T00:34:56.113+0000 7f564b9bf640 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'crash' while running on mgr.b: dictionary changed size during iteration
2026-09-20T00:34:56.113+0000 7f564b9bf640 -1 crash.serve:
2026-09-20T00:34:56.113+0000 7f564b9bf640 -1 Traceback (most recent call last):
  File "/usr/share/ceph/mgr/crash/module.py", line 74, in serve
    self._refresh_health_checks()
  File "/usr/share/ceph/mgr/crash/module.py", line 98, in _refresh_health_checks
    recent = {
  File "/usr/share/ceph/mgr/crash/module.py", line 98, in <dictcomp>
    recent = {
RuntimeError: dictionary changed size during iteration

So this is happening in the 'serve' function, which holds the lock, but I'd say it is subject to a race with the 'do_post' function as described in https://github.com/rook/rook/issues/12935#issuecomment-1742988373 since it does not have the 'with_crashes' decorator so therefore is not taking the lock. @Sébastien Han with your permission I'll take this one?

BH Updated by Brad Hubbard 2 months ago Actions #3

  • Backport set to umbrella, tentacle, squid

BH Updated by Brad Hubbard 2 months ago Actions #4

I will likely replace https://github.com/ceph/ceph/pull/53711 so making a not of it here so we don't lose a reference to it.

BH Updated by Brad Hubbard 2 months ago Actions #5

  • Pull request ID changed from 53711 to 71994

KC Updated by Kefu Chai 2 months ago Actions #6

  • Status changed from New to Fix Under Review
  • Assignee set to Brad Hubbard

BH Updated by Brad Hubbard 2 months ago Actions #7

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 2 months ago Actions #8

  • Copied to Backport #81242: tentacle: ceph-crash: error "dictionary changed size during iteration" added

UB Updated by Upkeep Bot 2 months ago Actions #9

  • Copied to Backport #81243: umbrella: ceph-crash: error "dictionary changed size during iteration" added

UB Updated by Upkeep Bot 2 months ago Actions #10

  • Copied to Backport #81244: squid: ceph-crash: error "dictionary changed size during iteration" added

UB Updated by Upkeep Bot 2 months ago Actions #11

  • Status changed from Pending Backport to Backporting
  • Merge Commit set to 75663a1895586970070875eff9304753dc1be2da
  • Fixed In set to v21.3.0-3878-g75663a1895
  • Upkeep Timestamp set to 2026-10-01T03:44:26+00:00

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

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-10-01T03:44:26+00:00 to 2026-10-20T01:15:05+00:00
Actions

Also available in: PDF Atom