Memory-backed member that loses its data on node reboot crash-loops; manual removal wedges the finalizer on 'member not found'
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, kubernetes
- Ambito
- backend, distributed-systems
Direzione di ricerca
Start with controllers/etcdmember_controller.go and trace removeMemberFromEtcd and resolveMemberID, then check the member reconciliation and storage configuration paths for memory-backed members. The issue proposes treating MemberNotFound as success and detecting data loss after a node reboot, but leaves the detection and replacement design open. Done means the member can be replaced and the cluster returns to its expected size without a stuck finalizer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
With storage.medium: Memory, a member whose node reboots comes back with an empty data dir but keeps its etcd member ID. It panics on the leader's first append (tocommit(N) is out of range [lastIndex(0)]) and crash-loops. The operator reports Degraded: 2/3 members ready and does not replace it.
Removing the dead member by hand (etcdctl member remove <id>, then deleting the Pod) then wedges the member finalizer: removeMemberFromEtcd calls MemberRemove(status.MemberID), etcd answers member not found, and the reconciler logs failed to remove member from etcd, will retry every 5 s. The EtcdCluster logs waiting for in-flight member deletion before further scaling, so no replacement is created until the finalizer is removed by hand. After that, the operator scales back to 3/3.
Seen with v0.5.4; controllers/etcdmember_controller.go on main has the same logic.
Proposals
- Treat
rpctypes.ErrGRPCMemberNotFoundfromMemberRemoveas success;resolveMemberIDalready treats "not in the member list" that way whenstatus.MemberIDis empty. - For memory-backed members, detect a member that restarted with an empty data dir (for example, its Pod's node boot ID changed) and replace it: remove the old member ID, add a new member, and start it with
--initial-cluster-state=existing.
- Lingua principale
- Go
- Stelle
- 154
- Fork
- 31
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cozystack/etcd-operator
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
cozystack/etcd-operator#385 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
cozystack/etcd-operator#381 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cozystack/etcd-operator#374 · 1 commento ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultForse già presa @androndo l’ha presa 46 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cozystack/etcd-operator#373 ·
-
bugfix controllers
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
cozystack/etcd-operator#372 ·
Tutte le issue di cozystack/etcd-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Correct local module testing instructions for Go sample contributorsForse già presa @slievrly l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Forse già presa @pacwestnobody l’ha presa oggi. Apertago good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Podiom/Podiom#427 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno