fix(backup): pause the hot-repo prune and drop delete-marker expiry #884

Sammanfogat
supernaut sammanfogade 2 incheckningar från fix/pause-hot-prune in i main 2026-11-12 16:20:16 +00:00
Ägare

BackupHotFailed fired again on 2026-11-11 and 11-12: the 04:17 UTC prune of restic/hot stopped with Fatal: failed finding blobs: id f05700b9… not found in repository. The repair in #883 held for one day only.

Cause

Deleted objects came back. A version-listing diff of the hot repo between 11-10 and 11-12 shows 11 keys (8 packs, 2 index files, 1 snapshot) whose delete marker was gone and whose old version was current again. Every such version was still inside the 14-day COMPLIANCE lock.

The failing blob belonged to snapshot 4f8728ac. forget deleted it on 2026-10-31, later prunes removed its data, then it came back and pointed at nothing. The restored index files pointed at packs deleted on 11-02 and 11-03.

The bucket lifecycle had a bucket-wide rule with ExpiredObjectDeleteMarker. That should only remove a marker with no versions left under it. On a locked bucket there always is one, so the storage removed markers it should have kept.

Change

  • backup_hot_prune_hour: "": the hourly run never prunes. Backups and hourly forget keep running. The repo grows until prune is back.
  • Runbook: the lifecycle XML drops ExpiredObjectDeleteMarker, with a note never to add it. The hot-backup entry names the cause.

Already done by hand

  • The bucket lifecycle was replaced with the runbook's new rules (mc ilm rule import).
  • The hot repo was repaired without prune. Final check reports no errors.

Dry-run

--limit bitborg-prod --tags backup: changed=1 failed=0. Only the hot backup script changes (PRUNE_HOUR="04" to PRUNE_HOUR=""). No unit restarts.

Follow-up

Re-enable prune ("04") once a version-listing diff a week from now shows no restored objects.

`BackupHotFailed` fired again on 2026-11-11 and 11-12: the 04:17 UTC prune of `restic/hot` stopped with `Fatal: failed finding blobs: id f05700b9… not found in repository`. The repair in #883 held for one day only. ## Cause Deleted objects came back. A version-listing diff of the hot repo between 11-10 and 11-12 shows 11 keys (8 packs, 2 index files, 1 snapshot) whose delete marker was gone and whose old version was current again. Every such version was still inside the 14-day COMPLIANCE lock. The failing blob belonged to snapshot `4f8728ac`. `forget` deleted it on 2026-10-31, later prunes removed its data, then it came back and pointed at nothing. The restored index files pointed at packs deleted on 11-02 and 11-03. The bucket lifecycle had a bucket-wide rule with `ExpiredObjectDeleteMarker`. That should only remove a marker with no versions left under it. On a locked bucket there always is one, so the storage removed markers it should have kept. ## Change - `backup_hot_prune_hour: ""`: the hourly run never prunes. Backups and hourly `forget` keep running. The repo grows until prune is back. - Runbook: the lifecycle XML drops `ExpiredObjectDeleteMarker`, with a note never to add it. The hot-backup entry names the cause. ## Already done by hand - The bucket lifecycle was replaced with the runbook's new rules (`mc ilm rule import`). - The hot repo was repaired without prune. Final `check` reports no errors. ## Dry-run `--limit bitborg-prod --tags backup`: `changed=1 failed=0`. Only the hot backup script changes (`PRUNE_HOUR="04"` to `PRUNE_HOUR=""`). No unit restarts. ## Follow-up Re-enable prune (`"04"`) once a version-listing diff a week from now shows no restored objects.
supernaut lade till 2 incheckningar 2026-11-12 15:58:12 +00:00
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-11-12 16:03:31 +00:00
supernaut sammanfogade incheckning feb81f64cf till main 2026-11-12 16:20:16 +00:00
supernaut tog bort grenen fix/pause-hot-prune 2026-11-12 16:20:16 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!884
Ingen beskrivning angiven.