Reference operator: adopt-restored does not support a physical restore

Aperta
#2,760 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, python
Ambito
cli, devops

Direzione di ricerca

Start with the adopt-restored command in deploy/stack_operator.py and follow how it treats a matching BReg instance claim with no Helm release as a post-claim-adopt adoption. Read deploy/OPERATIONS.md for the logical-restore path it currently documents, and the BReg security guide's bregctl instance-claim adopt requirement. The open design question (an explicit --physical-copy flag versus refusing an ambiguous matching claim) has to be settled before coding; done means adopt-restored handles the physical path and the guide describes it, including fencing the original first.

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

Descrizione

area:breg enhancement

The reference operator's adopt-restored command (deploy/stack_operator.py) supports logical restores only, which is the path deploy/OPERATIONS.md describes. It does not yet support a physical restore: a base backup, point-in-time recovery, a storage snapshot or a promoted replica.

A physical copy keeps the cluster's system identifier and the database OID, so the BReg instance claim already names the copy. adopt-restored reads a matching claim with no Helm release as an adoption that stopped after claim-adopt, and it resumes by serving. For a physical copy, claim-adopt never ran. The BReg security guide asks for bregctl instance-claim adopt before a physically restored copy serves, because that step supersedes the import authorities the restore reopened.

To support physical restores, adopt-restored could take an explicit option such as --physical-copy that always runs claim-adopt, or refuse a matching claim unless the operator says which kind of restore it is. The guide would then describe the physical path, including fencing the original first.

Until then, restore with deploy/state_bundle.py as the guide describes.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
9h 48m
PR unite (30g)
151

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 registrystack/registry-stack

Tutte le issue di registrystack/registry-stack

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.