Skip to content

2026-10-30: Demo shop migrate Job failed, its image v1.37.0 deleted by Harbor's tag retention

Kind: reference (incident report)

Severity: warning · Status: open · Resolved by: handed to the owner by the operator agent (#2203) · Duration: not resolved (alert from 08:44:55, resolved by itself 08:50:56, firing again from 09:46:55; fault from 08:14:04) · Taskbase task: #2202

Summary

The demo shop's chart label fix (eloro/webshop-platform PR #277, #2196) merged at 08:13:38. From then on, Helm got as far as creating the pre-upgrade hook Job shop-demo/migrate on webshop. The Job's pod cannot pull harbor.prod.skatzi.com/skatzi/webshop-platform:v1.37.0, the tag deploy/demo pins: Harbor's tag retention in project skatzi keeps only the 3 most recently pushed artifacts per repository (#1934), and the repository now holds only v1.50.0. Each Job runs into its 900 s deadline, the Helm upgrade times out, and KubeJobFailed fires. This is the next stage of the demo shop's failed release (install report). Changing the pin, landing the secret paths and getting the never-deployed release past its pre-upgrade hook all happen in eloro/webshop-platform or need a person, so they are handed to the owner (#2203).

Impact

  • Services: the demo shop on webshop is still not deployed. Helm revisions 4 (08:14:04), 5 (08:49:15), 6 (08:54:17) and 7 (09:16:13) of shop-demo/shop are failed, and no revision was ever deployed. The Kustomization flux-system/shop-demo is not Ready. No other Kustomization or HelmRelease on webshop is affected.
  • Users: none. The demo shop has not served traffic.
  • Data: none. The release's CNPG Cluster was never created, and shop-demo holds no volumes.
  • Duration: not resolved. The first Job was created at 08:14:04 and failed at its deadline. The alert fired at 08:44:55, resolved at 08:50:56 when revision 5 replaced the failed Job, and fired again at 09:46:55 for revision 7's Job.

Timeline

All times UTC, 2026-10-30.

Time Event Source
10-29 06:43 eloro/webshop-platform tags v1.37.0. Twenty releases follow, up to v1.50.0 Git tags
10-29 13:06 deploy/demo pins image.tag: v1.37.0, the first release with shop seed --reset (#2109) eloro/webshop-platform 15c21d9
08:13:38 eloro/webshop-platform PR #277 (#2196) merges as d3b709d: helm.sh/chart no longer contains + Git
08:14:04 Helm revision 4 (0.1.0+d3b709db230f): the hook Job migrate is created this time. Its pod gets ErrImagePull: harbor.prod.skatzi.com/skatzi/webshop-platform:v1.37.0: not found helm history, events
08:29:04 Job migrate hits activeDeadlineSeconds: 900, DeadlineExceeded; Helm: pre-upgrade hooks failed: timeout waiting for: [Job/shop-demo/migrate status: 'InProgress'] Job conditions, helm history
08:44:55 Detected: KubeJobFailed (job_name=migrate, namespace=shop-demo), and Taskbase raises #2202 at 08:45:56 Alertmanager, Taskbase
08:49:06 eloro/webshop-platform publishes v1.50.0. Harbor's retention then leaves only v1.50.0 in skatzi/webshop-platform Git tag, Harbor tag list
08:49:15 Helm revision 5 (58dab648) deletes the failed Job (before-hook-creation) and creates a new one, which fails on the same pull helm history, events
08:50:56 The alert resolves because the failed Job is gone, and Taskbase closes #2202 Taskbase comment
08:54:17 Helm revision 6 (41e1744f), the same failure helm history
09:16:13 Helm revision 7 (e57e1eee), the same failure; Job migrate created 09:16:14, DeadlineExceeded at 09:31:15 helm history, Job status
09:46:55 KubeJobFailed fires again; Taskbase reopens #2202 at 09:47:56 Alertmanager, Taskbase
09:48 The operator agent confirms the alert is active and not silenced, and finds the cause (below) Alertmanager API, kubectl, helm, flux
09:51 Handed to the owner as #2203 Taskbase

Root cause

  1. The pinned image no longer exists. deploy/demo/helmrelease.yaml in eloro/webshop-platform sets image.tag: v1.37.0, and the chart's default repository is harbor.prod.skatzi.com/skatzi/webshop-platform. Harbor project skatzi has a tag retention rule that keeps the 3 most recently pushed artifacts per repository (#1934, the same rule as in the agent-runners report). A multi-arch release is 3 artifacts (index, amd64, arm64), so only the latest release survives. At 09:50 the registry's tag list was v1.50.0, v1.50.0-amd64, v1.50.0-arm64.
  2. Nothing raises the pin. The HelmRelease's comment says the release flow raises image.tag after each release, but the release workflow (.gitea/workflows/release.yaml) doesn't. Renovate's helm-values manager is enabled for the file (renovate.json), but it only detects an image when repository and tag sit together. deploy/demo sets only tag.
  3. The release has never been deployed. This was hidden until now behind the label error. Every attempt since revision 2 is an upgrade, so the chart runs migrate as a pre-upgrade hook (chart/webshop/templates/migrate-job.yaml; migrate-install renders only when .Release.IsInstall). The hook reads DATABASE_URL from Secret shop-demo-db-app, which CNPG creates with the release's Cluster. That Cluster is a normal release resource, applied only after the hook succeeds, and it does not exist (secrets "shop-demo-db-app" not found). So with a pullable image, the hook pod is expected to wait on the missing Secret until the same deadline. With upgrade.remediation.strategy: rollback and no deployed revision, Flux reports Stalled=True MissingRollbackTarget.
  4. The secret paths are unchanged. frontend-key, synthetic-key, shop-demo-db-shop-app and shop-demo-db-shop-retention still read webshop-cluster/shop-demo/* and get 403 (#2179). Their move, eloro/webshop-platform PR #278, is not merged.

Each new commit on eloro/webshop-platform main gives the chart a new version (reconcileStrategy: Revision), which starts another upgrade, another 15-minute Job and another KubeJobFailed.

What the agent did

operator agent (#2202, from 09:48). All read-only, no write to either cluster:

  1. Port-forward to svc/monitoring-kube-prometheus-alertmanager on webshop, then curl -sG .../api/v2/alerts --data-urlencode 'filter=alertname="KubeJobFailed"': one alert, namespace=shop-demo, job_name=migrate, state: active, silencedBy: [], startsAt 09:46:55. Still firing, so the incident was worked.
  2. kubectl --context webshop -n shop-demo get jobs,pods: Job migrate Failed 0/1, no pods. describe job migrate: DeadlineExceeded ("Job was active longer than specified deadline"); activeDeadlineSeconds 900, backoffLimit 6, hook pre-upgrade, hook-delete-policy: before-hook-creation,hook-succeeded; label helm.sh/chart: webshop-0.1.0_e57e1eee0680, so the label fix is in.
  3. flux --context webshop get kustomizations -A and get helmreleases -A: only shop-demo (failed early due to stalled resources: [HelmRelease/shop-demo/shop status: 'Failed']) and HelmRelease shop-demo/shop (pre-upgrade hooks failed: timeout waiting for: [Job/shop-demo/migrate status: 'InProgress']) not Ready. HelmRelease conditions: Stalled=True MissingRollbackTarget, Ready=False UpgradeFailed, from 09:21:14.
  4. helm --kube-context webshop -n shop-demo history shop: revision 3 failed on the label, and revisions 4–7 failed on the hook timeout, as in the timeline. None deployed.
  5. kubectl --context webshop -n shop-demo get events: for each Job pod (migrate-r4vq5, migrate-4g2mn, migrate-7ds9w), Failed to pull image "harbor.prod.skatzi.com/skatzi/webshop-platform:v1.37.0": ... not found, then ImagePullBackOff, then DeadlineExceeded.
  6. The registry's tag list for skatzi/webshop-platform, read with the namespace's pull robot from Secret harbor-pull-secret without printing it: v1.50.0, v1.50.0-amd64, v1.50.0-arm64. Manifest HEAD for v1.37.0: 404.
  7. flux --context webshop get sources git -A: webshop-platform main@sha1:e57e1eee, platform main@sha1:dc486803.
  8. A blob-less read-only clone of eloro/webshop-platform (deleted afterwards): PR #277 merged at 08:13:38 as d3b709d. v1.37.0 tagged 10-29 06:43, v1.50.0 10-30 08:49:06. deploy/demo/helmrelease.yaml sets image.tag: v1.37.0 without repository. The release workflow pushes v* to skatzi/webshop-platform and does not change deploy/demo. renovate.json enables helm-values for the file. chart/webshop/templates/migrate-job.yaml renders migrate as a pre-upgrade hook unless .Release.IsInstall. fix/demo-eloro-dk (PR #278) is not merged into main.
  9. kubectl --context webshop -n shop-demo get externalsecret: backup-store and harbor-pull-secret SecretSynced; the four webshop-cluster/shop-demo/* ones SecretSyncedError. get secret shop-demo-db-app: NotFound. No CNPG Cluster, PVC, Deployment or Service in shop-demo.
  10. Created #2203 for the owner: raise the pin with image.repository so Renovate tracks it, land PR #278 and the four secret values, decide how the never-deployed release gets past its pre-upgrade hook, and finish #1934.

The agent did not delete the failed Job. That would clear the alert only until the next commit on eloro/webshop-platform main starts another attempt, and it is not a recovery step. Helm deletes the Job itself (before-hook-creation) on the next attempt. The agent did not uninstall the release or change the pin either. The release is not the platform's: deploy/demo lives in eloro/webshop-platform, and an operator agent may not uninstall a Helm release.

Resolution and verification

Not resolved. Done when, after #2203, helm --kube-context webshop -n shop-demo history shop shows a deployed revision, kubectl --context webshop -n shop-demo get job migrate is gone or Complete, flux --context webshop get kustomizations -A --status-selector ready=false no longer lists shop-demo, and Alertmanager on webshop no longer lists KubeJobFailed for shop-demo.

State at 09:50: KubeJobFailed active, Job shop-demo/migrate Failed, HelmRelease shop Stalled=True MissingRollbackTarget, Kustomization shop-demo not Ready. Nothing else is not Ready on webshop, and nothing is suspended.

Follow-ups

  • 2203 (owner, to pass on to eloro/webshop-platform): raise deploy/demo's image.tag to a tag Harbor holds (v1.50.0 now) and add image.repository so Renovate raises it. Land PR #278 and the four secret values (#2179). Decide how the never-deployed release gets past its pre-upgrade hook: a person's helm uninstall of the dataless release, or a chart or deploy/demo change.

  • 1934 (owner, Harbor admin): change the skatzi retention rule so it keeps deployed tags. Until then, any pin to a skatzi image lasts only until the repository's next release.

References

Open questions

  • Whether the hook pod, with a pullable image, would in fact wait on Secret shop-demo-db-app as root cause 3 expects. No pod got past the image pull, so the record does not show it.
  • When exactly Harbor's retention deleted v1.37.0. Its execution log needs a Harbor admin. The pull robot sees only the artifacts that remain.