registry-mirror: derive the Renovate tag, fail per image, add alerts #616
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#616
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
registry_mirror_imageshasdocker.io/renovate/renovate:43andbitborg/renovate:43as literals (roles/registry-mirror/defaults/main.yml:39-40).renovate_image_tag: "43"is annotated for Renovate (roles/renovate/defaults/main.yml:50-51). The comment there says to keep them in lockstep by hand. The mirror script runs underset -eand the first failedskopeo copyskips all later images.bitborg_registry_mirror_last_run_statusand_timestamp_secondsappear in no alert rule.docs/runbook.md:1880calls the metric alertable and uses the legacy metric name.Why
The mirror feeds CI pulls and the Renovate image. A silent failure stops dependency updates.
Failing case
renovate_image_tagto 44 and it is deployed. The mirror still pushes only:43.podman run bitborg/renovate:44fails with "manifest unknown". Every update PR stops.Fix
Derive both mirror values from
{{ renovate_image_tag }}, as the other entries already do. Run each copy asskopeo copy ... || status=1and exit withstatusat the end. AddRegistryMirrorFailed(status != 0) andRegistryMirrorStale(timestamp older than about 10 days). Fix the metric name in the runbook.Done when
renovate_image_tagchanges the mirror entry with no other edit.check-alert-rules.py.