Runbook
Backup failing
Symptoms
Section titled “Symptoms”- EtcdBackupPolicy
Ready=FalsewithSinkRefused,SinkUnavailableorRecipientsInvalid. OrBackedUp=FalsewithNoSnapshotorBackupTooOld.- EtcdSnapshot
Complete=FalsewithSnapshotFailed. OrVerified=FalsewithDamagedorReadBackFailed.- pk-metal status
- The
BACKUPcolumn of the cluster. Exit status 2. - Alert
PkMetalEtcdBackupStale: the newest verified snapshot is older than two intervals of the policy, the same rule asBackupTooOld.PkMetalEtcdBackupMissing: a policy exists, but no snapshot was ever verified.
Impact
Section titled “Impact”A loss of the etcd majority now loses more data. Nothing on the cluster changes.
Diagnose
Section titled “Diagnose”-
Read the policy.
Terminal window kubectl describe etcdbackuppolicy prod-offsite -
List the snapshots and their state.
Terminal window kubectl get etcdsnapshots
| Reason | Fix |
|---|---|
SinkRefused |
A pvc sink for the operator's own cluster. Use an s3 sink. |
SinkUnavailable |
The credentials Secret is missing or incomplete, or the manager has no backup volume. |
RecipientsInvalid |
An age recipient does not parse. It must start with age1. |
SnapshotFailed |
The message says what failed. Usually no healthy etcd member, or the sink refused the write. |
Damaged, ReadBackFailed |
The sink did not return what the operator wrote. Check the store. |
BackupTooOld |
The newest verified snapshot is older than two intervals. Correct the cause above. |
suspend: true on the policy |
A person stopped the schedule. The alert still fires after two intervals. Remove suspend, or delete the policy if the cluster needs no backup. |
After the fix, take a snapshot now:
pk-metal backup now prod-offsiteVerify
Section titled “Verify”BackedUp=True, and consecutiveFailures is 0.