Skip to content

fix: Register field indexers in the cell manager - #510

Merged
privateip merged 1 commit into
mainfrom
fix/cell-manager-missing-indexers
Sep 27, 2026
Merged

privateip merged 1 commit into
mainfrom
fix/cell-manager-missing-indexers

Conversation

@privateip

Copy link
Copy Markdown
Contributor

Summary

A cell's own claim reconciler lists NetworkInterfaceClaims by a field index that only the standalone manager binary registers at startup. The cell binary never made that call, so every NetworkContext change on a cell failed the list with "index does not exist" and never recovered on its own, no matter how many times the cell restarted.

The practical effect: once a network's context changed after a cell first started, new interfaces on that network stopped getting the routes and neighbor entries their reconcile installs, with no error surfaced anywhere near the affected workload.

This adds the same indexer registration call the manager binary already makes, right after the cell sets up its own controllers.

Test plan

  • A cell restarts cleanly with no "index does not exist" errors in its logs
  • A network context change on a cell reaches its interface claims and completes a reconcile
  • make test and make lint pass

The cell controller manager never called controller.AddIndexers, so
networkInterfaceClaimNetworkIndex was registered on the standalone
manager binary but not here. Every NetworkContext event on a cell then
failed to list its NetworkInterfaceClaims with "index ... does not
exist", so no cell ever finished a claim reconcile once a network
context changed after startup.

Add the same AddIndexers call the manager binary already makes, right
after controller setup, so both binaries register the same indexes.
@privateip
privateip marked this pull request as ready for review September 27, 2026 13:40
@privateip
privateip requested a review from a team as a code owner September 27, 2026 13:40
@privateip
privateip enabled auto-merge September 27, 2026 13:42
@privateip
privateip merged commit 62565e3 into main Sep 27, 2026
14 of 15 checks passed
@privateip
privateip deleted the fix/cell-manager-missing-indexers branch September 27, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants