|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * networking/ovn_kubernetes_network_provider/migrate-from-openshift-sdn.adoc |
| 4 | + |
| 5 | +[id="nw-ovn-kubernetes-live-migration-about_{context}"] |
| 6 | += Live migration to the OVN-Kubernetes network plugin overview |
| 7 | + |
| 8 | +The live migration method is the process in which the OpenShift SDN network plugin and its network configurations, connections, and associated resources, are migrated to the OVN-Kubernetes network plugin without service interruption. It is available for {product-title}, {product-dedicated}, {product-rosa}, and Azure Red Hat OpenShift deployment types. It is not available for HyperShift deployment types. This migration method is valuable for deployment types that require constant service availability and offers the following benefits: |
| 9 | + |
| 10 | +* Continuous service availability |
| 11 | +* Minimized downtime |
| 12 | +* Automatic node rebooting |
| 13 | +* Seamless transition from the OpenShift SDN network plugin to the OVN-Kubernetes network plugin |
| 14 | + |
| 15 | +Although a rollback procedure is provided, the live migration is intended to be a one-way process. |
| 16 | + |
| 17 | +include::snippets/sdn-deprecation-statement.adoc[] |
| 18 | + |
| 19 | +The following sections provide more information about the live migration method. |
| 20 | + |
| 21 | +[id="supported-platforms-live-migrating-ovn-kubernetes"] |
| 22 | +== Supported platforms when using the live migration method |
| 23 | + |
| 24 | +The following table provides information about the supported platforms for the live migration type. |
| 25 | + |
| 26 | +.Supported platforms for the live migration method |
| 27 | +[cols="1,1", options="header"] |
| 28 | +|=== |
| 29 | +| Platform | Live Migration |
| 30 | + |
| 31 | +| Bare metal hardware (IPI and UPI) |✓ |
| 32 | +| Amazon Web Services (AWS) (IPI and UPI) |✓ |
| 33 | +| Google Cloud Platform (GCP) (IPI and UPI) |✓ |
| 34 | +| {ibm-cloud-name} (IPI and UPI) |✓ |
| 35 | +| Microsoft Azure (IPI and UPI) |✓ |
| 36 | +| {rh-openstack-first} (IPI and UPI) |✓ |
| 37 | +| VMware vSphere (IPI and UPI) |✓ |
| 38 | +| AliCloud (IPI and UPI) |✓ |
| 39 | +| Nutanix (IPI and UPI) |✓ |
| 40 | +|=== |
| 41 | + |
| 42 | +[id="considerations-live-migrating-ovn-kubernetes-network-provider_{context}"] |
| 43 | +== Considerations for live migration to the OVN-Kubernetes network plugin |
| 44 | + |
| 45 | +Before using the live migration method to the OVN-Kubernetes network plugin, cluster administrators should consider the following information: |
| 46 | + |
| 47 | +* The live migration procedure is unsupported for clusters with OpenShift SDN multitenant mode enabled. |
| 48 | + |
| 49 | +* Egress router pods block the live migration process. They must be removed before beginning the live migration process. |
| 50 | + |
| 51 | +* During the live migration, multicast, egress IP addresses, and egress firewalls are temporarily disabled. They can be migrated from OpenShift SDN to OVN-Kubernetes after the live migration process has finished. |
| 52 | + |
| 53 | +* The migration is intended to be a one-way process. However, for users that want to rollback to OpenShift-SDN, migration from OpenShift-SDN to OVN-Kubernetes must have succeeded. Users can follow the same procedure below to migrate to the OpenShift SDN network plugin from the OVN-Kubernetes network plugin. |
| 54 | + |
| 55 | +* The live migration is not supported on HyperShift clusters. |
| 56 | + |
| 57 | +* OpenShift SDN does not support IPsec. After the migration, cluster administrators can enable IPsec. |
| 58 | + |
| 59 | +* OpenShift SDN does not support IPv6. After the migration, cluster administrators can enable dual-stack. |
| 60 | + |
| 61 | +* The cluster MTU is the MTU value for pod interfaces. It is always less than your hardware MTU to account for the cluster network overlay overhead. The overhead is 100 bytes for OVN-Kubernetes and 50 bytes for OpenShift SDN. |
| 62 | ++ |
| 63 | +During the live migration, both OVN-Kubernetes and OpenShift SDN run in parallel. OVN-Kubernetes manages the cluster network of some nodes, while OpenShift SDN manages the cluster network of others. To ensure that cross-CNI traffic remains functional, the Cluster Network Operator updates the routable MTU to ensure that both CNIs share the same overlay MTU. As a result, after the migration has completed, the cluster MTU is 50 bytes less. |
| 64 | + |
| 65 | +* Some parameters of OVN-Kubernetes cannot be changed after installation. The following parameters can be set only before starting the live migration: |
| 66 | + |
| 67 | +** `InternalTransitSwitchSubnet` |
| 68 | +** `internalJoinSubnet` |
| 69 | + |
| 70 | +* Unless otherwise configured, OVN-Kubernetes uses the following IP address ranges: |
| 71 | +** `100.64.0.0/1`. This IP address range is used for the `internalJoinSubnet` parameter of OVN-Kubernetes by default. If this IP address range is already in use, enter the following command to update it to `100.63.0.0/16`: |
| 72 | ++ |
| 73 | +[source,terminal] |
| 74 | +---- |
| 75 | +$ oc patch network.operator.openshift.io cluster --type='merge' -p='{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"ipv4":{"internalJoinSubnet": "100.63.0.0/16"}}}}}' |
| 76 | +---- |
| 77 | +** `100.88.0.0/16`. This IP address range is used for the `internalTransSwitchSubnet` parameter of OVN-Kubernetes by default. If this IP address range is already in use by another network, enter the following command to update it to `100.99.0.0/16`: |
| 78 | ++ |
| 79 | +[source,terminal] |
| 80 | +---- |
| 81 | +$ oc patch network.operator.openshift.io cluster --type='merge' -p='{"spec":{"defaultNetwork":{"ovnKubernetesConfig":{"ipv4":{"internalTransitSwitchSubnet": "100.99.0.0/16"}}}}}' |
| 82 | +---- |
| 83 | + |
| 84 | +* In most cases, the live migration is independent of the secondary interfaces of pods created by the Multus CNI plugin. However, if these secondary interfaces were set up on the default network interface controller (NIC) of the host, for example, using MACVLAN, IPVLAN, SR-IOV, or bridge interfaces with the default NIC as the control node, OVN-Kubernetes might encounter malfunctions. Users should remove such configurations before proceeding with the live migration. |
| 85 | + |
| 86 | +* When there are multiple NICs inside of the host, and the default route is not on the interface that has the Kubernetes NodeIP, you must use the offline migration instead. |
| 87 | + |
| 88 | +* All `DaemonSet` objects in the `openshift-sdn` namespace, which are not managed by the Cluster Network Operator (CNO), must be removed before initiating the live migration. These unmanaged daemon sets can cause the migration status to remain incomplete if not properly handled. |
0 commit comments