You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(remove): a containerd pod deploy's container is left behind, so the next start fails name-store #27
category:deliveryA build/compose/install/deploy capability, its definitions, or its wire schema.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
charly remove <deploy> on a pod: deploy whose per-host entry is engine: containerd does not remove the containerd container. Measured while
proving opencharly/charly#1109 on this host's rootless containerd 2.3.5:
$ charly remove check-engine-containerd-pod
Removed /home/atrawog/.config/containers/systemd/charly-check-engine-containerd-pod.container
Reloaded systemd user daemon
$ nerdctl ps -a --format '{{.ID}} {{.Names}} {{.Status}}' | grep charly-check-engine
126bbb9b2490 charly-check-engine-containerd-pod Created
The next charly start then fails:
level=fatal msg="name-store error\nname \"charly-check-engine-containerd-pod\" is already used by ID \"126bbb9b2490...\""
Removing it with nerdctl rm -f charly-check-engine-containerd-pod unblocks
the next deploy, which proves the container itself was the residue.
RCA
Mechanism. The charly remove teardown path removes the podman quadlet
file and reloads systemd, but does not run the resolved engine's remove argv
(nerdctl rm -f <name>) in the deploy's target store. The PostTeardown /
remove path resolves the engine from the host runtime (or handles only the
quadlet/direct paths), not from the per-host entry the deploy persisted.
Missed control. There is no post-remove assertion that the container is
absent from the resolved engine's store; the podman-only beds never noticed
because the quadlet removal takes the container with it.
Blast radius. Every engine: containerd pod deploy: charly remove
reports success but leaves the container, and re-deploying the same name
fails at name-store error: name ... already used.
Root fix. Resolve the deploy's selection from the per-host entry in the
remove/PostTeardown path and run the engine's remove argv in that store
(engineRemoveArgv(sel.Target, name) already exists in plugin-deploy-pod);
assert the container is gone before reporting success.
This is pre-existing and separable from the engine-selector persistence fix
(opencharly/charly#1109); it is filed rather than widened into that cutover.
Agent: containerd-crabbox-program/engine Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash:cloud (analysed on a live system)
category:deliveryA build/compose/install/deploy capability, its definitions, or its wire schema.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
Activity