Skip to content

charly update of a pod deploy whose image: is a registry ref cannot re-add it: the deploy add fallback routes the image ref into the box/candy resolver #52

Open

Description

@aitrawog

What happens

charly update <pod deploy> cannot rebuild a deploy whose image: is a fully-qualified registry ref. The rebuild
sequence ends in deploy add <name> (with no positional), which falls back to the deploy's own image: — and that
ref is then routed through the box/candy resolver, which refuses it:

$ charly -C .worktrees/strata-pod/plugin-deploy-pod update pod-cdi-keepid-bind
charly: error: command "deploy": resolving ref "ghcr.io/opencharly/arch:2026.323.1515" for target "pod":
  ResolveDeployRef: "ghcr.io/opencharly/arch:2026.323.1515" not found as a box or candy in the resolved-project envelope
charly: error: command "update": deploy-dispatch rebuild: deploy plugin: InvokeProvider deploy:pod op=rebuild:
  rpc error: code = Unknown desc = charly deploy add pod-cdi-keepid-bind: charly subcommand exited 1

Measured 2026-11-19 on main (deploy plugin plugin-deploy-pod at 68274c0, project: the plugin repo, which declares
no box), podman 6.2.0. The very same deploy charly configed and charly started fine two seconds earlier — the
config path resolves a registry ref itself (resolveDeployRefLocal), so the two paths disagree about whether the
deploy's image: is a legal ref.

The mechanism, and why it is not the by-design refusal

plugin-fleet#51 established (in its own CORRECTION comment) that deploy add <name> <ref> refusing a registry ref
is by design
: <ref> is a PROJECT box or candy, and charly deploy from-box <ref> <name> is the route for a pinned
registry image. That is not what this is.

Here the operator passed NO ref. The ref arrives from the deploy's own persisted image:, which deploy add's
documented fallback (when <ref> is omitted, it falls back to the deploy's image: field) supplies. So:

  • a deploy created BY charly deploy from-box <registry-ref> <name> — the one sanctioned way to deploy a pinned
    registry ref — cannot be rebuilt by charly update at all;
  • and charly config on the same entry keeps working, so the divergence surfaces only at the rebuild leg.

routeTargetRef (candy/plugin-fleet/dispatch.go) consults routeTargetRef(rp, target, refStr, dir, …) and then
resolveRefForTarget, which resolves refStr as a box/candy name. Nothing distinguishes "an explicit positional
ref" (a box/candy by contract) from "the deploy's own image:" (an image ref by contract).

Root fix (for the owner to decide)

The add path needs the ONE rule about what a deploy ref may be, which #51 named as the family fix: an explicit
positional is a box/candy ref; the image: FALLBACK is an image ref and must not reach the box/candy resolver. The
RefSourceImage route the #51 correction reverted for deploy add is the same shape, arrived at from the other end —
this time with a measured failure to hang it on.

Blast radius

Every charly update (and every disposable bed's fresh-rebuild R10 leg) on a pod deploy whose image: is a
fully-qualified ref, in a project that does not declare a box of that name. That is exactly the shape a downstream or
lab project uses, and exactly the shape a disposable bed uses when its image is produced elsewhere.

Why it is filed rather than fixed here

Found while cutting over opencharly/plugin-deploy-pod#81 (a pod deploy carrying a CDI GPU device + a bind volume could
not start). The quadlet/user-namespace fix is correct and complete without it, and the bed's fresh-rebuild leg was
driven as remove → config → start — which for a no-overlay deploy IS the whole update sequence minus the deploy add leg (that leg persists no resolved ref when the deploy has no add_candy: plans). Filed per R1: a separable
non-blocking finding gets its own issue.

Agent: charly (session deploy-pod-fix, opencharly umbrella)
Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (analysed on a live system)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions