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
webshopis still not deployed. Helm revisions 4 (08:14:04), 5 (08:49:15), 6 (08:54:17) and 7 (09:16:13) ofshop-demo/shoparefailed, and no revision was everdeployed. The Kustomizationflux-system/shop-demois not Ready. No other Kustomization or HelmRelease onwebshopis affected. - Users: none. The demo shop has not served traffic.
- Data: none. The release's CNPG
Clusterwas never created, andshop-demoholds 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¶
- The pinned image no longer exists.
deploy/demo/helmrelease.yamlin eloro/webshop-platform setsimage.tag: v1.37.0, and the chart's default repository isharbor.prod.skatzi.com/skatzi/webshop-platform. Harbor projectskatzihas 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 wasv1.50.0,v1.50.0-amd64,v1.50.0-arm64. - Nothing raises the pin. The HelmRelease's comment says the release flow raises
image.tagafter each release, but the release workflow (.gitea/workflows/release.yaml) doesn't. Renovate'shelm-valuesmanager is enabled for the file (renovate.json), but it only detects an image whenrepositoryandtagsit together.deploy/demosets onlytag. - 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
migrateas apre-upgradehook (chart/webshop/templates/migrate-job.yaml;migrate-installrenders only when.Release.IsInstall). The hook readsDATABASE_URLfrom Secretshop-demo-db-app, which CNPG creates with the release'sCluster. ThatClusteris 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. Withupgrade.remediation.strategy: rollbackand no deployed revision, Flux reportsStalled=True MissingRollbackTarget. - The secret paths are unchanged.
frontend-key,synthetic-key,shop-demo-db-shop-appandshop-demo-db-shop-retentionstill readwebshop-cluster/shop-demo/*and get403(#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:
- Port-forward to
svc/monitoring-kube-prometheus-alertmanageronwebshop, thencurl -sG .../api/v2/alerts --data-urlencode 'filter=alertname="KubeJobFailed"': one alert,namespace=shop-demo,job_name=migrate,state: active,silencedBy: [],startsAt09:46:55. Still firing, so the incident was worked. kubectl --context webshop -n shop-demo get jobs,pods: JobmigrateFailed0/1, no pods.describe job migrate:DeadlineExceeded("Job was active longer than specified deadline");activeDeadlineSeconds900,backoffLimit6, hookpre-upgrade,hook-delete-policy: before-hook-creation,hook-succeeded; labelhelm.sh/chart: webshop-0.1.0_e57e1eee0680, so the label fix is in.flux --context webshop get kustomizations -Aandget helmreleases -A: onlyshop-demo(failed early due to stalled resources: [HelmRelease/shop-demo/shop status: 'Failed']) and HelmReleaseshop-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.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. Nonedeployed.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, thenImagePullBackOff, thenDeadlineExceeded.- The registry's tag list for
skatzi/webshop-platform, read with the namespace's pull robot from Secretharbor-pull-secretwithout printing it:v1.50.0,v1.50.0-amd64,v1.50.0-arm64. ManifestHEADforv1.37.0:404. flux --context webshop get sources git -A:webshop-platformmain@sha1:e57e1eee,platformmain@sha1:dc486803.- A blob-less read-only clone of eloro/webshop-platform (deleted afterwards): PR #277 merged at 08:13:38 as
d3b709d.v1.37.0tagged 10-29 06:43,v1.50.010-30 08:49:06.deploy/demo/helmrelease.yamlsetsimage.tag: v1.37.0withoutrepository. The release workflow pushesv*toskatzi/webshop-platformand does not changedeploy/demo.renovate.jsonenableshelm-valuesfor the file.chart/webshop/templates/migrate-job.yamlrendersmigrateas apre-upgradehook unless.Release.IsInstall.fix/demo-eloro-dk(PR #278) is not merged intomain. kubectl --context webshop -n shop-demo get externalsecret:backup-storeandharbor-pull-secretSecretSynced; the fourwebshop-cluster/shop-demo/*onesSecretSyncedError.get secret shop-demo-db-app:NotFound. No CNPGCluster, PVC, Deployment or Service inshop-demo.- Created #2203 for the owner: raise the pin with
image.repositoryso 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'simage.tagto a tag Harbor holds (v1.50.0now) and addimage.repositoryso Renovate raises it. Land PR #278 and the four secret values (#2179). Decide how the never-deployed release gets past itspre-upgradehook: a person'shelm uninstallof the dataless release, or a chart ordeploy/demochange.¶ -
1934 (owner, Harbor admin): change the
skatziretention rule so it keeps deployed tags. Until then, any pin to askatziimage lasts only until the repository's next release.¶
References¶
- Alert:
KubeJobFailed, runbook - Taskbase incident task: #2202
- Taskbase tasks: #2203, #1934, #2179, #2196, #2109
- Pull requests: eloro/webshop-platform PR #277 (label, merged), PR #278 (secret paths, open)
- Related reports: Demo shop HelmRelease never installed, Codex runners down, their pinned image deleted by Harbor's tag retention
- Runbook sections: none on the platform side. The upstream runbook's "remove the failed Job" step does not apply to a Helm hook Job, which the next attempt replaces.
Open questions¶
- Whether the hook pod, with a pullable image, would in fact wait on Secret
shop-demo-db-appas 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.