feat(backups): keep a copy of a live Kubernetes cluster's volumes until its restore succeeds

Aperta
#5,263 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes

Direzione di ricerca

Start by reading the live-cluster restore implementation and the restore Job flow introduced for the Kubernetes backup strategy in issue #4931. Check how the existing Velero snapshot class is selected and how PVCs and DataVolumes are deleted, then verify the stated linstor-csi behavior on a live cluster. Done means failed restores retain usable snapshots identified in the RestoreJob message, while successful restores remove them; the payload names no files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

triage/needs-triage

A live-cluster restore of the Kubernetes backup strategy (#4931) restores the volumes by deleting the current DataVolumes and PVCs and letting Velero recreate them, because Velero cannot overwrite an existing claim. If the Velero restore fails after the claims are gone, the data exists only in the backup. The etcd half has no such gap: the restore Job saves the current prefix to <dump>.pre-restore before it writes and drops the copy only after a successful restore.

Proposal: before deleting each claim, take a CSI VolumeSnapshot of it with the class Velero already uses for that storage class, wait for it to be ready, and delete the snapshots after a successful restore. On failure, keep them and name them in the RestoreJob's message, so the claim can be recreated from the snapshot under its original pvc-<uid> name. The default of restoring both halves stays as it is.

To check first on a live cluster: whether linstor-csi deletes a volume that still has a snapshot, or keeps the snapshot usable after the source volume is gone; and how long a snapshot of a large, busy volume takes to become ready, since the cluster is stopped while it is taken.

Lingua principale
Go
Stelle
2.2k
Fork
209
Merge medio
4g 14h
PR unite (30g)
140

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cozystack/cozystack

Tutte le issue di cozystack/cozystack

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.