Bug #63016
closedceph-crash: error "dictionary changed size during iteration"
0%
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"
SH Updated by Sébastien Han about 3 years ago
- Pull request ID set to 53711
BH Updated by Brad Hubbard 2 months ago · Edited
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
- Backport set to umbrella, tentacle, squid
BH Updated by Brad Hubbard 2 months ago
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
- Pull request ID changed from 53711 to 71994
BH Updated by Brad Hubbard 2 months ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81242: tentacle: ceph-crash: error "dictionary changed size during iteration" added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81243: umbrella: ceph-crash: error "dictionary changed size during iteration" added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81244: squid: ceph-crash: error "dictionary changed size during iteration" added
UB Updated by Upkeep Bot 2 months ago
- 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
BH Updated by Brad Hubbard about 1 month ago · Edited
UB Updated by Upkeep Bot about 1 month ago
- 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