You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following table summarizes the migration process by segmenting between the user-initiated steps in the process and the actions that the migration performs in response.
21
+
22
+
.Migrating to {sdn} from {previous-sdn}
23
+
[cols="1,1a",options="header"]
24
+
|===
25
+
26
+
|User-initiated steps|Migration activity
27
+
28
+
|
29
+
Set the `migration` field of the `Network.operator.openshift.io` custom resource (CR) named `cluster` to `{type}`. Make sure the `migration` field is `null` before setting it to a value.
30
+
|
31
+
Cluster Network Operator (CNO):: Updates the status of the `Network.config.openshift.io` CR named `cluster` accordingly.
32
+
Machine Config Operator (MCO):: Rolls out an update to the systemd configuration necessary for {sdn}; the MCO updates a single machine per pool at a time by default, causing the total time the migration takes to increase with the size of the cluster.
33
+
34
+
|Update the `networkType` field of the `Network.config.openshift.io` CR.
35
+
|
36
+
CNO:: Performs the following actions:
37
+
+
38
+
--
39
+
* Destroys the {previous-sdn} control plane pods.
40
+
* Deploys the {sdn} control plane pods.
41
+
* Updates the Multus objects to reflect the new network plugin.
42
+
--
43
+
44
+
|
45
+
Reboot each node in the cluster.
46
+
|
47
+
Cluster:: As nodes reboot, the cluster assigns IP addresses to pods on the {sdn} cluster network.
If a rollback to OpenShift SDN is required, the following table describes the process.
53
+
54
+
.Performing a rollback to OpenShift SDN
55
+
[cols="1,1a",options="header"]
56
+
|===
57
+
58
+
|User-initiated steps|Migration activity
59
+
60
+
|Suspend the MCO to ensure that it does not interrupt the migration.
61
+
|The MCO stops.
62
+
63
+
|
64
+
Set the `migration` field of the `Network.operator.openshift.io` custom resource (CR) named `cluster` to `OpenShiftSDN`. Make sure the `migration` field is `null` before setting it to a value.
65
+
|
66
+
CNO:: Updates the status of the `Network.config.openshift.io` CR named `cluster` accordingly.
67
+
68
+
|Update the `networkType` field.
69
+
|
70
+
CNO:: Performs the following actions:
71
+
+
72
+
--
73
+
* Destroys the OVN-Kubernetes control plane pods.
74
+
* Deploys the OpenShift SDN control plane pods.
75
+
* Updates the Multus objects to reflect the new network plugin.
76
+
--
77
+
78
+
|
79
+
Reboot each node in the cluster.
80
+
|
81
+
Cluster:: As nodes reboot, the cluster assigns IP addresses to pods on the OpenShift-SDN network.
82
+
83
+
|
84
+
Enable the MCO after all nodes in the cluster reboot.
85
+
|
86
+
MCO:: Rolls out an update to the systemd configuration necessary for OpenShift SDN; the MCO updates a single machine per pool at a time by default, so the total time the migration takes increases with the size of the cluster.
Copy file name to clipboardExpand all lines: modules/nw-ovn-kubernetes-migration-about.adoc
-72Lines changed: 0 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,75 +138,3 @@ For more information on using multicast in OVN-Kubernetes, see "Enabling multica
138
138
=== Network policies
139
139
140
140
OVN-Kubernetes fully supports the Kubernetes `NetworkPolicy` API in the `networking.k8s.io/v1` API group. No changes are necessary in your network policies when migrating from OpenShift SDN.
141
-
142
-
[id="how-the-migration-process-works_{context}"]
143
-
== How the migration process works
144
-
145
-
The following table summarizes the migration process by segmenting between the user-initiated steps in the process and the actions that the migration performs in response.
146
-
147
-
.Migrating to OVN-Kubernetes from OpenShift SDN
148
-
[cols="1,1a",options="header"]
149
-
|===
150
-
151
-
|User-initiated steps|Migration activity
152
-
153
-
|
154
-
Set the `migration` field of the `Network.operator.openshift.io` custom resource (CR) named `cluster` to `OVNKubernetes`. Make sure the `migration` field is `null` before setting it to a value.
155
-
|
156
-
Cluster Network Operator (CNO):: Updates the status of the `Network.config.openshift.io` CR named `cluster` accordingly.
157
-
Machine Config Operator (MCO):: Rolls out an update to the systemd configuration necessary for OVN-Kubernetes; The MCO updates a single machine per pool at a time by default, causing the total time the migration takes to increase with the size of the cluster.
158
-
159
-
|Update the `networkType` field of the `Network.config.openshift.io` CR.
160
-
|
161
-
CNO:: Performs the following actions:
162
-
+
163
-
--
164
-
* Destroys the OpenShift SDN control plane pods.
165
-
* Deploys the OVN-Kubernetes control plane pods.
166
-
* Updates the Multus objects to reflect the new network plugin.
167
-
--
168
-
169
-
|
170
-
Reboot each node in the cluster.
171
-
|
172
-
Cluster:: As nodes reboot, the cluster assigns IP addresses to pods on the OVN-Kubernetes cluster network.
173
-
174
-
|===
175
-
176
-
If a rollback to OpenShift SDN is required, the following table describes the process.
177
-
178
-
.Performing a rollback to OpenShift SDN
179
-
[cols="1,1a",options="header"]
180
-
|===
181
-
182
-
|User-initiated steps|Migration activity
183
-
184
-
|Suspend the MCO to ensure that it does not interrupt the migration.
185
-
|The MCO stops.
186
-
187
-
|
188
-
Set the `migration` field of the `Network.operator.openshift.io` custom resource (CR) named `cluster` to `OpenShiftSDN`. Make sure the `migration` field is `null` before setting it to a value.
189
-
|
190
-
CNO:: Updates the status of the `Network.config.openshift.io` CR named `cluster` accordingly.
191
-
192
-
|Update the `networkType` field.
193
-
|
194
-
CNO:: Performs the following actions:
195
-
+
196
-
--
197
-
* Destroys the OVN-Kubernetes control plane pods.
198
-
* Deploys the OpenShift SDN control plane pods.
199
-
* Updates the Multus objects to reflect the new network plugin.
200
-
--
201
-
202
-
|
203
-
Reboot each node in the cluster.
204
-
|
205
-
Cluster:: As nodes reboot, the cluster assigns IP addresses to pods on the OpenShift-SDN network.
206
-
207
-
|
208
-
Enable the MCO after all nodes in the cluster reboot.
209
-
|
210
-
MCO:: Rolls out an update to the systemd configuration necessary for OpenShift SDN; The MCO updates a single machine per pool at a time by default, so the total time the migration takes increases with the size of the cluster.
@@ -277,7 +278,26 @@ Waiting for daemon set "multus" rollout to finish: 5 of 6 updated pods are avail
277
278
daemon set "multus" successfully rolled out
278
279
----
279
280
280
-
. To complete the migration, reboot each node in your cluster. For example, you can use a bash script similar to the following example. The script assumes that you can connect to each host by using `ssh` and that you have configured `sudo` to not prompt for a password.
281
+
. To complete changing the network plugin, reboot each node in your cluster. You can reboot the nodes in your cluster with either of the following approaches:
282
+
283
+
** With the `oc rsh` command, you can use a bash script similar to the following:
284
+
+
285
+
[source,bash]
286
+
----
287
+
#!/bin/bash
288
+
readarray -t POD_NODES <<< "$(oc get pod -n openshift-machine-config-operator -o wide| grep daemon|awk '{print $1" "$7}')"
** With the `ssh` command, you can use a bash script similar to the following. The script assumes that you have configured sudo to not prompt for a password.
. To start the migration, set the network plugin back to OpenShift SDN by entering the following commands:
@@ -142,7 +157,26 @@ Waiting for daemon set "multus" rollout to finish: 5 of 6 updated pods are avail
142
157
daemon set "multus" successfully rolled out
143
158
----
144
159
145
-
. To complete the rollback, reboot each node in your cluster. For example, you could use a bash script similar to the following. The script assumes that you can connect to each host by using `ssh` and that you have configured `sudo` to not prompt for a password.
160
+
. To complete changing the network plugin, reboot each node in your cluster. You can reboot the nodes in your cluster with either of the following approaches:
161
+
162
+
** With the `oc rsh` command, you can use a bash script similar to the following:
163
+
+
164
+
[source,bash]
165
+
----
166
+
#!/bin/bash
167
+
readarray -t POD_NODES <<< "$(oc get pod -n openshift-machine-config-operator -o wide| grep daemon|awk '{print $1" "$7}')"
** With the `ssh` command, you can use a bash script similar to the following. The script assumes that you have configured sudo to not prompt for a password.
As a cluster administrator, you can migrate to the OpenShift SDN network plugin from the OVN-Kubernetes network plugin.
10
+
11
+
To learn more about OpenShift SDN, read xref:../../networking/openshift_sdn/about-openshift-sdn.adoc#about-openshift-sdn[About the OpenShift SDN network plugin].
* xref:../../networking/cluster-network-operator.adoc#nw-operator-configuration-parameters-for-openshift-sdn_cluster-network-operator[Configuration parameters for the OpenShift SDN network plugin]
21
+
* xref:../../backup_and_restore/control_plane_backup_and_restore/backing-up-etcd.adoc#backup-etcd[Backing up etcd]
= Rolling back to the OVN-Kubernetes network plugin
4
+
include::_attributes/common-attributes.adoc[]
5
+
:context: roll-back-to-ovn-kubernetes
6
+
7
+
toc::[]
8
+
9
+
As a cluster administrator, you can rollback to the OVN-Kubernetes network plugin from the OpenShift SDN network plugin if the migration to OpenShift SDN is unsuccessful.
10
+
11
+
To learn more about OVN-Kubernetes, read xref:../../networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc#about-ovn-kubernetes[About the OVN-Kubernetes network plugin].
Copy file name to clipboardExpand all lines: networking/ovn_kubernetes_network_provider/migrate-from-openshift-sdn.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ As a cluster administrator, you can migrate to the OVN-Kubernetes network plugin
11
11
To learn more about OVN-Kubernetes, read xref:../../networking/ovn_kubernetes_network_provider/about-ovn-kubernetes#about-ovn-kubernetes[About the OVN-Kubernetes network plugin].
0 commit comments