← Back to Pull requests

testplan: add BGP nodeSelector for PodNetwork test plan #3594

Open
unknown opened this pull request with 572 lines diff across 7 files
View on GitHub
unknown unknown commented on Nov 02, 2026 14:37 UTC
Author

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/ovn-kubernetes/ovn-kubernetes/blob/master/CONTRIBUTING.md

Make sure all your commits include a DCO sign-off added with git commit -s.

All changes must adhere to this template to make it easy for reviewers
and preserve rationale/history behind every change
-->

📑 Description


<!-- Add a brief description of the pr -->

Summary


Adds a downstream test plan for OKEP-7040: selective RouteAdvertisements.spec.nodeSelector with PodNetwork, so BGP gateway nodes advertise pod subnets (L3) or pod IPs (L2) for RA-selected nodes—not only their own subnet.

The document lives at openshift/testplans/okep-7040-bgp-node-selector-pod-network.md and is planning only (no tests or product code in this PR). It defines:

  • Metadata — impacted components (routeadvertisements controller + pod watch, networkmanager / podAdvertisements, ovnkube-node breth0 flows), upstream links, downstream feature gate TBD.

  • Shared Kind topology — ovn-worker3 (FRR + RA gateway), ovn-worker (RA-only, proxy-advertised), ovn-worker2 (negative control).

  • Unit coverage — RA controller FRR prefix generation, SNAT scope, gateway ingress flows (priority-300 own subnet vs priority-290 cluster supernet per OKEP), CRD integration after CEL change.

  • Upstream E2E — L3/L2 CUDN and CDN, RIB/connectivity, ingress Geneve checks, pod /32 lifecycle, RA patch/shrink, asymmetric egress, gateway HA, NoOverlay / zero-intersection negatives; CI lane mapping (bgp, bgp-no-overlay, evpn).

  • Downstream OTE — serial core-networking lanes, feature-gate tagging when available, annotation refresh via make -C openshift update, TechPreview → GA periodics path.

  • Upgrade — existing empty nodeSelector + PodNetwork RA survives rolling upgrade (CEL rule removal).

  • Cross-feature — EgressIP, dual-stack, KubeVirt L2 migration, per-network SNAT scope, NoOverlay/EVPN/dynamic UDN notes.

  • Scale — explicitly out of scope; axes called out for PerfScale follow-up.

  • The plan also notes known gaps vs PR #7204 (e.g. L3 cluster supernet R3 / BGP advertisement follow-up) so assertions stay honest until upstream lands follow-ups.

    Test plan


  • Read through openshift/testplans/okep-7040-bgp-node-selector-pod-network.md for accuracy vs OKEP-7040 (adjust OKEP link if this repo vendors docs differently).

  • Confirm metadata links (Jira epic, upstream PR #7204 / OKEP PR #7041) resolve.

  • No code changes — CI should be green on docs-only diff; no OTE binary or tests.go updates required for this PR.

  • Follow-up PRs (separate): implement upstream/downstream tests per §4–§5 when feature lands and is vendored.
  • <!--
    Automatically closes linked issue when PR is merged.
    Usage: Fixes #<issue number>, or Fixes (paste link of issue).
    _If PR is about failing-tests or flakes, please post the related issues/tests in a comment and do not use Fixes_

    -->
    Fixes #

    Release Notes


    <!--
    REQUIRED. Add a short, user-facing release note in the block below describing any
    user-visible change (new/changed/removed flags or APIs, behavior changes,
    deprecations, etc.).
    Write NONE if this PR has no user-facing impact (tests, refactors, CI,
    internal-only changes) — NONE is a valid entry.
    -->
    ``release-note
    NONE
    ``

    Additional Information for reviewers


    <!--
    What exactly did you change - you may also defer to information
    contained in commit messages. At a bare minimum it's worth highlighting
    which areas of the code were changed as it's easier to assign reviewers
    -->

    ✅ Checks


    <!-- Make sure your pr passes the CI checks and do check the following fields as needed - -->
  • My code requires changes to the documentation

  • if so, I have updated the documentation as required

  • My code does not require changes to the documentation

  • My code requires tests

  • if so, I have added and/or updated the tests as required

  • My code does not require tests

  • All the tests have passed in the CI <!-- If not leave a comment as to why the CI is red and if you need help understanding what's wrong -->
  • How to verify it


    <!--
    Did you include unit tests? or end-to-end tests?
    How can I manually verify that this patch achieves its objective
    -->

    Diff: 572 lines (+429 / -143) across 7 files Reviewer: jechen0648 Review duration: 40439m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 572 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.380
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #3594"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.8% (MEDIUM) · Higher = larger blast radius
    49.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.5% · Safe to merge
    26.5%