NO-ISSUE: templates: pass --single-stack to nodeip-configuration on IPv6 #6788
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
mkowalski
- 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 inKUBELET_NODE_IPS.The four nodeip-configuration templates (
_base,on-prem,kubevirt,vsphereUPI) now pass--single-stackwhenIPFamiliesisIPv6, 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 -vThe test renders all four units for each IP family and checks
--prefer-ipv6,--dual-stackand--single-stack. The IPv6 cases fail onmain.I also ran
node-ip showfrom a build of openshift/baremetal-runtimecfg#421 on a host with IPv4 and IPv6 default routes of equal metric (addresses changed to documentation ranges):- 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 -->