← Back to Pull requests

NO-ISSUE: templates: pass --single-stack to nodeip-configuration on IPv6 #6788

Open
unknown opened this pull request with 252 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 23, 2026 18:53 UTC
Author

- What I did

This is the MCO side of openshift/baremetal-runtimecfg#421, opened in parallel as asked there so both can be tested together.

On an IPv6 single-stack cluster, nodeip-configuration runs node-ip set --prefer-ipv6. That is only a preference. If the host also has an IPv4 default route, node-ip can still pick the IPv4 address as the node IP, or add it as a second node IP in KUBELET_NODE_IPS.

The four nodeip-configuration templates (_base, on-prem, kubevirt, vsphere UPI) now pass --single-stack when IPFamilies is IPv6, so node-ip only uses IPv6 addresses. IPv4 and dual-stack clusters get the same flags as before.

If a node has no IPv6 address yet, it now keeps retrying instead of falling back to IPv4.

Please don't merge this before openshift/baremetal-runtimecfg#421 is in the payload. An older runtimecfg rejects the unknown flag and nodeip-configuration retries forever.

- How to verify it

go test ./pkg/controller/template/ -run TestNodeIPConfigurationStackFlags -v

The test renders all four units for each IP family and checks --prefer-ipv6, --dual-stack and --single-stack. The IPv6 cases fail on main.

I also ran node-ip show from a build of openshift/baremetal-runtimecfg#421 on a host with IPv4 and IPv6 default routes of equal metric (addresses changed to documentation ranges):

--prefer-ipv6                   Chosen Node IPs: [2001:db8::10 192.0.2.10]
--prefer-ipv6 --single-stack    Chosen Node IPs: [2001:db8::10]

- Description for the changelog

On IPv6 single-stack clusters, nodeip-configuration no longer picks IPv4 addresses as node IPs.

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

<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

Bug Fixes
IPv6-only configurations now explicitly use single-stack mode across supported platforms, ensuring node IP configuration matches the selected IP family.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 252 lines (+189 / -63) across 3 files Reviewer: mkowalski Review duration: 7809m
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.62) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 252 lines diff across 3 files
0.62
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.331
Sensitive Paths sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #6788"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed sensitive_module
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: 62.2% (MEDIUM) · Higher = larger blast radius
62.2%
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: 33.2% · Safe to merge
33.2%