Bug 2004601

Summary: Migration plan status on "Migration plans" page is "Ready" after migration completed with warnings
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: UIAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.6.0CC: ernelson, ibolton, prajoshi, rjohnson, ssingla, xjiang
Target Milestone: ---   
Target Release: 1.6.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: 2021-09-29 14:36:19 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:

Description Sergio 2021-09-15 16:14:11 UTC
Description of problem:
When the migration plan is executed with warnings the status is reported as "Ready" with a warning icon next to the text. The right status should say that the migration was executed with warnings, and not that the migration is ready.

Version-Release number of selected component (if applicable):
SOURCE CLUSTER: AWS 3.11 (MTC 1.5.1) 
TARGET CLUSTER: ROKS 4.7 (MTC 1.6.0) (CONTROLLER + UI)
REPLICATION REPOSITORY: AWS S3

How reproducible:
Always

Steps to Reproduce:
1. I source cluster deploy an application with a PVC

oc new-project bz-test
oc new-app django-psql-persistent

2. Configure a wrong option for rsync in the migrationcontroller resource

oc edit migrationcontroller

  spec:
    rsync_opt_extras: "--fake"


3. Create a migration plan to migrate the bz-test namespace created in step1, use DIM + DVM

4. Execute the migration

Actual results:
The migration is executed with warnings, but the status in the migplan is reported as "Ready" with a warning icon beside the text.

Expected results:
The status should report that there were warnings in the migration execution, and it should not be "Ready" status.

Additional info:

Comment 5 Sergio 2021-09-16 12:56:10 UTC
Verified using:
TARGET CLUSTER: AWS 4.9 (MTC 1.6.0) (CONTROLLER + UI)
SOURCE CLUSTER: AWS 3.11 (MTC 1.5.1)
REPLICATION REPOSITORY: AWS S3

openshift-migration-rhel8-operator@sha256:a82ed90172838ed4f9e33a8c72fee584bdeb8773b9b580c11c36f4e575c0e6da
   - name: MIG_CONTROLLER_REPO
      value: openshift-migration-controller-rhel8@sha256
    - name: MIG_CONTROLLER_TAG
      value: 3b5efa9c8197fe0313a2ab7eb184d135ba9749c9a4f0d15a6abb11c0d18b9194
    - name: MIG_UI_REPO
      value: openshift-migration-ui-rhel8@sha256
    - name: MIG_UI_TAG
      value: 854fc0192c4494e2a555f0a8b984b9d84244f77ccb75bcb72529936e24e5211a


The status now is "Migration completed with warnings".

Moved to VERIFIED.

Comment 7 errata-xmlrpc 2021-09-29 14:36:19 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 (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix update), 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/RHSA-2021:3694