mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(controller): move a pending control-plane node out of a full failure domain When CAPNICo reports FailureDomainUnavailable for a control-plane node's requested domain past a grace period, patch the Machine's failure domain to the least-used eligible domain the node has not tried, cycling once every domain has been tried. Gated by controlPlaneFailureDomainFallback in nvke-controller-config, off by default. Failure-domain discovery and the allocator move to internal/failuredomains so the provisioning activity can reuse them. nico-sim gains a configurable failure-domain layout, and a nico-containers e2e spec covers the move. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): keep the failure-domain fallback and stuck-pending re-placement from overlapping With the fallback enabled, the stuck-pending reconciler leaves domain-pinned pending control-plane nodes to the provisioning activity, which moves them in place. Both acted on the same FailureDomainUnavailable signal on different clocks, so a moved node could be deleted after one CAPNICo retry. The rotation now stamps the domain it leaves in the cluster's UnplaceableFailureDomains, so scale-up, remediation, rollout and rebalance stop choosing the emptied, still-full domain for the next 3 hours. When picking the next domain it tries marked domains only after every unmarked one. The rotation skips rebalance surges. A surge is placed in the domain of the node it replaces; moving it can leave two members in one domain after the shed, and rebalance already abandons a surge that cannot get capacity. The unplaceable-domain helpers move to the failuredomains package so the reconciler and the activity share them. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): replace stuck-pending delete with the failure-domain move Moving a pending control-plane node to another failure domain is now the only way the controller handles a domain CAPNICo reports out of capacity. The stuck-pending reconciler, which deleted such a node after 15 minutes and recreated it elsewhere, is removed along with the controlPlaneFailureDomainFallback.enabled setting that chose between them. The move now also leaves a node with a delete in flight alone. controlPlaneFailureDomainFallback.gracePeriod stays; unset, it defaults to 10 minutes, and a non-positive value is refused at startup and by the chart. FailureDomainUnavailable leaves the MachineMaterialization interface, since only the stuck-pending path called it. The e2e spec gains a scale-up case: with every domain but one out of capacity, scaling the control plane to three moves the stuck Machine in place and fails if any control-plane Machine is deleted. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): Surge releases the domain of the first rollout target without a delete in flight Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): mark the domain unavailable and update the node in the same transaction Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): make the failure domain check more readable Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): retry a failure-domain move on Machine patch conflict A conflict on the optimistic-lock Machine patch now waits for the next poll instead of failing the activity. Cover the surge-domain release by driving reconcileNodesNeedingRollout, and document the gracePeriod positivity constraint in the chart README. Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): finish an interrupted failure-domain move once the node has an IP When the Machine patch of a failure-domain move succeeds and the row update fails, the next poll records the move. That repair ran only from the rotation path, which waitForCAPIMachineReady reaches only while the Machine has no IP, so a node that got an address in the new domain kept the old domain in its row. The repair now runs on every poll, before the IP check. A repaired wrap-around move rebuilt the tried list by appending the departed domain to the old history instead of restarting it. When the Machine's domain is already in the tried list the move was a restart, so only the departed domain is kept. Signed-off-by: Eric Staples <estaples@nvidia.com> --------- Signed-off-by: Eric Staples <estaples@nvidia.com>