Chapter 7. Upgrading the Migration Toolkit for Virtualization
You can upgrade the MTV Operator by using the OpenShift Container Platform web console to install the new version.
You must upgrade to the next release without skipping a release, for example, from 2.0 to 2.1 or from 2.1 to 2.2.
Procedure
- In the OCP web console, click Operators → Installed Operators → Migration Tookit for Virtualization Operator → Subscription.
Change the update channel to release-v2.2.0.
See Changing update channel in the OpenShift Container Platform documentation.
Confirm that Upgrade status changes from Up to date to Upgrade available. If it does not, restart the
CatalogSource
pod:-
Note the catalog source, for example,
redhat-operators
. From the command line, retrieve the catalog source pod:
$ oc get pod -n openshift-marketplace | grep <catalog_source> 1
Delete the pod:
$ oc delete pod -n openshift-marketplace <catalog_source_pod>
Upgrade status changes from Up to date to Upgrade available.
If you set Update approval on the Subscriptions tab to Automatic, the upgrade starts automatically.
-
Note the catalog source, for example,
If you set Update approval on the Subscriptions tab to Manual, approve the upgrade.
See Manually approving a pending upgrade in the OpenShift Container Platform documentation.
Verify that the
forklift-ui
pod is in aReady
state before you log in to the web console:$ oc get pods -n openshift-mtv
Example output
NAME READY STATUS RESTARTS AGE forklift-controller-788bdb4c69-mw268 2/2 Running 0 2m forklift-operator-6bf45b8d8-qps9v 1/1 Running 0 5m forklift-ui-7cdf96d8f6-xnw5n 1/1 Running 0 2m