← Back to Pull requests

Add VM overlay offload CI and first-class gateway networks #51

Open
unknown opened this pull request with 348 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 06, 2026 14:03 UTC
Author

Summary

 config
-  HostToDpu.gateway_subnet
+  type: gateway  (CIDR + next hop)
+  HostToDpu.gateway_subnet  # legacy fallback only

 backends
   kind routing  -> shared GatewayOpts / firewall helpers
+  vm gateway NIC + host<->gateway forwarding
+  OVN --gateway-router-subnet / --gateway-nexthop on both

 ci
   kind-tft.yml  -> reusable checkout-repo-ref + run-tft
+  vm-tft.yml / vm-dpu-offload.yml
+  ci/config-vm-ovnk-offload.yaml
+  tft-overlay-no-pre-provision.yaml

Make the DPU gateway underlay a first-class type: gateway network so Kind and VM share one source of truth, then run overlay TFT on libvirt with the same reusable checkout/TFT actions as Kind.

  • Gateway config: gateway + subnet_mask → CIDR; HostToDpu.gateway_subnet is synthesized only when offload is on and no gateway network is declared.

  • VM offload uses the dedicated gateway NIC/subnet (cloud-init, host↔gateway forwarding, OVN masquerade helm values), plus bootstrap fixes (OVS runtime ACLs, skip kube-proxy with OVN, wait for node InternalIP).

  • TFT: portable external/embedded profiles, paired-host aliases, optional deployment kubeconfig; SSH writes keep exact payloads; device-plugin image copies only command/package sources.
  • Evidence

  • Before: Kind overlay TFT only; VM offload had no CI path and gateway CIDR lived on HostToDpu.gateway_subnet.

  • After: vm-tft.yml / vm-dpu-offload.yml share checkout-repo-ref + run-tft with Kind; unit coverage for gateway validation, firewall helpers, VM gateway routing, TFT profile prep, SSH write, and kubelet InternalIP wait.

    Note

    Configs that only set HostToDpu.gateway_subnet still work via fallback, but new VM workflows add CI load and both backends now take gateway next-hop from the shared helpers.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added VM-based DPU offload test workflows, with optional traffic-flow tests and diagnostic and test-result artifacts.
    TFT profiles support @host-N aliases across Kind and VM environments, external profiles, and TFT_KUBECONFIG for kubeconfig selection.
    Added dedicated gateway network support for Kind and VM offload, including gateway addressing and traffic routing.
    Added reusable checkout and traffic-flow test steps for CI workflows.
    Bug Fixes
    Improved VM network setup and startup so configured interfaces, gateway addresses, and node IPs are applied reliably.
    Improved gateway configuration validation and network setup.
    Documentation
    Updated configuration examples and architecture guidance for gateway and uplink networks.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 348 lines (+261 / -87) across 4 files Reviewer: wizhaoredhat Review duration: 8412m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 348 lines diff across 4 files
    0.42
    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.350
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #51"
    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: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 22.6% · Safe to merge
    22.6%