add kata-dan-cni for directly attachable networking #1
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 382 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1"
general
weight: 0.35
l8huang
Kata Containers' Directly Attachable Network (DAN) allows Kata VMs to use host network devices directly.
Kata runtime-rs reads DAN JSON files named after sandbox IDs, creates VM network devices, and configures
MAC addresses, IP addresses, routes, and other network settings inside the guest. Creating a regular
veth first and then a TAP using the same OVN iface-id can cause port contention and resource cleanup
conflicts.
This PR adds kata-dan-cni, a standalone Rust CNI tool that provides DAN networking for Kata Containers.
It reads existing network allocations from Kube-OVN, creates host TAP devices, configures their OVS
bindings, and generates DAN JSON files named after sandbox IDs. Ordinary Pods are delegated to the
existing Kube-OVN CNI plugin.
The tool supports CNI ADD, DEL, basic CHECK, and VERSION. It provides Provider/backend abstractions,
a Fake Provider, and scripts for DaemonSet installation, credential synchronization, and uninstallation.
Related: kata-containers/kata-containers#14153
Testing
Test environment
1. Ordinary Pod
Test result:
The Pod reached Running and Ready. Networking was delegated to the existing Kube-OVN CNI plugin,
and no DAN JSON file was generated.
2. DAN Pod
Generated DAN JSON:
Test result:
The Pod reached Running and Ready. The host TAP device was attached to
br-int.