Name the Server and the disk a pull filled, containerd's store included (#3155, #2881) #3179
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3179"
general
weight: 0.35
nick-potts
Fixes #3155
Fixes #2881
Summary
When a deploy's image pull fills a Server's disk, the error now names the Server and the disk that is actually full.
/var/lib/containerd. A Server with a small root disk and/var/lib/dockeron a big data disk fills the root disk. The error still pointed at the nearly empty Docker root:The Server's disk is full: 39789 MB free under /var/lib/docker.The Server's disk is fulland didn't say which Server.pull_failure(crates/ployzd/src/docker/images.rs) now takes the Docker root and containerd's store, each with its free bytes. It names the store only when Docker's error wrote under it: a path starting/var/lib/containerd/, such aswrite /var/lib/containerd/…. Otherwise it names the Docker root, as before. containerd can keep its store elsewhere, so an unused/var/lib/containerdtakes no blame.docker info. A pull that fails for a reason no full disk explains, such asmanifest unknown, no longer waits up to 3 s on Docker. This is CodeRabbit's follow-up from #3086.Failure::on(crates/ployz-store/src/deployment/rows.rs) isFailure::offor an operation that ran on a known Machine. Both headlines pass the failed operation's Machine, so a full disk readsServer <name>'s disk is full: the Store's Deployment reason, and the CLI's own deploy report (deploy/report.rs, used byserver initand ingress setup). The per-row lines already sayapi on machine-1, and they keepThe Server's.docs/user/troubleshooting/deployments.md"My server's disk is full" shows the new message. It says images live under/var/lib/containerd, which can sit on a different disk from/var/lib/docker, and that a data disk for Docker belongs at both.Stable promise and wire
details.disk_fullstays{docker_root, free_bytes}.docker_rootnow carries the directory on the full disk, which is/var/lib/containerdwhen that disk is the fuller one. The field keeps its shipped name, and its doc comment says what it holds.disk_fullwithDiskFull's Display (rows.rs,error.disk_full()), so a 0.3.x CLI talking to this daemon printsfree under /var/lib/containerdtoo. A new CLI talking to an old daemon gets the Docker root, as today.DiskFull::on(server)andFailure::on(error, operations, machine)are new.Failure::ofandDiskFull's Display are unchanged.The Server's disk is full…toServer <name>'s disk is full…. Nothing indashboard/matches on that text.DESIGN.md bets
dfon every Server.Evidence
-
ployzd docker::images::a_pull_names_the_disk_that_ran_out_not_the_docker_roots:/var/lib/dockerhas 39.8 GB free,/var/lib/containerd0, and the issue's ENOSPC is in the error.disk_fullnames/var/lib/containerd. The earlier rule read only the Docker root.-
ployz-store tests/deployment.rs::a_full_disk_names_the_server_that_ran_out. Before:The Server's disk is full: …. After:Server machine-3's disk is full: ….-
ployz deploy::report::a_full_disk_names_the_server_that_ran_out, the CLI's own report. Before:error: web: The Server's disk is full: ….-
a_layer_write_names_no_disk_the_pull_did_not_write_toanda_store_moved_under_another_directory_is_not_the_default_one. A low, unused/var/lib/containerdis not blamed, including when the real store is/mnt/data/var/lib/containerd.-
a_pull_failure_does_not_wait_on_a_stalled_docker_infonow requires under 1 s, so the old 3 s wait fails it.- All 22 image tests, 132 store
deploymenttests, 42 store libdeploymenttests, 33 CLIdeploy::reporttests and 16 corerpctests pass.cargo clippy -p ployz-core -p ployz-store -p ployzd -p ployz --all-targets --all-featuresis clean.- Setup: machine-1's
/var/lib/dockerwas moved onto a separate 12 GiB disk, as in the issue. Its root disk was then filled to 58 MB free.- Steps:
service add api --image node:22-bookworm-slim,set api.replicas=2,deploy.- After the filler was removed, the same deploy succeeded (
1 deployed · across 2 servers).- The Incus run used the first commit. The later review fixes only narrow which directory is named. This error writes under
/var/lib/containerd/after a space, so the final rule names the same disk, and Codex checked that in round 3.- Before. The issue's v0.3.1 output:
The Server's disk is full: 39789 MB free under /var/lib/docker. The released 0.3.2 daemon on the same cluster printed onlypull image failed. 0.3.2 is a hotfix from release/0.3 without #3086, and its retry was a peer copy. I didn't cold-build main for a second before run; the unit test pins the old rule.Review
- BUG (Codex): always measuring
/var/lib/containerdcould blame an unused directory when containerd's root is elsewhere. Fixed: a store is named only when the error wrote under it.- GAP (both): the CLI's own deploy report still said
The Server's. Fixed and tested.- GAP (both): the stalled-
docker infotest allowed 5 s, which the old 3 s wait passed. Tightened to 1 s.- Opus confirmed the wire shape, the #2875/#2455 rules, and that the Machine named is the one that pulled (
RemoveVolumenever reaches the pull branch).{dir}/also matched/mnt/data/var/lib/containerd/…. Fixed: the match must start where a path starts.open,lstat,mkdir, quoted paths and the Incus error.Merge Danger
Door: two-way
Blast Radius: deploy
Only a pull that fails on a full disk changes. It names containerd's store only when the error wrote under it, and the Docker root otherwise, as before. The Store's reason names the Server, and a pull that fails for any other reason skips the disk read.