Cross cluster live migration¶
Official documentation: 12.5. Configuring a cross-cluster live migration network
Tested with:
| Component | Version |
|---|---|
| OpenShift | v4.20.4 |
| OpenShift Virt | v4.20.1 |
| MTV | v2.10.0 |
Without ACM, just a pure cross cluster live migration with two OpenShift clusters.
Cluster overview¶
We have two identicial clusters in terms of
- OpenShift Version
- CPU Type and Model
Cluster one called OCP1 is the target cluster with mtv. Cluster two called OCP7 is the source cluster.
This cluster are running on bare OpenShift Cluster called ISAR.
Details about the OCP1 & OCP7 adjustments at ISAR¶
OCP1 and OCP7 are provided via our stormshift automation
OCP1 & OCP7 Infrastructure details
Patch the cpu model¶
Enable VT-X/vmx feature¶
Restart all VM's¶
Check setttings as ISAR¶
Add second interface into vlan 2001 for the VM's/nodes¶
Adjust VM's to add second interface to worker nodes:¶
OCP1 and OCP7 cluster preperation¶
Install following operators¶
- Nmstate Operator (instantiate the operator now)
- OpenShift Virtualization (instantiate the operator LATER!)
- Migration Toolkit for Virtualization (instantiate the operator LATER!)
Prepare required live migration network¶
Both clusters have to be connected via an L2 network. In my case it's vlan 2001 with `192.168.201.0/24 subnet
Here an high level overview:
There is an documetion bug in the offical docs
NodeNetworkConfigurationPolicy for linux bridge into VLAN 2001
Apply this to OCP1 and OCP7
NetworkAttachmentDefinition for OCP1 and OCP7
Little helper for find out the interfaces on the nodes:
Apply this to OCP1
Apply this to OCP7
Instantiate the operator¶
OpenShift Virtualization on OCP1 and OCP7¶
Instantiate with following changes:
Wait until virt-synchronization-controller-xxx pods are running:
Optional: Check the virt-handler migration network configuration:
Migration toolkit for Virtualization on OCP1¶
Instantiate with following change:
Migration toolkit for Virtualization¶
Create provide at OCP1¶
Create service account and token at OCP7¶
Create clusterrole live-migration-role
Get the token:
Add provider ocp7 to OCP1¶
Run a cross cluster live migration¶
Resources¶
- https://access.redhat.com/solutions/7130438
- https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/virtualization/networking#virt-dedicated-network-live-migration
- https://github.com/k8snetworkplumbingwg/whereabouts
- https://docs.google.com/document/d/1x4r9gJVXVGe8ef6lMcciOqNbywJ5HKtR7E9kHVzIjAQ/edit?tab=t.0
- https://github.com/openshift/runbooks/pull/362

