← Back to Pull requests

SPLAT-3013: Failure domain mapping #219

Closed
unknown closed this pull request without merging on Oct 26, 2026 19:08 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 15:34 UTC
Author

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

  • New Features

  • - 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.

  • Bug Fixes

  • - 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 -->

    Diff: 345 lines (+258 / -87) across 4 files Reviewer: jcpowermac Review duration: 10294m
    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
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #219"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.7% · Safe to merge
    16.7%