kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] InstanceSet per-instance health accepts unobserved child reports

Open leon-ape opened this issue 3 weeks ago • 0 comments

Description

InstanceSet2 excludes an Instance's health from its aggregate readiness when the Instance has not observed its current generation, but its per-instance status still copies the old status.ready value. With a zero parent minReadySeconds, the per-instance Available value can also remain true.

Reproduction

  1. Start a healthy InstanceSet using the Instance API.
  2. Update its Pod template and reconcile the parent so it writes the new child spec.
  3. Reconcile the parent again before the child controller handles that spec.

The child has generation != status.observedGeneration and retains its previous healthy report. The parent publishes aggregate Ready=False while that child's per-instance row still reports Ready=True (and Available=True with a zero waiting period).

Expected behavior

Use the existing observed Instance readiness check for the per-instance row, as for aggregate readiness. The row must recover after the child observes its spec. An observed healthy runtime must remain healthy independently of whether its desired Pod, config, or storage state is fully UpToDate.

This is an existing issue on main. It is independent of the readiness-publication ordering proposed in #11121 and is a remaining difference from #11027.

leon-ape avatar Nov 12 '26 08:11 leon-ape