-
Epic
-
Resolution: Unresolved
-
Major
-
None
-
None
-
Target VM Scheduling Configuration in Migration Plans
-
Product / Portfolio Work
-
False
-
-
False
-
Not Selected
-
In Progress
-
-
33% To Do, 0% In Progress, 67% Done
RFE: https://issues.redhat.com/browse/MTV-2768
As a migration admin i want to add support for configuring target VM scheduling preferences in migration plans
Summary
This epic adds support for configuring target VM scheduling preferences in migration plans through three new fields: TargetLabels, TargetNodeSelector, and TargetAffinity.
- TargetLabels: Allows specifying custom labels to be applied to target virtual machines during migration
- TargetNodeSelector: Enables constraining VM scheduling to specific nodes based on node labels
- TargetAffinity: Provides support for hard and soft affinity/anti-affinity rules for VMs against workloads and nodes
Implementation
- Added three new optional fields to PlanSpec struct
- Updated VM creation logic to apply these scheduling configurations
- Custom labels are merged into VM template labels
- Node selector constraints are applied to VM template spec
- Affinity rules are set on VM template spec
All fields are optional and backward compatible
Use Cases
- TargetLabels: Apply organizational or operational labels to migrated VMs for identification and management
- TargetNodeSelector: Ensure VMs are scheduled on nodes with specific capabilities (e.g., GPU nodes, storage nodes)
- TargetAffinity: Implement placement policies like spreading VMs across nodes or co-locating related workloads
This enhancement provides operators with fine-grained control over VM placement during migrations, enabling better resource utilization and adherence to operational requirements.