Description of problem: When the migration controller is deployed in the source cluster and the remote (target) cluster has a different MTC version installed, the migration plan is not showing any warning and it should do it. When the migration controller is deployed in the target cluster this warning is reported properly. Version-Release number of selected component (if applicable): MTC 1.4.2 stage. How reproducible: Always Steps to Reproduce: 1. Install MTC like this Target cluster (4.5): MTC 1.3.2 Source cluster (3.11): MTC 1.4.2 (Controller) 2. Create a namespace in the source cluster oc new-project empty-namespace 3. Create a migration plan to migrate this namespace from source to target cluster. Actual results: We can see a warning in the Target cluster saying that the MTC version cannot be found lastTransitionTime: 2021-03-08T17:18:00Z message: MTC operator version lookup failed on cluster target-cluster. Key OPERATOR_VERSION not found in configmap openshift-migration/migration-cluster-config. Ensure that all clusters are running the same MTC Operator version. reason: VersionNotFound But the migration plan does not show any warning once it is created. Expected results: The migration plan should report a warning saying that the target cluster's version cannot be found. Additional info: When the migration controller is deployed in the target cluster the warning is reported properly.
Verified using MTC 1.4.2, AWS OCP3.11(controller)->AWS OCP4.5 openshift-migration-rhel7-operator@sha256:9e8990d8c4b54b2d72122ac4cbe5d76ad073c44f1295b4f4128ed767de511230 - name: MIG_CONTROLLER_REPO value: openshift-migration-controller-rhel8@sha256 - name: MIG_CONTROLLER_TAG value: fa5481c45948eaed1a948d0f43dd122e0a94c2aec2612724fc8b2e92b190d4f5 The migration plan shows now this warning, as expected: - category: Warn lastTransitionTime: "2021-03-09T13:20:22Z" message: Cluster operator versions do not match. Source, destination, and host clusters must all have the same MTC operator version. reason: Conflict status: "True" type: ClusterVersionMismatch Moved to VERIFIED status.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Migration Toolkit for Containers (MTC) image release advisory 1.4.2), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:0814