SPLAT-3013: Failure domain mapping #219
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 345 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.350
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #219"
general
weight: 0.35
jcpowermac
Summary
Adds explicit source-to-destination failure-domain mapping for vCenter migrations, replacing assumptions that destination names match source names and that every worker MachineSet can use the first source
template.
### Changes
- Adds optional spec.failureDomainMappings and records the resolved mapping in status.failureDomainMappings.
- Preserves implicit mapping for single-source/single-destination migrations; requires complete, one-to-one mappings for multi-domain migrations.
- Validates mappings and generated MachineSet name collisions during preflight, before migration side effects.
- Keeps the resolved mapping stable throughout migration and rejects changes that would retarget an in-progress migration.
- Creates destination worker MachineSets from their mapped source MachineSets, preserving sizing and replica counts while using the destination failure domain’s VM template.
- Handles multiple and suffixed source MachineSets consistently during matching, creation, and readiness checks.
- Selects the source vCenter from the recorded mapping rather than relying on Infrastructure list ordering.
- Tightens MachineConfigPool convergence checks to reject unobserved generations and mismatched desired/current configurations.
- Adds API, validation, mapping, worker migration, and stale-status regression coverage, along with design documentation.
### Validation
- Regenerated CRD and DeepCopy code.
- OpenShift package tests and controller unit tests pass after merging upstream/main.
### Remaining limitation
The MCP freshness checks do not fully establish that MCO has consumed and rendered the migration configuration before CPMS updates. That propagation safety check remains outstanding.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
- Added support for mapping source failure domains to destination domains. If mappings are omitted, exactly one domain on each side is required and the pair is inferred.
- Worker MachineSets are created in mapped destination domains while preserving source replica counts. Migration status records resolved mappings and destination worker names.
- Preflight rejects invalid mappings, incompatible topologies, incomplete source coverage, and destination name collisions.
- Readiness checks account for stale machine configuration pool status and unmanaged nodes, and verify destination workers are ready.
- Improved recovery of destination worker names after interruptions and prevented source scale-down when destination replacements cannot be verified or recorded.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->