Description of problem: When executed state migration with cutover itβs not including the migrateState field in migmigration CR. Cutover is getting stuck for the intracluster migration. Version-Release number of selected component (if applicable): MTC 1.7.0 How reproducible: Always Steps to Reproduce: 1. Create a new project in source cluster $ oc new-project ocp-44516-statewarning-ns 2. Deploy an application with pvc cat <<EOF | oc create -f - apiVersion: v1 kind: PersistentVolumeClaim metadata: namespace: ocp-44516-statewarning-ns name: test-data spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi EOF cat <<EOF | oc create -f - apiVersion: apps/v1 kind: Deployment metadata: labels: app: state-warning-test name: state-warning-test namespace: ocp-44516-statewarning-ns spec: replicas: 1 selector: matchLabels: app: resize-test template: metadata: labels: app: resize-test spec: containers: - name: podtest imagePullPolicy: Always image: quay.io/openshifttest/alpine command: [ "/bin/sh", "-c", "--" ] args: - while true; do sleep 30; done; restartPolicy: Never volumeMounts: - name: testvolume mountPath: /data/test volumes: - name: testvolume persistentVolumeClaim: claimName: test-data EOF 3. Create an intra-cluster state migplan from UI 4. Execute cutover migration Actual results: Migmigration spec is missing migrateState field Expected results: Migmigration should have a migrateState field Additional info: State cutover is getting stuck at DIM step Status: Conditions: Category: Critical Last Transition Time: 2022-01-27T12:18:59Z Message: directImageMigration.srcMigClusterRef and directImageMigration.destMigClusterRef must reference different clusters Reason: NotDistinct Status: True Type: InvalidDestinationCluster Observed Digest: fd250dfdece64c36765572728d53b143535e2f39364d7d3cbe1dd1cab2e5778c
This will be solved as a result of this fix: https://github.com/konveyor/mig-ui/pull/1383 Moving this to POST manually citing the above PR.
https://github.com/konveyor/mig-ui/pull/1383 is merged. Moving this to MODIFIED.
Verified with MTC 1.7.0 pre stage build spec: migPlanRef: name: state namespace: openshift-migration migrateState: true quiescePods: true stage: false migrateState field present and intra cluster state migration is successful. Moving to verified.
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) 1.7.0 release advisory), 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-2022:1043