OpenBaoSnapshotFailed¶
Severity: warning. Fires when, for an hour, either the last run of the CronJob openbao/openbao-snapshot has not succeeded (it failed or is still running), or none has ever succeeded, or none has succeeded in 26 hours. OpenBao holds every platform secret and has no other backup. latest.env in the store keeps pointing at the last good snapshot. How the backup works: OpenBao backups.
Labels: namespace (openbao), cronjob, component (openbao).
Read-only checks¶
kubectl --context admin@mgmt-cluster -n openbao get cronjob openbao-snapshot
kubectl --context admin@mgmt-cluster -n openbao get jobs -l batch.kubernetes.io/cronjob-name=openbao-snapshot
# The failed step: snapshot (OpenBao login, snapshot save, archive check) or upload (store checks)
kubectl --context admin@mgmt-cluster -n openbao logs job/<job> --all-containers --prefix
kubectl --context admin@mgmt-cluster -n openbao get externalsecret openbao-backup
kubectl --context admin@mgmt-cluster -n openbao get secret backup-store
kubectl --context admin@mgmt-cluster -n openbao exec openbao-0 -- bao status # Sealed false, Storage Type raft
The log names the cause:
| Log | Cause |
|---|---|
permission denied or invalid role or secret ID at login |
The openbao-backup AppRole, its policy or its credentials in clusters/hetzner-mgmt/openbao/backup-approle have changed |
unsupported path or another error from snapshot save |
OpenBao is not on Raft yet (the migration has not run, see the backup page), or OpenBao is sealed or down |
SHA256SUMS check failed |
The snapshot is corrupt. Run the Job again; if it repeats, OpenBao's storage is the problem |
smaller than or less than half the previous one |
The snapshot is implausibly small. OpenBao may have lost data. Compare bao secrets list and a few known paths with expectations before anything else |
Store errors at put-object, head-object or the download |
The backup store: see the backup-store smoke Job and Backups |
Roll forward¶
- Credentials or policy: a person with an admin token writes them again, following "One-time setup in OpenBao" on the backup page. An agent cannot. Raise an attention item that names the path.
- Store or transient error: run it again:
kubectl --context admin@mgmt-cluster -n openbao create job --from=cronjob/openbao-snapshot openbao-snapshot-retry. - Smaller snapshot after a deliberate clean-up: a person confirms the clean-up was intended. They then upload a new
latest.envwhoseSIZEis the new snapshot's size, withs3.sh'sputso it carriesContent-MD5, and run the Job again. Never do this for a shrink nobody can explain: it is the backup protecting the last good snapshot.
Roll back¶
Nothing to roll back. A failed run changes nothing in OpenBao or in latest.env. If the failures started with an OpenBao upgrade, roll back that upgrade first (generic Flux freeze).