What was released
containerd 2.4.3 and 2.3.8 were released on December 3, 2026. Both include, under the Container Runtime Interface heading, "Fix image pulls being cancelled for no progress while layers are being unpacked". The change was merged to the main branch as pull request 14061 on November 18, 2026, fixing issue 13909, and cherry-picked to the 2.4 branch as pull request 14618. In the 2.4.2 source the progress handler's completion case reads case "complete":; in 2.4.3 and 2.3.8 it reads case "complete", "extracting", "extracted", "already exists":. One line, and a good example of a general bug: a watchdog that counts transitions instead of reading state.
This article is a source analysis of the 2.4.2 and 2.4.3 code, not a measurement. I did not run containerd; the machine used for this batch has no Linux environment. The companion lab models the mechanism with the timings taken from the source.
How the CRI pull watchdog works
The kubelet asks containerd to pull an image through the CRI. Pulls can stall, for example when a registry connection hangs without closing, so containerd has a no-progress watchdog controlled by image_pull_progress_timeout, 5 minutes by default (0 disables it). When the pull goes through the transfer service, which is the default unless use_local_image_pull = true, a transferProgressReporter feeds the watchdog from progress events:
- A
downloadingevent for a layer it has not seen yet increments an active request counter and records bytes read. Laterdownloadingevents add the new bytes. - A
completeevent decrements the counter and removes the layer from its map. - Every report interval, which is 10 seconds or half the timeout if the timeout is shorter,
checkProgresslooks at the counter and the byte total. If there are no active requests, or bytes increased since the last check, it records the time. Otherwise, if more than the timeout has passed since the recorded time, it cancels the pull with "cancel pulling image ... because of no progress".
The idea is sound: active requests with no new bytes for five minutes means something is stuck. The counter is the weak point, because it is maintained from events, and the events come from a poller.
The race
The transfer service's ProgressTracker does not push every state change. It keeps a job per layer and, on a 300 millisecond ticker, compares each job with the content store's active ingests. For a job in the added or in-progress state it sends downloading with the current offset while the download is active, and complete once the layer is no longer an active ingest and is present in the store. Separately, when unpacking of a layer starts, an extraction message moves the job to an extracting state immediately; on later ticks the tracker sends extracting and finally extracted for that job.
Now put the two together. A layer finishes downloading. Unpacking of that layer starts a few milliseconds later, before the next 300 millisecond tick. By the time the tracker looks at the job, it is already extracting, so it sends extracting, never complete. In 2.4.2 the reporter ignores extracting, extracted and already exists, so the active request counter for that layer is never decremented. As the pull request description puts it, the counter leaks.
The leak is harmless while other layers are still downloading, because bytes keep increasing. It becomes a cancellation when the last download has finished and a long unpack is still running: no new bytes, a non-zero counter, and after the timeout the watchdog cancels a pull that was working.
A worked timeline
The companion lab uses a synthetic image with three layers: a 40 MB base layer downloaded in 3.1 seconds, a 3,800 MB layer of model weights downloaded in 60.1 seconds, and a 15 MB configuration layer downloaded in 1.5 seconds. Downloads run in parallel; unpacking runs in layer order and starts 50 milliseconds after each download ends, or when the previous unpack finishes. The weights layer takes 340 seconds to unpack.
With the 2.4.2 handler, the configuration layer finishes at 1.5 seconds and a poll sees it as complete before its unpack begins, so its counter is released. The base layer finishes at 3.1 seconds, starts unpacking at 3.15, and the next poll at 3.3 seconds sees it extracting: its counter leaks. The weights layer does the same at 60.1, 60.15 and 60.3 seconds. The last new bytes arrive at 60 seconds. With the default 5 minute timeout and 10 second checks, the watchdog cancels the pull at 370 seconds, about 32 seconds before the unpack would have finished at 402.15 seconds. With the 2.4.3 handler the extracting events release both counters, the counter is zero during the long unpack, and the pull completes.
The lab also shows the conditions under which 2.4.2 works. If unpacking starts more than one poll interval after the download ends, a poll always sees the download as complete first. If the last unpack is shorter than the timeout, the leaked counter never matters. And with the timeout set to 0 the watchdog is off, which hides the leak along with any real stalls.
Who was affected
Reading the source suggests the combination needed: CRI pulls through the transfer service, the default image pull progress timeout or a shorter one, and at least one layer whose unpack after the final download takes longer than the timeout. Large layers on slow disks are the natural candidates, for example images that bake model weights into a layer. Symptoms on a node would be a pull that fails after several minutes with a "no progress" cancellation in the containerd log, a kubelet ErrImagePull or back-off, and a retry that downloads nothing new and may fail again in the same way. Pulls with use_local_image_pull = true go through a different reporter and are not affected by this handler.
Two workarounds were available before the fix: raise image_pull_progress_timeout above the longest expected unpack, or set it to 0. Both weaken the protection against real stalls, which is why upgrading is the better answer.
The general lesson
A watchdog built on counters maintained from events is only as reliable as the event stream. Here the stream came from a poller that reports the state it finds, and states can be skipped between polls. Three designs avoid this class of bug:
- Handle every terminal or later state as completion. That is the 2.4.3 fix: any event that implies the download is over releases the counter.
- Derive the count from current state rather than incrementing and decrementing. Counting layers whose state is downloading, at check time, cannot leak.
- Count all forms of progress. Unpacking is progress. A watchdog that only counts network bytes will eventually judge a busy pull as stalled.
TERMINAL = {"complete", "extracting", "extracted", "already exists"}
def handle(event, statuses, counters):
name, kind = event["name"], event["event"]
if kind == "downloading" and name not in statuses:
statuses[name] = event["progress"]
counters["active"] += 1
elif kind in TERMINAL and name in statuses:
del statuses[name]
counters["active"] -= 1What to do
Upgrade to containerd 2.4.3 or 2.3.8 or later. If you cannot upgrade yet and see no-progress cancellations on large images, raise image_pull_progress_timeout above the longest unpack you expect rather than setting it to 0, and record the change so it can be reverted after the upgrade. For any watchdog you own, write a test where the observed stream skips an intermediate state, and assert that the watchdog does not fire.
Interactive experiment
Pull progress watchdog: missed events and false timeouts. Adjustable synthetic fixtures, decision traces, reset and JSON export.