Bug 2047624
| Summary: | [MTC UI] State cutover is missing migrateState field | ||
|---|---|---|---|
| Product: | Migration Toolkit for Containers | Reporter: | Prasad Joshi <prajoshi> |
| Component: | UI | Assignee: | Pranav Gaikwad <pgaikwad> |
| Status: | CLOSED ERRATA | QA Contact: | Xin jiang <xjiang> |
| Severity: | urgent | Docs Contact: | Steve Goodman <sgoodman> |
| Priority: | urgent | ||
| Version: | 1.7.0 | CC: | ernelson, rjohnson, ssingla |
| Target Milestone: | --- | ||
| Target Release: | 1.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-24 06:32:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 |
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