|
6 | 6 | [id="updating-eus-to-eus-upgrade_{context}"]
|
7 | 7 | = EUS-to-EUS update
|
8 | 8 |
|
9 |
| -The following procedure pauses all non-master MachineConfigPools and performs updates from {product-title} 4.10 to 4.11 to 4.12, then unpauses the previously paused MachineConfigPools. |
| 9 | +The following procedure pauses all non-master machine config pools and performs updates from {product-title} 4.10 to 4.11 to 4.12, then unpauses the previously paused machine config pools. |
10 | 10 | Following this procedure reduces the total update duration and the number of times worker nodes are restarted.
|
11 | 11 |
|
12 | 12 | .Prerequisites
|
13 | 13 |
|
14 | 14 | * Review the release notes for {product-title} 4.11 and 4.12
|
15 |
| -* Review the release notes and product lifecycles for any layered products and OLM Operators. Some may require updates either before or during an EUS-to-EUS update. |
| 15 | +* Review the release notes and product lifecycles for any layered products and Operator Lifecycle Manager (OLM) Operators. Some may require updates either before or during an EUS-to-EUS update. |
16 | 16 | * Ensure that you are familiar with version-specific prerequisites, such as link:https://docs.openshift.com/container-platform/4.12/updating/updating-cluster-prepare.html#update-preparing-migrate_updating-cluster-prepare[administrator acknowledgement] that is required prior to updating from {product-title} 4.11 to 4.12.
|
17 |
| -* Verify that MachineConfigPools is unpaused. |
18 |
| -* Update OpenShift CLI `oc` to the target version before each update. |
19 | 17 |
|
20 |
| -.Procedure |
21 |
| - |
22 |
| -. Upgrade any OLM Operators to versions that are compatible with both versions you are updating to. |
23 |
| - |
24 |
| -. Verify that all machine config pools display a status of `UPDATED` and that no machine config pool displays a status of `UPDATING`. |
25 |
| -To view the status of all machine config pools, run the following command: |
26 |
| -+ |
27 |
| -[source,terminal] |
28 |
| ----- |
29 |
| -$ oc get mcp |
30 |
| ----- |
31 |
| -+ |
32 |
| -.Example output |
33 |
| -+ |
34 |
| -Output is trimmed for clarity: |
35 |
| -+ |
36 |
| -[source,terminal] |
37 |
| ----- |
38 |
| -NAME CONFIG UPDATED UPDATING |
39 |
| -master rendered-master-ecbb9582781c1091e1c9f19d50cf836c True False |
40 |
| -worker rendered-worker-00a3f0c68ae94e747193156b491553d5 True False |
41 |
| ----- |
42 |
| - |
43 |
| -. Change to the `eus-4.12` channel. Run the following command: |
44 |
| -+ |
45 |
| -[source,terminal] |
46 |
| ----- |
47 |
| -$ oc adm upgrade channel eus-4.12 |
48 |
| ----- |
49 |
| -+ |
50 |
| -[NOTE] |
51 |
| -==== |
52 |
| -The `oc adm upgrade channel` command is only present in 4.9 or later. |
53 |
| -
|
54 |
| -If you receive an error message indicating that `eus-4.12` is not one of the |
55 |
| -available channels, this indicates that Red Hat is still rolling out 4.10 to 4.12 EUS upgrades. |
56 |
| -This rollout process generally takes 45-90 days starting at the GA date. |
57 |
| -==== |
58 |
| -+ |
59 |
| -
|
60 |
| -. Pause the machine config pools that you want to skip reboots on. Run the following commands: |
61 |
| -+ |
62 |
| -[NOTE] |
63 |
| -==== |
64 |
| -You cannot pause the master pool. |
65 |
| -==== |
66 |
| -+ |
67 |
| -[source,terminal] |
68 |
| ----- |
69 |
| -$ oc patch mcp/worker --type merge --patch '{"spec":{"paused":true}}' |
70 |
| ----- |
71 |
| - |
72 |
| -. Update to version 4.11. Run the following command: |
73 |
| -+ |
74 |
| -[source,terminal] |
75 |
| ----- |
76 |
| -$ oc adm upgrade --to-latest |
77 |
| ----- |
78 |
| -+ |
79 |
| -.Example output |
80 |
| -+ |
81 |
| -[source,terminal] |
82 |
| ----- |
83 |
| -Updating to latest version 4.11.18 |
84 |
| ----- |
85 |
| - |
86 |
| -. Ensure that the 4.11 updates completed by reviewing the cluster version. Run the following command: |
87 |
| -+ |
88 |
| -[source,terminal] |
89 |
| ----- |
90 |
| -$ oc get clusterversion |
91 |
| ----- |
92 |
| -+ |
93 |
| -.Example output |
94 |
| -+ |
95 |
| -[source,terminal] |
96 |
| ----- |
97 |
| -NAME VERSION AVAILABLE PROGRESSING SINCE STATUS |
98 |
| -version 4.11.18 True False 6m29s Cluster version is 4.11.18 |
99 |
| ----- |
100 |
| - |
101 |
| -. If necessary, upgrade OLM Operators by using the Administrator perspective on the web console. |
102 |
| - |
103 |
| -. Update to version 4.12. Run the following command: |
104 |
| -+ |
105 |
| -[source,terminal] |
106 |
| ----- |
107 |
| -$ oc adm upgrade --to-latest |
108 |
| ----- |
109 |
| - |
110 |
| -. Ensure that the 4.12 update completed by retrieving the cluster version. Run the following command: |
111 |
| -+ |
112 |
| -[source,terminal] |
113 |
| ----- |
114 |
| -$ oc get clusterversion |
115 |
| ----- |
116 |
| -+ |
117 |
| -.Example output |
118 |
| -+ |
119 |
| -[source,terminal] |
120 |
| ----- |
121 |
| -NAME VERSION AVAILABLE PROGRESSING SINCE STATUS |
122 |
| -version 4.12.1 True False 6m29s Cluster version is 4.12.1 |
123 |
| ----- |
124 |
| - |
125 |
| -. Unpause all previously paused machine config pools. Run the following command: |
126 |
| -+ |
127 |
| -[source,terminal] |
128 |
| ----- |
129 |
| -$ oc patch mcp/worker --type merge --patch '{"spec":{"paused":false}}' |
130 |
| ----- |
131 |
| -+ |
132 |
| -[NOTE] |
133 |
| -==== |
134 |
| -If pools are not unpaused, the cluster is not permitted to update to any future minor versions, and maintenance tasks such as certificate rotation are inhibited. This puts the cluster at risk for future degradation. |
135 |
| -==== |
136 |
| - |
137 |
| -. Verify that your previously paused pools updated and that your cluster completed the update to version 4.12. Run the following command: |
138 |
| -+ |
139 |
| -[source,terminal] |
140 |
| ----- |
141 |
| -$ oc get mcp |
142 |
| ----- |
143 |
| -+ |
144 |
| -.Example output |
145 |
| -+ |
146 |
| -Output is trimmed for clarity: |
147 |
| -+ |
148 |
| -[source,terminal] |
149 |
| ----- |
150 |
| -NAME CONFIG UPDATED UPDATING |
151 |
| -master rendered-master-52da4d2760807cb2b96a3402179a9a4c True False |
152 |
| -worker rendered-worker-4756f60eccae96fb9dcb4c392c69d497 True False |
153 |
| ----- |
0 commit comments