2026-10-24: OpenBao StatefulSet update not rolled out after the file-data cleanup merged¶
Kind: reference (incident report)
Severity: warning · Status: open · Resolved by: not yet; handed to the owner (dunk) by the operator agent, restart window #1550 · Duration: not resolved (alert firing since 2026-10-21 19:30 UTC; Taskbase task from 2026-10-24 15:02 UTC) · Taskbase task: #1542
Summary¶
PR #604 (#1390) replaced OpenBao's migrate-to-raft init container with prepare-data. Once Raft
has data, prepare-data deletes the old storage "file" data from the volume. The OpenBao
StatefulSet uses updateStrategy: OnDelete, so the change waits for openbao-0 to be deleted, and
the running pod is still on the previous revision. KubeStatefulSetUpdateNotRolledOut has fired
since then. OpenBao itself is healthy. The operator did not restart the pod: the restart is
irreversible for the old data and is OpenBao's planned downtime, and OpenBao has no backup gate.
The restart is handed to the owner.
The task was closed when this report merged, while the alert still fired, and Taskbase reopened it at 19:02 UTC the same day. By then #1549 had added a second waiting revision (a config-checksum annotation), and the person task #1550 covered the restart for both. The second operator run found nothing new and again did not restart the pod.
Impact¶
- Services: none degraded.
openbao-0isRunning,1/1,Storage Type raft,Sealed false,HA Mode active. The new pod templates (revision 3, then revision 4 from #1549) have not been running since they were applied. - Users: none noticed; the alert is a warning.
- Data: none lost. The old
filedata (auth,core,logical,sys, about 1.8 MiB) is still onopenbao-data-pvcnext toraft/. It is unused, and #1390 decided to delete it. That deletion happens on the next restart ofopenbao-0, whoever does it, and it cannot be undone. - Duration: fault from 2026-10-21 18:34 UTC (Helm revision 3 applied); alert firing from 19:30 UTC; Taskbase task created 2026-10-24 15:02 UTC. Still open.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 10-21 17:54 | Helm revision 2 adds migrate-to-raft (StatefulSet revision 2, openbao-58f87bb749) |
helm history openbao, ControllerRevision |
| 10-21 17:55 | openbao-0 deleted by a person for the Raft migration window (#1389); migrates file to Raft. This is the pod still running |
pod creationTimestamp, migrate-to-raft log "Migrated storage file to raft." |
| 10-21 17:58 | openbao-restore-drill-first passes |
openbao-restore-drill lastSuccessfulTime |
| 10-21 18:12 | PR #604 (#1390) merged | Taskbase #1390 |
| 10-21 18:34 | Helm revision 3 applied: prepare-data replaces migrate-to-raft (StatefulSet revision 3, openbao-699c8c8c4). The pod is not replaced (OnDelete) |
helm history openbao, ControllerRevision |
| 10-21 19:30 | KubeStatefulSetUpdateNotRolledOut starts firing (fingerprint 006cb13222b4e2a8) |
Alertmanager |
| 10-24 01:30 | Nightly openbao-snapshot succeeds (checked by hash, not by restore) |
CronJob lastSuccessfulTime |
| 10-24 15:02 | Detected: Taskbase incident #1542 created | Taskbase |
| 10-24 15:03 | Operator: alert still active, not silenced, not inhibited | Alertmanager API v2 |
| 10-24 15:04 | Operator: cause found (pod on revision 2, update revision 3, OnDelete); restart not done |
kubectl get sts, ControllerRevision diff |
| 10-24 15:08 | Operator: Flux all Ready after a reconcile wave to main@91f31e45 that was in progress at 15:04 |
flux get kustomizations -A |
| 10-24 ~15:26 | This report merged; Taskbase closes #1542 while the alert still fires | Taskbase reopen comment ("3h36m0s after this incident was closed") |
| 10-24 15:45 | Person task #1550 created for the restart window of #1549, and of #1390 if that restart has not run yet | Taskbase #1550 |
| 10-24 16:03 | Helm revision 4 applied: server.configAnnotation: true (#1549) adds openbao.hashicorp.com/config-checksum to the pod template (StatefulSet revision 4, openbao-65c8fbb6cb). The pod is not replaced |
helm history openbao, ControllerRevision |
| 10-24 19:02 | Taskbase reopens #1542: the alert still fires (fire count 2) | Taskbase |
| 10-24 19:03 | Operator, second run: alert still active, not silenced, not inhibited; cause unchanged; restart not done | Alertmanager API v2, kubectl |
Root cause¶
The OpenBao chart (openbao 0.8.0) renders its StatefulSet with updateStrategy: OnDelete, so a
change to the pod template only creates a new ControllerRevision. Kubernetes starts a pod on it only
when the old pod is deleted. PR #604 changed the template (extraInitContainers in
components/openbao/base/helmrelease.yaml), and docs/content/contribution/components/openbao/backup.md
says the restart is a step for "a person with cluster access". No task was created for that step.
kube-prometheus' KubeStatefulSetUpdateNotRolledOut fires when currentRevision != updateRevision,
replicas != updatedReplicas and nothing changed for 15 minutes. With OnDelete that stays true
until someone restarts the pod.
The diff between StatefulSet revisions 2 and 3 is only the init container: migrate-to-raft becomes
prepare-data, which runs
find /openbao/data -mindepth 1 -maxdepth 1 ! -name raft ! -name lost+found -print -exec rm -rf {} +
when /openbao/data/raft/raft/raft.db exists. It does exist (33.9 MB, written at 15:04 today).
What the agent did¶
The agent made no write to the cluster and set no silence. Every step was read-only. The runbook is KubeStatefulSetUpdateNotRolledOut; its fix is to roll the pods, and that step was not taken (see below).
kubectl -n monitoring port-forward svc/alertmanager-operated 19093:9093, thencurl -sG .../api/v2/alerts --data-urlencode 'filter=alertname="KubeStatefulSetUpdateNotRolledOut"': one alert,state: active,silencedBy: [],inhibitedBy: [].GET /api/v2/silences: no active silence.kubectl -n openbao get sts openbao -o json:updateStrategy: OnDelete,replicas: 1,readyReplicas: 1,currentRevision: openbao-548f7d779c,updateRevision: openbao-699c8c8c4,observedGeneration: 3.kubectl -n openbao get pods -L controller-revision-hash:openbao-0onopenbao-58f87bb749(revision 2), started 2026-10-21 17:55.kubectl -n openbao get controllerrevision <rev> -o jsonfor revisions 1–3, diffed: revision 2→3 changes only the init container, as above.git show 3484b74(PR #604): the change and the backup doc's restart step.flux get kustomizations -A,flux get helmreleases -A,helm -n openbao history openbao:openbaoReady atmain@91f31e45; HelmReleaseopenbaoReady, revision 3deployed. 36 of 62 Kustomizations not Ready, all withDependencyNotReady. Their roots (cert-manager,cert-manager-config,backup-store,external-secrets-config) had turned Ready at 15:04:02–15:04:33 onmain@91f31e45: a reconcile wave from the newest commit, not related to OpenBao.kubectl -n openbao get cronjob,kubectl -n openbao-drill get cronjob,jobs: last snapshot 2026-10-24 01:30:14 (succeeded); last restore drill 2026-10-21 17:58:13 (openbao-restore-drill-first,Complete); next drill 2026-11-01 04:00. Noopenbao-preupgradeKustomization exists.kubectl -n openbao exec openbao-0 -- sh -c 'ls -A /openbao/data; ls -la /openbao/data/raft/raft/; du -sh /openbao/data/*'andbao status: as under Impact.- Waited and re-ran
flux get kustomizations -A --status-selector ready=falseat 15:08:30: no output.flux get helmreleases -A --status-selector ready=false: no output.
Second run, after the reopen (19:02 UTC). Again read-only, with no write and no silence:
- Alertmanager API v2 (port-forward to
svc/alertmanager-operated):006cb13222b4e2a8state: active,silencedBy: [],inhibitedBy: []. No active silence. kubectl -n openbao get sts openbao -o json:updateRevision: openbao-65c8fbb6cb,observedGeneration: 4,updatedReplicasunset (0 of 1). The pod is still onopenbao-58f87bb749.- ControllerRevision diff 3→4: only the pod annotation
openbao.hashicorp.com/config-checksum. Revision 2→3 is stillprepare-data, as above. helm -n openbao history openbao: revision 4deployed(chart 0.8.0, 2026-10-24 16:03).flux get kustomizations -A --status-selector ready=falseand the same for HelmReleases: no output.- Backup: last
openbao-snapshotsuccess 2026-10-24 01:30:14; last restore drill 2026-10-21 17:58:13. Kustomizationopenbao-preupgrade:NotFound. bao status:Sealed false,Storage Type raft,HA Mode active.ls -A /openbao/data:auth core logical lost+found raft sys: the oldfiledata is still there.kubectl get externalsecrets -A: allSecretSynced.- Taskbase: decision #1547 (whether the gate may unseal a restored copy) is open with the owner, and the gate build #1548 waits on it. Person task #1550 is open with the owner and covers this restart.
Why the agent stopped. Rolling out revision 3 means kubectl -n openbao delete pod openbao-0.
That restart irreversibly deletes the old file data, and it takes down the platform's secrets
store for about two minutes. Every ExternalSecret refresh and every OpenBao login fails while it
runs. The operator's rules allow a destructive or stateful step only after a fresh backup from the
component's backup gate that has been verified by restoring. OpenBao has no gate (follow-up #1546),
and its newest restore-verified backup is from 2026-10-21 17:58. Running the drill on demand to get
one would unseal a full copy with the real keys outside the monthly schedule the owner chose. So
the agent did not take that step either.
Resolution and verification¶
Not resolved. To resolve it, the owner (or a person they choose) runs person task #1550, the restart window from Rolling out an OpenBao pod-template change:
kubectl -n openbao get cronjob openbao-snapshot -o jsonpath='{.status.lastSuccessfulTime}' # today's run
flux get helmreleases -n openbao # openbao Ready, revision 4
kubectl -n openbao delete pod openbao-0 # downtime starts
kubectl -n openbao logs openbao-0 -c prepare-data # the deleted paths: auth, core, logical, sys
kubectl -n openbao exec openbao-0 -- bao status # Storage Type raft, Sealed false
kubectl -n openbao exec openbao-0 -- ls -A /openbao/data # lost+found, raft
kubectl get externalsecrets -A | grep -v SecretSynced # only the header
kubectl -n openbao get sts openbao -o jsonpath='{.status.updateRevision} {.status.updatedReplicas}' # openbao-65c8fbb6cb 1
kubectl -n openbao get pod openbao-0 -L controller-revision-hash # openbao-65c8fbb6cb
Done means that the pod's controller-revision-hash equals the update revision and
updatedReplicas is 1, the alert is gone from Alertmanager within about 15
minutes, and this report is updated to resolved with the times.
Follow-ups¶
-
1545: document that an OpenBao pod-template change fires this alert until a person restarts¶
openbao-0, and that such a PR needs a person task for the restart window. Done: Rolling out an OpenBao pod-template change.currentRevisiondoes not move withOnDelete, so the done check above compares the pod's revision hash instead of the two StatefulSet revisions. -
1546: OpenBao backup gate (
upgrade can wait on a fresh, restore-verified snapshot.openbao-preupgrade, Renovate ADR §11), so a later restart or¶ -
1547 (decision, the owner) and #1548 (build): the form of that gate. A gate run gives the¶
restart a fresh, restore-verified backup. -
1550 (person step, the owner): the restart window above. One restart rolls out revisions 3 and¶
4 together.
References¶
- Alert:
KubeStatefulSetUpdateNotRolledOut,openbao/openbaoon hetzner-mgmt; runbook - Taskbase incident task: #1542
- Runs: the
operatorrun of #1542 on 2026-10-24 - Pull requests: #604 (the cause), this report's pull request
- Runbook sections: OpenBao backups: the migration (done), Renovate architecture §11
Open questions¶
-
Merging this report closed #1542 while the alert still fired, and the next Alertmanager notification reopened it 3h36m later, which started another operator run. Until #1550 has run, each close will do the same. Linking #1542
depends_on#1550 would hold a reopened #1542 until the restart has run. Agents may only link tasks they created, so the operator could not add it. -
The alert fired from 2026-10-21 19:30, but the Taskbase task was created on 2026-10-24 15:02. The record does not show why. It is probably the
taskbaseAlertmanager receiver, which was down until #1516 (see the Alertmanager incident), but this run did not check that. - Helm revision 3 was applied at 18:34 and the rule's
foris 15 minutes, yet the alert started at 19:30. The record does not explain the gap.