Bug 2047624 - [MTC UI] State cutover is missing migrateState field
Summary: [MTC UI] State cutover is missing migrateState field
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.7.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 1.7.0
Assignee: Pranav Gaikwad
QA Contact: Xin jiang
Steve Goodman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-28 07:10 UTC by Prasad Joshi
Modified: 2022-03-24 06:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-24 06:32:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1383 0 None open Bug 2049863: add migrateState & quiescePods to Cutover and add a message to the modal 2022-02-03 18:21:45 UTC
Red Hat Product Errata RHBA-2022:1043 0 None None None 2022-03-24 06:32:36 UTC

Description Prasad Joshi 2022-01-28 07:10:02 UTC
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

Comment 1 Pranav Gaikwad 2022-02-03 18:20:40 UTC
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.

Comment 2 Pranav Gaikwad 2022-02-07 14:21:00 UTC
https://github.com/konveyor/mig-ui/pull/1383 is merged. Moving this to MODIFIED.

Comment 6 ssingla 2022-02-17 14:42:26 UTC
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.

Comment 8 errata-xmlrpc 2022-03-24 06:32:27 UTC
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


Note You need to log in before you can comment on or make changes to this bug.