fix(backup-drill): pull images from the in-instance mirror, not codeberg #768

Stängd
öppnade 2026-10-17 20:28:20 +00:00 av supernaut · 1 kommentar
Ägare

The restore drill's scratch VM pulls the Forgejo image straight from codeberg.org. On 2026-10-17 a codeberg registry 503 failed the drill at forgejo migrate (pinging container registry codeberg.org: received unexpected HTTP status: 503), although the backup itself was fine.

The in-instance registry already mirrors the same tags (registry_mirror_images: bitborg/forgejo:<tag>, also postgres and caddy), and CI's container smoke uses it.

Change

  • roles/backup-drill: point backup_drill_forgejo_image (and the drill's postgres image, if it is pulled the same way) at the mirror, git.bitborg.se/bitborg/forgejo:{{ forgejo_image_tag }}. Fall back to upstream only if the mirror pull fails.
  • Make sure the drill VM can pull from the mirror anonymously (packages follow owner visibility) or with the existing CI token.

Done when

  • A drill run pulls Forgejo from the mirror (visible in the drill log), and passes.
The restore drill's scratch VM pulls the Forgejo image straight from `codeberg.org`. On 2026-10-17 a codeberg registry 503 failed the drill at `forgejo migrate` (`pinging container registry codeberg.org: received unexpected HTTP status: 503`), although the backup itself was fine. The in-instance registry already mirrors the same tags (`registry_mirror_images`: `bitborg/forgejo:<tag>`, also postgres and caddy), and CI's container smoke uses it. ## Change - `roles/backup-drill`: point `backup_drill_forgejo_image` (and the drill's postgres image, if it is pulled the same way) at the mirror, `git.bitborg.se/bitborg/forgejo:{{ forgejo_image_tag }}`. Fall back to upstream only if the mirror pull fails. - Make sure the drill VM can pull from the mirror anonymously (packages follow owner visibility) or with the existing CI token. ## Done when - [x] A drill run pulls Forgejo from the mirror (visible in the drill log), and passes.
Upphovsperson
Ägare

Verified live 2026-10-18 with an on-demand drill after the #769 apply. The daily leg logged postgres:17.11-trixie pulled from the mirror (git.bitborg.se/bitborg/postgres:17.11-trixie) and forgejo:17.0.0-rootless pulled from the mirror (git.bitborg.se/bitborg/forgejo:17.0.0-rootless). forgejo migrate and doctor ran on the mirrored image. The drill passed.

Verified live 2026-10-18 with an on-demand drill after the #769 apply. The daily leg logged `postgres:17.11-trixie pulled from the mirror (git.bitborg.se/bitborg/postgres:17.11-trixie)` and `forgejo:17.0.0-rootless pulled from the mirror (git.bitborg.se/bitborg/forgejo:17.0.0-rootless)`. forgejo migrate and doctor ran on the mirrored image. The drill passed.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#768
Ingen beskrivning angiven.