← Back to Pull requests

OCPBUGS-86299: e2e/ccm-aws-ote: support to dual-stack IPv6 primary #466

Closed
unknown closed this pull request without merging on May 27, 2026 15:49 UTC
View on GitHub
unknown unknown commented on May 21, 2026 20:11 UTC
Author

Summary

Upstream cloud-provider-aws load balancer tests do not support dual-stack clusters — they create single-stack NLB services that fail when the cluster network requires dual-stack IPFamilyPolicy. This PR detects dual-stack configuration from the CCM cloud-config and adapts the test suite accordingly.

Changes

  • Exclude upstream LB tests on dual-stack IPv6-primary clusters: Detect dual-stack at startup by reading the NodeIPFamilies key from the cloud-config ConfigMap. When the cluster is dual-stack with IPv6 as primary family, upstream [cloud-provider-aws-e2e] loadbalancer tests are excluded from the spec selector since upstream does not support this configuration yet. IPv4-primary dual-stack and single-stack clusters continue to run the full upstream test suite.
  • Patch NLB services for dual-stack: The downstream createServiceNLB helper now sets IPFamilyPolicy=RequireDualStack on NLB services when dual-stack is detected, so the AWSServiceLBNetworkSecurityGroup tests create services matching the cluster's network configuration.
  • Consolidate cloud-config helpers into common package:

  • - GetCloudConfig() retrieves the CCM cloud-config ConfigMap (supports being called from main.go outside Ginkgo context).
    - IsConfigPresentCloudConfig() parses INI-style key=value entries from cloud-config data, with comma-delimited multi-value support.
    - IsNLBSecurityGroupModeManaged() replaces inline regex checks for the NLB managed SG mode.
    - IsDualStack() returns (isDualStack, primaryIPv6, error) by parsing NodeIPFamilies.
    - GetOcClient() / GetKubeClient() extracted from IsFeatureEnabled() for reuse.

    Test plan

  • Verify upstream LB tests are excluded on dual-stack IPv6-primary clusters (list-tests should not contain [cloud-provider-aws-e2e] loadbalancer entries)

  • Verify upstream LB tests are included on single-stack and IPv4-primary dual-stack clusters

  • Verify AWSServiceLBNetworkSecurityGroup tests create dual-stack NLB services on dual-stack clusters
  • 🤖 Generated with Claude Code

    Diff: 268 lines (+201 / -67) across 3 files Reviewer: sadasu Review duration: 8378m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #466"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.6% · Safe to merge
    15.6%