Status freeze persists on the scale and member-deletion early-returns (same class as #367)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 22/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Go
- Étoiles
- 154
- Forks
- 31
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de cozystack/etcd-operator
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
cozystack/etcd-operator#385 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
cozystack/etcd-operator#383 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
cozystack/etcd-operator#381 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
cozystack/etcd-operator#374 · 1 commentaire ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultPeut-être pris @androndo l’a pris il y a 46 jours. Ouvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
cozystack/etcd-operator#373 ·
Toutes les issues de cozystack/etcd-operator
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Correct local module testing instructions for Go sample contributorsPeut-être pris @slievrly l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Peut-être pris @pacwestnobody l’a pris aujourd’hui. Ouvertego good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Podiom/Podiom#427 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -racePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
factory:subtask
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
Les mainteneurs répondent en général sous 1 jour