Skip to content

Commit 5568c6c

Browse files
authored
Merge pull request #28993 from apinnick/bz1921559-mtc-ocp3-upgrade-set-scc
Update migration-controller SCC on OCP3.10/earlier (1.4.0)
2 parents 14ac298 + edcf7c9 commit 5568c6c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

modules/migration-upgrading-migration-tool-3.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ $ sudo podman cp $(sudo podman create registry.redhat.io/rhmtc/openshift-migrati
3535
$ oc replace --force -f operator.yml
3636
----
3737

38-
. If you are upgrading from version 1.1.2 or earlier, delete the `Restic` pods to apply the changes:
38+
. If you are upgrading {mtc-short} 1.1.2 or earlier versions, delete the `Restic` pods to apply the changes:
3939
+
4040
[source,terminal]
4141
----
4242
$ oc delete pod <restic_pod>
4343
----
4444

45-
. If you are upgrading from version 1.2 or later, scale the `migration-operator` deployment to `0` to stop the deployment:
45+
. If you are upgrading {mtc-short} 1.2 or later versions, scale the `migration-operator` deployment to `0` to stop the deployment:
4646
+
4747
[source,terminal]
4848
----
@@ -70,13 +70,20 @@ $ oc -o yaml -n openshift-migration get deployment/migration-operator | grep ima
7070
$ sudo podman cp $(sudo podman create registry.redhat.io/rhmtc/openshift-migration-rhel7-operator:v{mtc-version-z}):/controller-3.yml ./
7171
----
7272

73-
. Create the `MigrationController` object:
73+
. Create the `migration-controller` object:
7474
+
7575
[source,terminal]
7676
----
7777
$ oc create -f controller-3.yml
7878
----
7979

80+
. If your {product-title} version is 3.10 or earlier, set the security context constraint of the `migration-controller` service account to `anyuid` to enable direct image migration and direct volume migration:
81+
+
82+
[source,terminal]
83+
----
84+
$ oc adm policy add-scc-to-user anyuid -z migration-controller -n openshift-migration
85+
----
86+
8087
. Verify that the {mtc-short} pods are running:
8188
+
8289
[source,terminal]

0 commit comments

Comments
 (0)