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
Copy file name to clipboardExpand all lines: modules/nw-ovn-kubernetes-migration.adoc
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,39 @@ Perform the migration only when an interruption in service is acceptable.
35
35
$ oc get Network.config.openshift.io cluster -o yaml > cluster-openshift-sdn.yaml
36
36
----
37
37
38
-
. To prepare all the nodes for the migration, set the `migration` field on the Cluster Network Operator configuration object by entering the following command:
38
+
. Verify that the `OVN_SDN_MIGRATION_TIMEOUT` environment variable is set and is equal to `0s` by running the following command:
39
+
+
40
+
[source,bash]
41
+
----
42
+
#!/bin/bash
43
+
44
+
if [ -n "$OVN_SDN_MIGRATION_TIMEOUT" ] && [ "$OVN_SDN_MIGRATION_TIMEOUT" = "0s" ]; then
45
+
unset OVN_SDN_MIGRATION_TIMEOUT
46
+
fi
47
+
48
+
#loops the timeout command of the script to repeatedly check the cluster Operators until all are available.
49
+
50
+
co_timeout=${OVN_SDN_MIGRATION_TIMEOUT:-1200s}
51
+
timeout "$co_timeout" bash <<EOT
52
+
until
53
+
oc wait co --all --for='condition=AVAILABLE=True'--timeout=10s && \
54
+
oc wait co --all --for='condition=PROGRESSING=False'--timeout=10s && \
55
+
oc wait co --all --for='condition=DEGRADED=False'--timeout=10s;
This step does not deploy OVN-Kubernetes immediately. Instead, specifying the `migration` field triggers the Machine Config Operator (MCO) to apply new machine configs to all the nodes in the cluster in preparation for the OVN-Kubernetes deployment.
49
81
====
50
82
51
-
. Optional: You can disable automatic migration of several OpenShift SDN capabilities to the OVN-Kubernetes equivalents:
83
+
.. Check that the reboot is finished by running the following command:
84
+
+
85
+
[source,terminal]
86
+
----
87
+
$ oc get mcp
88
+
----
89
+
90
+
.. Check that all cluster Operators are available by running the following command:
91
+
+
92
+
[source,terminal]
93
+
----
94
+
$ oc get co
95
+
----
96
+
97
+
.. Alternatively: You can disable automatic migration of several OpenShift SDN capabilities to the OVN-Kubernetes equivalents:
52
98
+
53
99
--
54
100
* Egress IPs
@@ -293,6 +339,8 @@ daemon set "multus" successfully rolled out
293
339
[IMPORTANT]
294
340
====
295
341
The following scripts reboot all of the nodes in the cluster at the same time. This can cause your cluster to be unstable. Another option is to reboot your nodes manually one at a time. Rebooting nodes one-by-one causes considerable downtime in a cluster with many nodes.
342
+
343
+
Cluster Operators will not work correctly before you reboot the nodes.
296
344
====
297
345
298
346
** With the `oc rsh` command, you can use a bash script similar to the following:
0 commit comments