|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * migrating_from_ocp_3_to_4/upgrading-3-4.adoc |
| 4 | +// * migration_toolkit_for_containers/upgrading-mtc.adoc |
| 5 | + |
| 6 | +:_content-type: PROCEDURE |
| 7 | +[id="migration-upgrading-oadp-for-mtc-18_{context}"] |
| 8 | += Upgrading OADP 1.0 to 1.2 for {mtc-full} 1.8.0 |
| 9 | + |
| 10 | +To upgrade OADP 1.0 to 1.2 for {mtc-full} 1.8.0, complete the following steps. |
| 11 | + |
| 12 | +.Procedure |
| 13 | + |
| 14 | + |
| 15 | +* For each subscription, patch the OADP operator from OADP 1.0 to OADP 1.2 by running the following command: |
| 16 | ++ |
| 17 | +[source,terminal] |
| 18 | +---- |
| 19 | +$ oc -n openshift-migration patch subscription redhat-oadp-operator-stable-1.0-mtc-operator-catalog-openshift-marketplace --type merge --patch '{"spec": {"channel":"stable-1.2"}}' |
| 20 | +---- |
| 21 | ++ |
| 22 | +[NOTE] |
| 23 | +==== |
| 24 | +Sections indicating the user-specific returned `NAME` values that are used for the installation of MTC & OADP, respectively. |
| 25 | +==== |
| 26 | ++ |
| 27 | +.Example output |
| 28 | +[source,terminal] |
| 29 | +---- |
| 30 | +subscription.operators.coreos.com/redhat-oadp-operator-stable-1.0-mtc-operator-catalog-openshift-marketplace patched |
| 31 | +---- |
| 32 | ++ |
| 33 | +[NOTE] |
| 34 | +==== |
| 35 | +The returned value will be similar to `redhat-oadp-operator-stable-1.0-mtc-operator-catalog-openshift-marketplace`, which is used in this example. |
| 36 | +==== |
| 37 | ++ |
| 38 | +-- |
| 39 | +* If the `installPlanApproval` parameter is set to `Automatic`, the Operator Lifecycle Manager (OLM) begins the upgrade process. |
| 40 | +* If the `installPlanApproval` parameter is set to `Manual`, you must approve each `installPlan` before the OLM begins the upgrades. |
| 41 | +-- |
| 42 | +
|
| 43 | +.Verification |
| 44 | +. Verify that the OLM has completed the upgrades of OADP and {mtc-short} by running the following command: |
| 45 | ++ |
| 46 | +[source,terminal] |
| 47 | +---- |
| 48 | +$ oc -n openshift-migration get subscriptions.operators.coreos.com mtc-operator -o json | jq '.status | (."state"=="AtLatestKnown")' |
| 49 | +---- |
| 50 | + |
| 51 | +. When a value of `true` is returned, verify the channel used for each subscription by running the following command: |
| 52 | ++ |
| 53 | +[source,terminal] |
| 54 | +---- |
| 55 | +$ oc -n openshift-migration get sub -o json | jq -r '.items[] | {name: .metadata.name, channel: .spec.channel }' |
| 56 | +---- |
| 57 | ++ |
| 58 | +.Example output |
| 59 | +[source,terminal] |
| 60 | +---- |
| 61 | +{ |
| 62 | + "name": "mtc-operator", |
| 63 | + "channel": "release-v1.8" |
| 64 | +} |
| 65 | +{ |
| 66 | + "name": "redhat-oadp-operator-stable-1.0-mtc-operator-catalog-openshift-marketplace", |
| 67 | + "channel": "stable-1.2" |
| 68 | +} |
| 69 | +---- |
| 70 | + |
| 71 | + Confirm that the `mtc-operator.v1.8.0` and `oadp-operator.v1.2.x` packages are installed by running the following command: |
| 72 | ++ |
| 73 | +[source,terminal] |
| 74 | +---- |
| 75 | +$ oc -n openshift-migration get csv |
| 76 | +---- |
| 77 | ++ |
| 78 | +.Example output |
| 79 | +[source,terminal] |
| 80 | +---- |
| 81 | +NAME DISPLAY VERSION REPLACES PHASE |
| 82 | +mtc-operator.v1.8.0 Migration Toolkit for Containers Operator 1.8.0 mtc-operator.v1.7.13 Succeeded |
| 83 | +oadp-operator.v1.2.2 OADP Operator 1.2.2 oadp-operator.v1.0.13 Succeeded |
| 84 | +---- |
0 commit comments