Status freeze persists on the scale and member-deletion early-returns (same class as #367)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start in controllers/etcdcluster_controller.go, where the deletion-wait loop returns RequeueAfter 5s before updateStatus, then trace scaleUp, completePendingMember and scaleDown for the other early returns. The open question is the design, not the code: agree on where member-based status is derived (before the scale fan-out or on every non-error return) and how the quorum denominator stays at the established voter count during progression. Done means the status freeze is gone in both repro scenarios without flipping Degraded on healthy scale-ups.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #367 / #369.
#369 cures the freeze on the converged path (a healthy current == desired cluster whose pods all go down): the promote-after-converged pass now threads its transient requeue through updateStatus instead of returning early, so ReadyMembers / Available / Degraded stop advertising a last-healthy snapshot.
The same freeze class remains on every scale-related early return, which still skip updateStatus:
-
In-flight
EtcdMemberdeletion —controllers/etcdcluster_controller.godeletion-wait loop returnsRequeueAfter: 5sbeforeupdateStatus. With surviving peer CRs and etcd down,handleDeletion'sremoveMemberFromEtcderrors forever,reconciliationCompleteis false (count mismatch), anddeadlineExpiredis false becauseProgressDeadlinewas cleared at the prior convergence.ReadyMembers/Available=True/QuorumHealthyfreeze exactly as in #367. Repro: break-glass member deletion (or the memory-backed self-delete on pod loss), then all pods go down. -
Any scale path — the deletion-wait,
hasPendingMember → scaleUp,!allMembersReady,scaleDown, and the inner5s/10sreturns inscaleUp/completePendingMember/scaleDownall skipupdateStatus. Healthy 3/3,replicas: 5, member 4 added as a learner, then a node shutdown takes all pods down: status advertises healthy with 0 ready pods for the fullProgressDeadlineSeconds, after whichhandleDeadlineExceededwritesAvailable=False/DeadlineExceededbut leavesReadyMembers,Degraded, and the PDB untouched.
Design question to settle first
Both are the "derive member-based status on paths that early-return" problem. The durable shape (raised as the first open question on #367) is to derive the member-based status (ReadyMembers, Available/Degraded, BrokenMembers, PDB) before the scale fan-out — or on every non-error return — and keep it separate from the reconcile-state conditions that other writers own (the cert-manager gate, surfaceDiscoveryError, handleDeadlineExceeded).
The subtlety that makes this more than a mechanical refactor: during progression the ready/desired ratio counts not-yet-joined members against quorum, so a naive always-write flips Degraded on healthy scale-ups (the #369 review's item 1). #369 handles that for the converged path by withholding the health rewrite while Progressing=True && !reconciliationComplete; a general "write health on every return" needs the quorum denominator to be the established voter count during progression, not the desired replica count. Worth agreeing on the shape before landing the broader change.
Deferred from #369 per reviewer suggestion.
- 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 35/100
cozystack/etcd-operator#383 ·
-
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 ·
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