From edcf7c99aba4094d48155af310518749617f2279 Mon Sep 17 00:00:00 2001 From: Avital Pinnick Date: Sun, 31 Jan 2021 15:18:32 +0200 Subject: [PATCH] Update migration-controller SCC on OCP3.10/earlier --- modules/migration-upgrading-migration-tool-3.adoc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/migration-upgrading-migration-tool-3.adoc b/modules/migration-upgrading-migration-tool-3.adoc index 44c5970f975e..7c091a01da59 100644 --- a/modules/migration-upgrading-migration-tool-3.adoc +++ b/modules/migration-upgrading-migration-tool-3.adoc @@ -35,14 +35,14 @@ $ sudo podman cp $(sudo podman create registry.redhat.io/rhmtc/openshift-migrati $ oc replace --force -f operator.yml ---- -. If you are upgrading from version 1.1.2 or earlier, delete the `Restic` pods to apply the changes: +. If you are upgrading {mtc-short} 1.1.2 or earlier versions, delete the `Restic` pods to apply the changes: + [source,terminal] ---- $ oc delete pod ---- -. If you are upgrading from version 1.2 or later, scale the `migration-operator` deployment to `0` to stop the deployment: +. If you are upgrading {mtc-short} 1.2 or later versions, scale the `migration-operator` deployment to `0` to stop the deployment: + [source,terminal] ---- @@ -70,13 +70,20 @@ $ oc -o yaml -n openshift-migration get deployment/migration-operator | grep ima $ sudo podman cp $(sudo podman create registry.redhat.io/rhmtc/openshift-migration-rhel7-operator:v{mtc-version-z}):/controller-3.yml ./ ---- -. Create the `MigrationController` object: +. Create the `migration-controller` object: + [source,terminal] ---- $ oc create -f controller-3.yml ---- +. 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: ++ +[source,terminal] +---- +$ oc adm policy add-scc-to-user anyuid -z migration-controller -n openshift-migration +---- + . Verify that the {mtc-short} pods are running: + [source,terminal]