Files
floci/src/main/java
Olamide Kosile 7828ab2430 fix(docker): translate misleading disk-quota error for keyring exhaustion (#2797)
* fix(docker): translate misleading disk-quota error for keyring exhaustion

crun/runc report the kernel session-keyring quota (kernel.keys.maxkeys)
as "join keyctl ...: Disk quota exceeded", which reads as an actual
disk-space problem. Under high concurrent container counts this is
common on podman machine's default Fedora CoreOS sysctls (200 keys per
uid), and sends operators looking in the wrong place.

Both container-start call sites in ContainerLifecycleManager now go
through a shared helper that recognizes this specific OCI runtime error
and rethrows with the actual cause and the sysctl fix, leaving every
other DockerException untouched.

Fixes floci-io/floci#2243

* fix(docker): route the shared-volume init helper through the translated start path

pgermosen review on PR #2797: initSharedVolumeRoot's helper container
start bypassed the keyring-quota translation, so it still surfaced the
raw, misleading "Disk quota exceeded" message when this specific start
call hit the crun keyring error. The failure is caught as a plain
RuntimeException by ensureSharedVolume's computeIfAbsent and only
logged, never rethrown, so this exact call site's routing is what
decides which message ends up in that log line.

startContainer is now package-private so the new test can verify this
call site actually invokes it (via a spy), since the swallowed
exception itself is not observable from ensureSharedVolume's public
contract.
2026-09-01 18:06:10 -04:00
..