2026-10-28: webshop backup-store smoke Job waiting for the bucket key¶
Kind: reference (incident report)
Severity: warning · Status: resolved · Resolved by: the owner's step (#2039), handed over by the operator agent · Duration: 10 h 13 min from detection to resolution, 19:38–05:51 UTC next day (fault from 18:37:46, 11 h 13 min) · Taskbase task: #2037
Summary¶
PR #990 brought the backup store to the new webshop cluster. Its smoke Job reads the Secret
backup-store, which External Secrets syncs from OpenBao clusters/webshop/backup/s3. The owner
had not written that entry yet (the bucket key is a person's step in the webshop cluster README),
so the Secret did not exist and the Job's container waited in CreateContainerConfigError
from 18:37:46. After an hour, KubeContainerWaiting fired. The README expects this state until
the owner's step is done. Only a person can create the Hetzner S3 key, so the operator changed
nothing and handed it to the owner as #2039. The owner created the bucket and stored the key on
2026-10-29; the smoke Job passed at 05:51:11 UTC and the alert cleared.
Impact¶
- Services: backup store on
webshop: no Secretbackup-store, Flux Kustomizationbackup-storenot Ready (its health check on Jobbackup-store-smoketimes out and retries). Nothing else on the cluster waits for it. - Users: none. No shop runs on
webshopyet. - Data: none lost. The cluster has no database yet, so no backups are missed yet. A shop database deployed before the key is stored would have no backup target.
- Duration: 10 h 13 min from detection (19:38:25 UTC) to the passing smoke Job (05:51:11 UTC next day); the fault began at 18:37:46 UTC, 11 h 13 min before.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 18:34:41 | PR #990 merged: CloudNativePG with backups, restore drills and the operator gate, including cluster/webshop/backup-store |
Git 60e967c |
| 18:37:38 | Namespace, ClusterExternalSecret and ExternalSecret backup-store, and Job backup-store-smoke created |
object creationTimestamp |
| 18:37:39 | ExternalSecret fails: error processing spec.data[0] (key: webshop/backup/s3), err: Secret does not exist |
ExternalSecret events |
| 18:37:46 | Pod backup-store-smoke-zbs6z: Error: secret "backup-store" not found, repeated 302 times up to 19:42:52 |
pod events |
| 19:38:25 | Detected: KubeContainerWaiting (reason=CreateContainerConfigError) firing |
Alertmanager |
| 19:39:26 | Taskbase opens incident #2037 | Taskbase task |
| ~19:40 | The operator run finds the alert active, silencedBy: [] |
Alertmanager /api/v2/alerts |
| 19:43 | Owner task #2039 created with the steps | Taskbase task |
| ~20:28 | #2037 closed while the alert still fired | Taskbase reopen comment ("3h16m0s after this incident was closed") |
| 23:44:26 | Taskbase reopens #2037: the alert fires again | Taskbase comment on #2037 |
| 10-29, before 05:51 | Owner creates the Hetzner S3 key, stores it in OpenBao clusters/webshop/backup/s3 and as the Gitea secrets WEBSHOP_S3_*, and runs Terraform Apply - Webshop Storage, which creates webshop-backups |
#2039 |
| 10-29 05:51:11 | Resolved: ExternalSecret backup-store SecretSynced, smoke Job logs backup-store smoke OK: smoke/20261029T055111Z, Kustomization backup-store Ready |
#2039 (owner's check) |
| 10-29 05:51:36 | #2039 done | Taskbase task |
| 10-29 05:52:17 | #2037 closed; Alertmanager returns no KubeContainerWaiting for backup-store |
#2037 description |
Root cause¶
components/backup-store/job.yaml loads the Secret backup-store with envFrom (not optional), so
the kubelet cannot create the container until the Secret exists. On webshop,
cluster/webshop/backup-store/kustomization.yaml points the ClusterExternalSecret at
webshop/backup/s3 in the clusters KV mount. That entry holds the S3 key of the webshop Hetzner
project's bucket webshop-backups. Hetzner creates S3 keys only in its console, so writing the
entry is a person's step: Backup bucket → Owner's steps in
terraform/environments/hetzner-webshop-cluster/README.md, which also says the Kustomization stays
not Ready until it is done. The step had not been taken when #990 merged. KubeContainerWaiting is
the expected symptom after one hour.
What the agent did¶
The agent ran only read-only checks. It made no writes to the cluster or to OpenBao, and set no silence.
kubectl -n monitoring port-forward svc/alertmanager-operatedandcurl -sG .../api/v2/alerts --data-urlencode 'filter=alertname="KubeContainerWaiting"': one alert forbackup-store/backup-store-smoke-zbs6z,state: active,silencedBy: []. No active silences.kubectl -n backup-store describe pod backup-store-smoke-zbs6zandget events: containersmokewaiting withCreateContainerConfigError,secret "backup-store" not found.kubectl -n backup-store get externalsecret:backup-storeisSecretSyncedError(could not get secret data from provider),harbor-pull-secretisSecretSynced. ClusterSecretStoreopenbaoisValid/Ready, so OpenBao and the AppRole work and only the entry is missing.flux get kustomizations -A --status-selector ready=false(twice, a minute apart, after the 10-minute interval re-ran the dependents): onlybackup-store(health check on the Job) andcloudnative-pg(waiting forcloudnative-pg-preupgrade, handled in #2017 and PR #1006).flux get helmreleases -A --status-selector ready=falsereturned none.- Read
terraform/environments/hetzner-webshop-cluster/README.md: the owner's steps for the bucket and the key, and the note thatbackup-storeis not Ready until they are done. - Created owner task #2039 with the steps, ordered so the bucket exists before the key reaches
the cluster (the smoke Job has
backoffLimit: 2). - This pull request: this report.
A later operator run on 2026-10-29, after #2037 was closed, found the incident resolved in Taskbase
and this report still open, and updated it from the records of #2039 and #2037. It could not
recheck the cluster: kubectl returned error loading config file "/break-glass/kubeconfig":
open /break-glass/kubeconfig: permission denied. That is the runner before agent-runner 0.5.31
(ops runbook, Ops agent cannot read its break-glass kubeconfig);
PR #1028 moved the ops agent to 0.5.31 at 05:53 UTC. It made no writes.
No runbook step applied. The KubeContainerWaiting runbook only covers the diagnosis (describe the pod, read its events).
Resolution and verification¶
Resolved by the owner's step #2039 on 2026-10-29, with no change in Git or on the cluster: once the
entry existed, External Secrets created the Secret, the kubelet retried and the container started.
Terraform Apply - Webshop Storage created webshop-backups in fsn1 (versioning, object lock
COMPLIANCE 14 days). Its first apply got HTTP 500 UnknownError from Hetzner on the lifecycle PUT,
sent at the same time as the object-lock PUT on the new bucket; the rerun replaced only the tainted
lifecycle step and succeeded.
The checks, as recorded in #2039 and #2037:
kubectl --context webshop -n backup-store get externalsecret backup-store:SecretSyncedkubectl --context webshop -n backup-store logs job/backup-store-smoke | tail -1:backup-store smoke OK: smoke/20261029T055111Zflux --context webshop get kustomization backup-store: Ready- Alertmanager returns no
KubeContainerWaitingforbackup-store
Follow-ups¶
-
2039 (done 2026-10-29) — the owner creates the S3 key and the bucket, and stores the key at¶
clusters/webshop/backup/s3 -
2036 — the operator's remaining CNPG live checks, including the store smoke, once the key is stored¶
References¶
- Alert:
KubeContainerWaiting, runbook - Taskbase incident task: #2037
- Pull requests: #990 (backup store and CNPG on
webshop), #994 (Terraform stage4-storage) - Runbook sections:
terraform/environments/hetzner-webshop-cluster/README.md→ Backup bucket
Open questions¶
None. Whether the stage 4-storage had been applied was open when the report was first written;