Skip to content

OpenBaoRestoreDrillFailed

Severity: critical. Fires when, for 2 hours, either the last run of the CronJob openbao-drill/openbao-restore-drill has not succeeded, or none has ever succeeded, or none has succeeded in 32 days. The newest checked snapshot could not be restored, unsealed and read, so OpenBao may not be recoverable. OpenBao upgrades wait until a drill passes. How the drill works: OpenBao backups.

Labels: namespace (openbao-drill), cronjob, component (openbao).

Read-only checks

kubectl --context admin@mgmt-cluster -n openbao-drill get jobs -l batch.kubernetes.io/cronjob-name=openbao-restore-drill
kubectl --context admin@mgmt-cluster -n openbao-drill logs job/<job> --all-containers --prefix
kubectl --context admin@mgmt-cluster -n openbao-drill get externalsecret openbao-backup
kubectl --context admin@mgmt-cluster -n openbao get cronjob openbao-snapshot   # is the nightly snapshot itself healthy?

The failed step names the cause:

Step Typical cause
fetch No latest.env yet (no snapshot has succeeded: see OpenBaoSnapshotFailed), a SHA-256 mismatch, or a store error
keys The Secret openbao/openbao-unseal-keys or the Role openbao/openbao-restore-drill is missing
drill, did not reach status 0 after the restart The keys in openbao-unseal-keys do not unseal the snapshot. This is the serious case: the in-cluster keys and the data no longer belong together. Escalate to a person at once (task #1378, offline keys)
drill, login or canary The AppRole or the canary changed after the snapshot was taken (they are compared with today's values). Rerun after the next nightly snapshot
drill, server log about an audit device or a plugin The restored configuration needs something the throwaway pod lacks. Note it in the incident, and adapt drill-server.hcl in a pull request

The drill deletes the restored copy and the keys when it ends. A failed pod holds no secrets, only logs.

Roll forward

Fix the cause, then run the drill by hand and check that it passes:

kubectl --context admin@mgmt-cluster -n openbao-drill create job --from=cronjob/openbao-restore-drill openbao-restore-drill-retry

The alert clears once a run started by the CronJob succeeds, so after a fix by hand it may stay until the next scheduled drill. Say so in the incident.

Roll back

If the drill started failing after an OpenBao upgrade, roll the upgrade back (generic Flux freeze) and run the drill again. Never change or rotate the unseal keys to make the drill pass.