SPLAT-2703: Add read-only VMotion inventory planning for UPI clusters #228
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 586 lines diff across 7 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.381
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #228"
general
weight: 0.35
jcpowermac
Add the VMotion planning foundation for UPI clusters. Explicit VMotion selections now dispatch through eligibility checks and read-only inventory planning before the legacy MachineSet/CPMS path.
The planner:
This PR does not submit VM shutdown, relocation, or power-on actions; the migration workflow and recovery enforcement remain follow-up work. For this release,
topology.templateremains required for every target failure domain, including VMotion, though relocation does not consume it.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
VMotion requests now require matching Hot or Cold selections for worker and control-plane roles, valid migration configuration, and eligible Nodes. Omitted selections and Recreate retain their existing behavior.
The system checks VM identity, ownership, failure-domain mappings, and destination placement before creating a read-only plan. Plans preserve placement and scheduling details and block when frozen inputs change. Destination host selection remains with DRS; relocation and the full migration workflow are not yet supported.
Documentation
* Clarified VMotion eligibility, placement, ownership, plan contents, status reporting, and remaining implementation work, including certificate verification and handling uncertain submissions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Planning review follow-up: approved B/C policy
Detailed policy, rationale, source revisions and qualification limits: docs/dev/vmotion-eligibility.md.
Explicit scope decisions: engine-switch limitation A remains a documented deferred flaw. CAPI and API-authority handover are outside this release scope. This remains read-only planning; no VM actions, Machine-resource repair/adoption, annotation cleanup or execution reset is enabled.
Verification after all changes:
make test,make lint(0 issues),make build, focused controller and inventory race suites, andgit diff --checkpass. Generation produced no API/RBAC/bundle changes. A fresh review found no blocking defects; its inherited malformed-reference parser gap was reproduced and fixed to meet C. No actual cross-vCenter or maintenance-procedure qualification is claimed.The same planning commits are merged into dependent PR #231 without rewriting either published history; the combined executor branch passed the same checks.