Skip to content

Commit e9152bc

Browse files
authored
Merge pull request #39538 from apinnick/mig972-1.5.3-legacy-operator
MIG-972: 1.5.3 legacy operator
2 parents bad851c + 37f999a commit e9152bc

File tree

6 files changed

+19
-87
lines changed

6 files changed

+19
-87
lines changed

migrating_from_ocp_3_to_4/upgrading-3-4.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ include::modules/common-attributes.adoc[]
66

77
toc::[]
88

9-
You can upgrade the {mtc-full} ({mtc-short}) on {product-title} {product-version} by using the Operator Lifecycle Manager.
9+
You can upgrade the {mtc-full} ({mtc-short}) on {product-title} {product-version} by using Operator Lifecycle Manager.
1010

11-
You can upgrade {mtc-short} on {product-title} versions 3.7 to 3.11 by installing the legacy {mtc-full} Operator.
11+
You can upgrade {mtc-short} on {product-title} 3 by reinstalling the legacy {mtc-full} Operator.
1212

1313
[IMPORTANT]
1414
====
15-
If you are upgrading from {mtc-short} version 1.3 to {mtc-version}, you must perform an additional procedure to update the `MigPlan` custom resource (CR).
15+
If you are upgrading from {mtc-short} version 1.3, you must perform an additional procedure to update the `MigPlan` custom resource (CR).
1616
====
1717

1818
include::modules/migration-upgrading-mtc-on-ocp-4.adoc[leveloffset=+1]

migration_toolkit_for_containers/upgrading-mtc.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ include::modules/common-attributes.adoc[]
66

77
toc::[]
88

9-
You can upgrade the {mtc-full} ({mtc-short}) on {product-title} {product-version} by using the Operator Lifecycle Manager.
9+
You can upgrade the {mtc-full} ({mtc-short}) on {product-title} {product-version} by using Operator Lifecycle Manager.
1010

11-
You can upgrade {mtc-short} on {product-title} versions 4.2 to 4.5 by installing the legacy {mtc-full} Operator.
11+
You can upgrade {mtc-short} on {product-title} 4.5, and earlier versions, by reinstalling the legacy {mtc-full} Operator.
1212

1313
[IMPORTANT]
1414
====
15-
If you are upgrading from {mtc-short} version 1.3 to {mtc-version}, you must perform an additional procedure to update the `MigPlan` custom resource (CR).
15+
If you are upgrading from {mtc-short} version 1.3, you must perform an additional procedure to update the `MigPlan` custom resource (CR).
1616
====
1717

1818
include::modules/migration-upgrading-mtc-on-ocp-4.adoc[leveloffset=+1]

modules/common-attributes.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ endif::[]
4141
:launch: image:app-launcher.png[title="Application Launcher"]
4242
:mtc-short: MTC
4343
:mtc-full: Migration Toolkit for Containers
44-
ifndef::openshift-dedicated[]
4544
:mtc-version: 1.6
46-
endif::openshift-dedicated[]
47-
ifdef::openshift-dedicated[]
48-
:mtc-version: 1.4
49-
:mtc-version-z: 1.4.1
50-
endif::openshift-dedicated[]
45+
:mtc-legacy-version: 1.5
46+
:mtc-legacy-version-z: 1.5.3

modules/migration-compatibility-guidelines.adoc

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,16 @@
1010

1111
You must install the {mtc-full} ({mtc-short}) version that is compatible with your {product-title} version.
1212

13-
You cannot install {mtc-short} 1.6.x on {product-title} versions 3.7 to 4.5 because the custom resource definition API versions are incompatible.
13+
You cannot install {mtc-short} {mtc-version} on {product-title} 4.5, or earlier versions, because the custom resource definition API versions are incompatible.
1414

15-
You can migrate workloads from a source cluster with {mtc-short} 1.5.1 to a target cluster with {mtc-short} 1.6.x as long as the `MigrationController` custom resource and the {mtc-short} web console are running on the target cluster.
15+
You can migrate workloads from a source cluster with {mtc-short} {mtc-legacy-version-z} to a target cluster with {mtc-short} {mtc-version} as long as the `MigrationController` custom resource and the {mtc-short} web console are running on the target cluster.
1616

17-
[cols="1,1,2a", options="header"]
17+
[cols="1,1,2", options="header"]
1818
.{product-title} and {mtc-short} compatibility
1919
|===
2020
|{product-title} version |{mtc-short} version |{mtc-full} Operator
21-
|3.7 |1.5.1 |Legacy {mtc-full} Operator.
2221

23-
Installed manually with the `operator-3.7.yml` file.
22+
|4.5 and earlier |{mtc-legacy-version-z} |Legacy {mtc-full} Operator, installed manually with the `operator.yml` file.
2423

25-
|3.9 to 4.5 |1.5.1 |Legacy {mtc-full} Operator.
26-
27-
Installed manually with the `operator.yml` file.
28-
29-
|4.6 and later |1.6.x^[1]^ |{mtc-full} Operator.
30-
31-
Installed with the Operator Lifecycle Manager.
24+
|4.6 and later |Latest {mtc-version}.x z-stream release |{mtc-full} Operator, installed with Operator Lifecycle Manager.
3225
|===
33-
^1^ Latest z-stream release.

modules/migration-installing-legacy-operator.adoc

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,20 @@ endif::[]
4040
$ sudo podman login registry.redhat.io
4141
----
4242

43-
ifdef::installing-3-4,installing-restricted-3-4[]
44-
. Download the `operator.yml` file for your {product-title} version:
45-
46-
* {product-title} version 3.7:
47-
+
48-
[source,terminal,subs="attributes+"]
49-
----
50-
$ sudo podman cp $(sudo podman create \
51-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator-3.7.yml ./
52-
----
53-
54-
* {product-title} version 3.9 to 3.11:
55-
+
56-
[source,terminal,subs="attributes+"]
57-
----
58-
$ sudo podman cp $(sudo podman create \
59-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator.yml ./
60-
----
61-
endif::[]
62-
ifdef::installing-mtc,installing-mtc-restricted[]
6343
. Download the `operator.yml` file:
6444
+
6545
[source,terminal,subs="attributes+"]
6646
----
6747
$ sudo podman cp $(sudo podman create \
68-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator.yml ./
48+
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v{mtc-legacy-version-z}):/operator.yml ./
6949
----
70-
endif::[]
7150

7251
. Download the `controller.yml` file:
7352
+
7453
[source,terminal,subs="attributes+"]
7554
----
7655
$ sudo podman cp $(sudo podman create \
77-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/controller.yml ./
56+
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v{mtc-legacy-version-z}):/controller.yml ./
7857
----
7958

8059
ifdef::installing-restricted-3-4,installing-mtc-restricted[]

modules/migration-upgrading-mtc-with-legacy-operator.adoc

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
[id="migration-upgrading-mtc-with-legacy-operator_{context}"]
77
ifdef::upgrading-3-4[]
8-
= Upgrading the {mtc-full} on {product-title} 3.7 to 3.11
8+
= Upgrading the {mtc-full} on {product-title} 3
99

10-
You can upgrade {mtc-full} ({mtc-short}) on {product-title} versions 3.7 to 3.11 by manually installing the legacy {mtc-full} Operator.
10+
You can upgrade {mtc-full} ({mtc-short}) on {product-title} 3 by manually installing the legacy {mtc-full} Operator.
1111
endif::[]
1212
ifdef::upgrading-mtc[]
1313
= Upgrading the {mtc-full} on {product-title} versions 4.2 to 4.5
@@ -30,39 +30,12 @@ endif::[]
3030
$ sudo podman login registry.redhat.io
3131
----
3232

33-
ifdef::upgrading-3-4[]
34-
. Download the `operator.yml` file for your {product-title} 3 version:
35-
36-
* {product-title} version 3.7:
37-
+
38-
[source,terminal,subs="attributes+"]
39-
----
40-
$ sudo podman cp $(sudo podman create \
41-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator-3.7.yml ./
42-
----
43-
44-
* {product-title} version 3.9 to 3.11:
45-
+
46-
[source,terminal,subs="attributes+"]
47-
----
48-
$ sudo podman cp $(sudo podman create \
49-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator.yml ./
50-
----
51-
52-
. Replace the {mtc-full} Operator:
53-
+
54-
[source,terminal]
55-
----
56-
$ oc replace --force -f <operator.yml>
57-
----
58-
endif::[]
59-
ifdef::upgrading-mtc[]
6033
. Download the `operator.yml` file:
6134
+
6235
[source,terminal,subs="attributes+"]
6336
----
6437
$ sudo podman cp $(sudo podman create \
65-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/operator.yml ./
38+
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v{mtc-legacy-version-z}):/operator.yml ./
6639
----
6740

6841
. Replace the {mtc-full} Operator:
@@ -71,7 +44,6 @@ $ sudo podman cp $(sudo podman create \
7144
----
7245
$ oc replace --force -f operator.yml
7346
----
74-
endif::[]
7547

7648
. Scale the `migration-operator` deployment to `0` to stop the deployment:
7749
+
@@ -99,7 +71,7 @@ $ oc -o yaml -n openshift-migration get deployment/migration-operator | grep ima
9971
[source,terminal,subs="attributes+"]
10072
----
10173
$ sudo podman cp $(sudo podman create \
102-
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v1.5.1):/controller.yml ./
74+
registry.redhat.io/rhmtc/openshift-migration-legacy-rhel8-operator:v{mtc-legacy-version-z}):/controller.yml ./
10375
----
10476

10577
. Create the `migration-controller` object:
@@ -110,13 +82,6 @@ $ oc create -f controller.yml
11082
----
11183

11284
ifdef::upgrading-3-4[]
113-
. For {product-title} versions 3.9 and 3.10, set the security context constraint of the `migration-controller` service account to `anyuid` to enable direct image migration and direct volume migration:
114-
+
115-
[source,terminal]
116-
----
117-
$ oc adm policy add-scc-to-user anyuid -z migration-controller -n openshift-migration
118-
----
119-
12085
. If you have previously added the {product-title} 3 cluster to the {mtc-short} web console, you must update the service account token in the web console because the upgrade process deletes and restores the `openshift-migration` namespace:
12186

12287
.. Obtain the service account token:

0 commit comments

Comments
 (0)