Skip to content

Branch installer removes the sidecar return path before Worker serves it #1498

Done

Description

@privateip

Summary

On the Worker integration branch, the CNI installer deletes the ingress sidecar's host return path every time it starts, even when Worker does not yet serve that sidecar. Worker serves a sidecar only after the cluster-wide sidecar image and controller move to the branch, but nodes move to Worker one at a time. On a node that upgrades first, replies from VPC backends to its ingress proxy are dropped until the sidecar catches up.

This blocks rolling Worker out one node at a time, and any single-node trial on an edge node that runs an ingress proxy.

Expected behavior

The installer keeps the host return path for every sidecar that Worker does not serve. It removes a sidecar's path only after Worker serves that sidecar.

Acceptance criteria

  • On a branch node whose sidecar still runs the main build, replies from VPC backends reach the proxy
  • Once Worker serves a sidecar, the installer removes that sidecar's host path and does not put it back
  • Moving a sidecar to Worker and back drops no established proxy flows beyond the pod replacement
  • Tests cover all three cases, and the Worker docs state the mixed-version rule

Related to #1430, #1439

Activity

  1. added
    galactic-cni
    bug
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
  3. self-assigned this
    on Nov 24, 2026
  4. privateip commented on Nov 24, 2026

    @privateip
    ContributorAuthor

    Confirmed on integration/galactic-worker at 4b09b200fab3fb8001db066ac0c107085ce128cc. The installer startup runs the legacy return-path prune without checking whether Worker serves the sidecar.

    A privileged test in an isolated network namespace exercised the prune with a live legacy-sidecar advertisement in a fake API and routes and eBPF maps in the kernel. The retention assertions failed as expected. The route count went from one to zero and both the SRv6 VRF row and the traffic-policy interface row disappeared. The existing prune test passed. These checks cover host state. Proxy flow continuity during upgrade and rollback still needs a mixed-version lab run.

  5. privateip commented on Nov 24, 2026

    @privateip
    ContributorAuthor

    The approved fix replaces the installer startup prune with reconciliation that keeps the legacy return path until Worker has programmed the replacement for that sidecar. It coordinates the shared SRv6 VRF entry under the VPC write fence and restores the legacy path if the legacy sidecar returns during rollback. The Worker guide will document the mixed-version rule.

    Verification will cover legacy traffic, takeover, and rollback with the installer regression tests and the Envoy socket lab scenario. The main risk is overlapping writers during a transition. The change uses the existing APIs and configuration.

  6. privateip commented on Nov 24, 2026

    @privateip
    ContributorAuthor

    The kernel regression opens a TCP connection through the legacy return path before running the installer reconciliation. The unchanged integration branch loses the connection's backend replies after its startup prune. The fix preserves that connection and delivers replies through Worker and after a legacy rollback. The test also checks that taking over one VPC preserves a neighbor still used by a second legacy VPC.

    The shared lab reservation timed out. Verification of the complete mixed-version rollout with Envoy is still pending.

  7. privateip commented on Nov 24, 2026

    @privateip
    ContributorAuthor

    The mixed-version Envoy lab test passed. We kept the sidecar built from main running while we upgraded only the node installer. All 24 probes received backend replies and each VPC kept its existing upstream TCP connection. Worker took over both VPCs and the installer retired the legacy host paths. Rolling the sidecar back restored the paths and backend replies.

    The fixture used a dedicated outbound link for the legacy sidecar's encapsulated traffic because the default Cilium path dropped it. Replies used the regular primary pod interface throughout the legacy phases.

    The lab baseline passed again after cleanup.

  8. privateip commented on Nov 24, 2026

    @privateip
    ContributorAuthor

    The fix is ready for review in PR #1500.

  9. privateip commented on Nov 25, 2026

    @privateip
    ContributorAuthor

    Fixed in #1500, merged into integration/galactic-worker. All 26 mixed-version probes passed across the installer upgrade on the same two Envoy connections. Worker takeover removed the legacy return routes, and rollback restored them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggalactic-cni

Type

Fields

Priority

Low

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions