|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * updating/preparing-eus-eus-upgrade.adoc |
| 4 | + |
| 5 | +[id="updating-eus-to-eus-upgrade_{context}"] |
| 6 | += EUS to EUS upgrade |
| 7 | + |
| 8 | +The following procedure pauses all non-master MachineConfigPools and performs upgrades from {product-title} 4.8 to 4.9 to 4.10, then unpauses the previously paused MachineConfigPools. |
| 9 | +Following this procedure reduces the total upgrade duration and the number of times worker nodes are restarted. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* Review the release notes for {product-title} 4.9 and 4.10 |
| 14 | +* 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 upgrade. |
| 15 | +* Ensure that you are familiar with version-specific prerequisites, such as link:https://docs.openshift.com/container-platform/4.9/updating/updating-cluster-prepare.html#update-preparing-migrate_updating-cluster-prepare[administrator acknowledgement] that is required prior to upgrading from {product-title} 4.8 to 4.9. |
| 16 | +* Verify that your cluster is not running a version earlier than {product-title} 4.8.14. |
| 17 | +If your cluster is running a version than {product-title} 4.8.14, you must upgrade to a later 4.8.z version prior to upgrading to 4.9. |
| 18 | +The upgrade to 4.8.14 or later is necessary to fulfill the minimum version requirements that must be performed without pausing MachineConfigPools. |
| 19 | +* Verify that MachineConfigPools is unpaused. |
| 20 | + |
| 21 | +.Procedure |
| 22 | + |
| 23 | +. Upgrade any OLM Operators to versions that are compatible with both versions you are upgrading to. |
| 24 | + |
| 25 | +. Verify that all MachineConfigPools display a status of `UPDATED` and no MachineConfigPools display a status of `UPDATING`. |
| 26 | +To view the status of all MachineConfigPools, run the following command: |
| 27 | ++ |
| 28 | +[source,terminal] |
| 29 | +---- |
| 30 | +$ oc get mcp |
| 31 | +---- |
| 32 | ++ |
| 33 | +.Example output |
| 34 | ++ |
| 35 | +Output is trimmed for clarity: |
| 36 | ++ |
| 37 | +[source,terminal] |
| 38 | +---- |
| 39 | +NAME CONFIG UPDATED UPDATING |
| 40 | +master rendered-master-ecbb9582781c1091e1c9f19d50cf836c True False |
| 41 | +worker rendered-worker-00a3f0c68ae94e747193156b491553d5 True False |
| 42 | +---- |
| 43 | + |
| 44 | +. To pause the MachineConfigPools you wish to skip reboots on, run the following commands: |
| 45 | ++ |
| 46 | +[NOTE] |
| 47 | +==== |
| 48 | +You cannot pause the master pool. |
| 49 | +==== |
| 50 | ++ |
| 51 | +[source,terminal] |
| 52 | +---- |
| 53 | +$ oc patch mcp/worker --type merge --patch '{"spec":{"paused":true}}' |
| 54 | +---- |
| 55 | + |
| 56 | +. To change to the `eus-4.10` channel and upgrade to 4.9, run the following commands: |
| 57 | ++ |
| 58 | +[source,terminal] |
| 59 | +---- |
| 60 | +$ oc adm upgrade channel eus-4.10 |
| 61 | +$ oc adm upgrade --to-latest |
| 62 | +---- |
| 63 | ++ |
| 64 | +.Example output |
| 65 | ++ |
| 66 | +[source,terminal] |
| 67 | +---- |
| 68 | +Updating to latest version 4.9.18 |
| 69 | +---- |
| 70 | + |
| 71 | +. To ensure the 4.9 upgrades are completed successfully retrieve the cluster version, run the following command: |
| 72 | ++ |
| 73 | +[source,terminal] |
| 74 | +---- |
| 75 | +$ oc get clusterversion |
| 76 | +---- |
| 77 | ++ |
| 78 | +.Example output |
| 79 | ++ |
| 80 | +[source,terminal] |
| 81 | +---- |
| 82 | +NAME VERSION AVAILABLE PROGRESSING SINCE STATUS |
| 83 | +version 4.9.18 True False 6m29s Cluster version is 4.9.18 |
| 84 | +---- |
| 85 | + |
| 86 | +. If necessary, upgrade OLM operators using the Administrator perspective on the web console. |
| 87 | + |
| 88 | +. To upgrade to 4.10, run the following command: |
| 89 | ++ |
| 90 | +[source,terminal] |
| 91 | +---- |
| 92 | +$ oc adm upgrade --to-latest |
| 93 | +---- |
| 94 | + |
| 95 | +. To ensure the 4.10 upgrade is completed successfully retrieve the cluster version, run the following command: |
| 96 | ++ |
| 97 | +[source,terminal] |
| 98 | +---- |
| 99 | +$ oc get clusterversion |
| 100 | +---- |
| 101 | ++ |
| 102 | +.Example output |
| 103 | ++ |
| 104 | +[source,terminal] |
| 105 | +---- |
| 106 | +NAME VERSION AVAILABLE PROGRESSING SINCE STATUS |
| 107 | +version 4.10.1 True False 6m29s Cluster version is 4.10.1 |
| 108 | +---- |
| 109 | + |
| 110 | +. To unpause all previously paused MachineConfigPools, run the following command: |
| 111 | ++ |
| 112 | +[source,terminal] |
| 113 | +---- |
| 114 | +$ oc patch mcp/worker --type merge --patch '{"spec":{"paused":false}}' |
| 115 | +---- |
| 116 | ++ |
| 117 | +[NOTE] |
| 118 | +==== |
| 119 | +If pools are not unpaused, the cluster is not permitted to upgrade to any future minors and maintenance tasks such as certificate rotation are inhibited. This puts the cluster at risk for future degradation. |
| 120 | +==== |
| 121 | + |
| 122 | +. To verify that your previously paused pools have updated and your cluster completed the upgrade to 4.10, run the following command: |
| 123 | ++ |
| 124 | +[source,terminal] |
| 125 | +---- |
| 126 | +$ oc get mcp |
| 127 | +---- |
| 128 | ++ |
| 129 | +.Example output |
| 130 | ++ |
| 131 | +Output is trimmed for clarity: |
| 132 | ++ |
| 133 | +[source,terminal] |
| 134 | +---- |
| 135 | +NAME CONFIG UPDATED UPDATING |
| 136 | +master rendered-master-52da4d2760807cb2b96a3402179a9a4c True False |
| 137 | +worker rendered-worker-4756f60eccae96fb9dcb4c392c69d497 True False |
| 138 | +---- |
0 commit comments