← Back to Pull requests

net, stability: Ignore transient IPv6 link-local in VMI interface status lookup #6766

Open
unknown opened this pull request with 395 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 01, 2026 15:08 UTC
Author

##### What this PR does / why we need it:
The guest agent can briefly report an interface's IPv6 link-local address as its primary IP before the routable (DHCP assigned) address is propagated to the VMI status. Tests that read that primary IP to drive connectivity then latch onto an unusable address and flake.
This tightens the default interface-status lookup so it keeps sampling until a routable address is reported, instead of accepting a transient link-local one. Global IPv6 addresses are still accepted, so dual-stack scenarios are unaffected.

##### Which issue(s) this PR fixes:
Race condition seen in test_basic_connectivity_between_udn_vms in the v4.18 lane (test-pytest-cnv-4.18-network-ovn-dualstack/173), which can affect us in any version.

##### Special notes for reviewer:

##### jira-ticket:
NONE

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

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

Summary by CodeRabbit

Bug Fixes
Network interface reporting now excludes interfaces without a guest-agent source or IP address. Invalid IP values and IPv6 link-local addresses are also excluded, so reported interfaces reflect usable IP addresses.

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

Diff: 395 lines (+296 / -99) across 4 files Reviewer: azhivovk Review duration: 41990m
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 395 lines diff across 4 files
0.43
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.358
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #6766"
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: 43.2% (MEDIUM) · Higher = larger blast radius
43.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: 23% · Safe to merge
23%