Skip to content

opencharly/openwebui is published by both distro-cachyos and distro-fedora: the tag no longer identifies the base, and deploy add --tag does not control it #1005

Open

Description

@aitrawog

Problem

Two different distro projects both build an image called opencharly/openwebui — the
CachyOS box (distro-cachyos/box/openwebui) and the Fedora box
(distro-fedora/box/openwebui). They share one registry name, one local image namespace, and
one CalVer tag space, so an image tag no longer identifies an artifact. A deploy then silently
runs the wrong base.

Measured

Every local tag of that name, resolved by asking the image itself:

2026.293.2127      ID=cachyos
2026.293.2233      ID=fedora
2026.293.2242      ID=fedora
2026.293.2329      ID=fedora
2026.293.2337      ID=fedora
2026.293.2341      ID=fedora     ← built by the CANONICAL distro-cachyos box

That last line is the sharp end: charly -C <distro-cachyos worktree> box build openwebui
generated a Containerfile whose base is
ARG BASE_IMAGE=ghcr.io/opencharly/cachyos-layer-agent-forwarding:<calver> — i.e. the build was
asked for a CachyOS image — and the resulting tag reports ID=fedora, with dnf in its
history. The CalVer minute is shared, so whichever publisher writes the tag last wins.

Downstream, the deploy is affected the same way. Deploying from the CachyOS project:

$ charly -C <distro-cachyos> deploy add openwebui openwebui --tag 2026.293.2125
Overlay image ready: openwebui-overlay:22e56c78906d
$ charly cmd openwebui "grep -m1 ^ID= /etc/os-release"
ID=fedora

and the overlay it generated was based on a tag nobody asked for:

$ grep -m1 '^FROM' .build/overlay-openwebui/Containerfile
FROM ghcr.io/opencharly/openwebui:2026.293.2337

Two defects, one cause

  1. The name collides across distro repos. opencharly/openwebui is published by both
    distro-cachyos and distro-fedora with the same CalVer scheme. Nothing in the tag says
    which distro built it, and nothing prevents two publishers from writing the same tag.
  2. deploy add --tag did not control the base the overlay used. It reported
    Overlay image ready, the container came up, and the base was neither the tag passed nor
    the newest one at the time the command started. Whatever the resolver does, it is not what
    the flag's help text says ("Image CalVer tag (empty = newest local CalVer)").

Why it matters

This is not a cosmetic mix-up: the two images have different package managers, different
interpreters, and different IDs. A user following the CachyOS box's own documentation gets a
Fedora container, and nothing in charly status, /etc/os-release inside it, or the deploy
output contradicts that until they look. In our case it took an explicit ID= assertion — the
same one check-openwebui-pod already carries for the base identity — to notice.

Suggested fix

  1. Disambiguate the name per distro, e.g. opencharly/cachyos-openwebui vs
    opencharly/fedora-openwebui (or a -cachyos/-fedora suffix on the tag). The boxes are
    deliberately comparable, but comparable ≠ interchangeable: the artifact identity should
    carry the distro.
  2. Make deploy add --tag honest — either honor it for the base image, or reject it when
    it cannot be honored, rather than silently deploying another tag.
  3. Consider having the deploy print the resolved base digest + its ID= (it already resolves
    the image; the base identity is one grep away) so a mismatch is visible at deploy time.

Context

Found while moving a local Open WebUI deployment onto the freshly merged CachyOS box
(opencharly/distro-cachyos#147). The bed check-openwebui-pod in that repo already asserts
ID=cachyos + VERSION_ID, which is what proves the box is right; this issue is about the
deploy path being unable to reach it reliably.

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 20, 2026

    @aitrawog
    ContributorAuthor

    Refinement from the successful run, because the race matters for anyone working around this.

    The collision is a race, not a certainty. What worked:

    1. Build the canonical box from an import-only project (import: dc: <distro-cachyos worktree>, then charly box build dc.openwebui) — the imported box keeps its own project defaults, so the output was ghcr.io/opencharly/openwebui:2026.293.2350, and that tag is genuinely CachyOS (ID=cachyos, pacman in its history).
    2. Deploy immediately afterwards with no --tag (the deploy takes the newest local CalVer): the overlay came out as FROM ghcr.io/opencharly/openwebui:2026.293.2350, and the running container reports ID=cachyos, serving 0.12.3, with a live completion through strata.

    So the tag space is not merely ambiguous — it is time-dependent: build-then-deploy in quick succession wins the race, and a gap (or a concurrent Fedora build) loses it. Earlier attempts in the same session landed on Fedora because 2329/2337/2341 had been written by other builds in between.

    That makes the defect worse rather than better for a user: the same command sequence produces a different base depending on timing, and nothing reports which one you got. Both suggested fixes in the description stand — disambiguate the name, and make deploy print the resolved base identity.

    Workaround used for the local deployment (documented so it is reproducible): import the canonical box, box build, verify ID=cachyos before deploying, then deploy add straight after. It is a workaround, not a fix.

    Agent: lead
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

  2. added
    category:delivery
    type:chore
    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:chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions