Skip to main content

Post Mortem: Tentacle v20.2.0 OSD crashing due to EC Bug

· 5 min read
Joshua Blanch
Software Engineer at Clyso
Zac Dover
Technical Writer at Clyso

On January 11, 2026, at 2:48 PST, an emergency support request was opened for OSD crashes in v20.2.0 that rendered CephFS inaccessible.

The incident was resolved, restoring cluster availability.

A secondary post-recovery issue related to scrubbing errors was subsequently identified and fixed.

The fix involved deploying a new build of Ceph that contained the patches for the fix. The engineering team made use of the new build system, making it possible to get the fix to the client as fast as possible.

What happened

The client upgraded from squid to tentacle and enabled allow_ec_optimizations on an existing CephFS Erasure Coded (EC) data pool.

The new code path (specifically within ECTransaction::WritePlanObj) attempted to access a transaction key that did not exist and caused random OSDs to crash.

Specifically: Github Code Link

Due to persistent OSD crashes and failed recovery attempts, the engineering team evaluated two options:

  1. Disable writes to the pool and access it in r/o mode (possibly migrating data to a new pool)
  2. Build a Ceph release that fixed the bug that led to the crashing OSDs

The team is always cautious about making a Ceph build with a fixed patch since it doesn’t undergo the same extensive testing as upstream does during their releases.

In this scenario, since the fix was already merged into upstream and our engineers understood the impact of the patch, we decided to exercise our build system to deliver a fix for this client.

At January 11, 5:07AM the client agreed with this solution and at 6:45AM the image was delivered to the client. The client replaced an OSD with the new image and it stopped the crash; after replacing all OSDs with the new patch all OSDs were up and PGs were restored.

New Scrub Errors

health: HEALTH_WARN
noout,noscrub,nodeep-scrub flag(s) set
Too many repaired reads on 32 OSDs
(muted: OSD_SCRUB_ERRORS POOL_NO_REDUNDANCY)

After the administrators removed the noscrub and nodeep-scrub flags, the OSD began flooding with scrub-related errors:

osd.20 [ERR] 4.115 shard 4(1) soid 4:a8a7e711:::100027683d7.00000001:head : candidate size 1089536 info size 1085440 mismatch

As quoted from PR #65872:

The problem arises with "fast EC" for a pool which has been upgraded from a legacy EC pool. Any object that was written with legacy EC will be padded according to the legacy EC code, but scrubbing will check against the fast EC code, which pads shards more efficiently.

Clyso Engineers identified the following PRs as the missing fix for this scrubbing issue that were also merged by upstream.

TrackerPull Request
#73184PR #65872
#73260PR #65788

The client then confirmed that everything was fine on the new build. There were no more CRC errors in logs, and write IOs went smoothly without any issues.

  • Final image: harbor.clyso.com/custom-ceph/ceph/ceph:v20.2.0-fast-ec-path-hf.2 This image contains v20.2.0 + PR #63960 + PR #65872 + PR #65788

This image comes without any warranty or guarantee. For more information please contact Clyso Support.

Timeline

DateTimeEvent
2026 Jan 112:48 AM PSTClyso engineering team makes first contact with the issue
2026 Jan 114:38 AM PSTClyso engineering team identified the possible issue (see tracker) and proposed two solutions to either migrate the data over to a new pool or compile the fix
2026 Jan 115:00 AM PSTClient agrees with a compiled fix and build team decides to begin a build.
2026 11 Jan7:34 AM PSTBuild is delivered to the client.
2026 11 Jan9:14 AM PSTAll OSDs in the client's cluster are now up. PGs are coming back.
2026 11 Jan9:42 AM PSTPost-Incident Observation. Client reports a high count of OSD_SCRUB_ERRORs (approximately 592,000 errors) following recovery.
2026 12 Jan3:43 AM PSTCluster reports HEALTH_WARN due to too many repaired reads on 32 OSDs. Whenever an OSD would undergo a scrub, the following error was logged: osd.20 [ERR] 4.115 shard 4(1) soid ... candidate size 1089536 info size 1085440 mismatch osd.20 [ERR] 4.115s0 shard 4(1) soid ... size 1089536 != size 1085440 from auth oi
2026 12 Jan6:43 AM PSTClyso identifies two missing patches that are thought to contain the fix.
2026 12 Jan9:36 AM PSTThe build is produced and sent to the client.
2026 12 Jan11:52 AM PSTThe client reports that OSDs are not triggering any new errors. Write IO is working again.