Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 3.18 KB

premigration-testing.md

File metadata and controls

65 lines (43 loc) · 3.18 KB

Premigration testing

Installing MTC

Install MTC on your source and target clusters:

The following diagram describes how MTC uses Velero and Restic to back up data from the source cluster to the replication repository and then restores data from the replication repository to the target cluster:

MTC Architecture

Ensuring same MTC versions

The same MTC z-stream version must be installed on the source and target clusters.

Download and re-install the MTC Operator on the OpenShift 3 cluster just before you run a migration to ensure that you have the latest version.

The Operator Lifecycle Manager (OLM) pushes MTC Operator updates to the OpenShift 4 cluster automatically. On the OpenShift 3 cluster, however, the MTC Operator is installed manually and is not updated automatically.

Checking 'OLM Managed' setting

In the web console, check the 'OLM Managed' setting in the 'MigrationController' manifest of each cluster:

  • OpenShift 4 uses OLM:
    olm_managed: true
    
  • OpenShift 3 does not use OLM:
    olm_managed: false
    

Migrating a simple application

Migrate a simple application without a persistent volume (PV):

  1. Install a simple application without a PV on the source cluster.
  2. Migrate the application to the target cluster. You do not need to stage the migration.
  3. Validate the application on the target cluster.

Migrating an application with a persistent volume

Migrate an application with a PV:

  1. Install an application with an associated PV on the source cluster.
  2. Stage the migration one or more times. Staging reduces migration time and application downtime during migration.
  3. Migrate the application to the target cluster.
  4. Validate the application on the target cluster.

Removing a migrated application namespace

If you are performing multiple test migrations, remove the migrated application namespace from the target cluster after each test.