โ† Back to Pull requests

๐Ÿ› ec2: fix endless launch template versions and node churn when httpProtocolIpv6 is enabled #6325

Open
unknown opened this pull request with 182 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 26, 2026 00:54 UTC
Author

What type of PR is this?

/kind bug

What this PR does / why we need it:

The launch template request never set HttpProtocolIpv6, so AWS stored disabled and LaunchTemplateNeedsUpdate saw drift against enabled on every reconcile: a new launch template version and a node group roll each time. Build the metadata options in launchTemplateMetadataOptionsRequest, which now sends HttpProtocolIpv6, with a spec โ†’ request โ†’ SDKToLaunchTemplate round-trip test.

Which issue(s) this PR fixes _(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)_:
Fixes #6324

Special notes for your reviewer:

  • Unset or disabled is unchanged (SetDefaults sets disabled), so existing launch templates get no new version.

  • Without the fix the round-trip test fails only on the IPv6 case.

  • Verified on live EKS: unpatched v1 โ†’ v2 with no spec change; patched v3 stored enabled and stayed there for 10+ minutes.
  • AI Usage:

    Claude (Claude Code) assisted with the fix, tests and live verification; reviewed and tested by me.

    Checklist:

  • squashed commits

  • includes documentation

  • includes AI generated content

  • includes emoji in title

  • adds unit tests

  • adds or updates e2e tests
  • Release note:

    ``release-note
    Fixed endless launch template versions and node churn when
    instanceMetadataOptions.httpProtocolIpv6 is enabled.
    ``

    Diff: 182 lines (+136 / -46) across 2 files Reviewer: tthvo Review duration: 32538m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.36) ร— (1 โˆ’ Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 ยท Change Risk (XGBoost)
    Score: 0.36 ยท 182 lines diff across 2 files
    0.36
    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%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.312
    Real PR Conversation Timeline
    1 comments
    "Review active on #6325"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 35.6% (MEDIUM) ยท Higher = larger blast radius
    35.6%
    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: 43.0% ยท Lower = rushed or shallow review
    43.0%
    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: 20.3% ยท Safe to merge
    20.3%