Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Migrating from OpenShift SDN network plugin to OVN-Kubernetes network plugin
As an OpenShift Dedicated cluster administrator, you can initiate the migration from the OpenShift SDN network plugin to the OVN-Kubernetes network plugin and verify the migration status using the OCM CLI.
Some considerations before starting migration initiation are:
- The cluster version must be 4.16.43 and above.
- The migration process cannot be interrupted.
- Migrating back to the SDN network plugin is not possible.
- Cluster nodes will be rebooted during migration.
- There will be no impact to workloads that are resilient to node disruptions.
- Migration time can vary between several minutes and hours, depending on the cluster size and workload configurations.
2.1. Initiating migration using the OpenShift Cluster Manager API command-line interface (ocm) CLI Copiar enlaceEnlace copiado en el portapapeles!
You can only initiate migration on clusters that are version 4.16.43 and above.
Prerequisites
-
You installed the OpenShift Cluster Manager API command-line interface (
ocm
).
OpenShift Cluster Manager API command-line interface (ocm
) is a Developer Preview feature only. For more information about the support scope of Red Hat Developer Preview features, see Developer Preview Support Scope.
Procedure
Create a JSON file with the following content:
{ "type": "sdnToOvn" }
{ "type": "sdnToOvn" }
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Within the JSON file, you can configure internal subnets using any or all of the options
join
,masquerade
, andtransit
, along with a single CIDR per option, as shown in the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteOVN-Kubernetes reserves the following IP address ranges:
100.64.0.0/16
. This IP address range is used for theinternalJoinSubnet
parameter of OVN-Kubernetes by default.100.88.0.0/16
. This IP address range is used for theinternalTransSwitchSubnet
parameter of OVN-Kubernetes by default.If these IP addresses have been used by OpenShift SDN or any external networks that might communicate with this cluster, you must patch them to use a different IP address range before initiating the limited live migration. For more information, see Patching OVN-Kubernetes address ranges in the Additional resources section.
To initiate the migration, run the following post request in a terminal window:
ocm post /api/clusters_mgmt/v1/clusters/{cluster_id}/migrations
$ ocm post /api/clusters_mgmt/v1/clusters/{cluster_id}/migrations
1 --body=myjsonfile.json
2 Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
To check the status of the migration, run the following command:
ocm get cluster <cluster_id>/migrations
$ ocm get cluster <cluster_id>/migrations
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Replace
<cluster_id>
with the ID of the cluster that the migration was applied to.
Additional resources