Bug 1879882 - [MTC] Migration analytic data are wrong after the migration controller is deleted
Summary: [MTC] Migration analytic data are wrong after the migration controller is del...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 1.3.0
Assignee: Jason Montleon
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-17 09:28 UTC by Sergio
Modified: 2020-09-30 18:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-30 18:43:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4148 0 None None None 2020-09-30 18:43:19 UTC

Description Sergio 2020-09-17 09:28:11 UTC
Description of problem:
When the migration controller pod is deleted, and it is recreated again, the data in the MigAnalytic resources is corrupted.

Version-Release number of selected component (if applicable):
MTC 1.3

How reproducible:
Always

Steps to Reproduce:
1. Create an application in a namespace

oc new-project bztest
oc new-app mysql-persistent

2. Create a migration plan with name "bztest" for this namespace

3. Check the analytic data for this migration plan

$ oc get miganalytic bztest
NAME     READY   PLAN     PROGRESS   RESOURCES   IMAGES   IMAGESIZE   PVS   PVCAPACITY
bztest   True    bztest   100        53          0        0           1     1Gi

4. Delete the migration controller pod

$ oc delete pods -l control-plane

5. Wait until the pod is created again

$ oc get pods -l control-plane
NAME                                    READY   STATUS    RESTARTS   AGE
migration-controller-59f565d48d-s5rvk   2/2     Running   0          29s



Actual results:
The analytic data has been corrupted, and every time we reset the controller, new data is added to the existing anaylytic.


$ oc get miganalytic bztest
NAME     READY   PLAN     PROGRESS   RESOURCES   IMAGES   IMAGESIZE   PVS   PVCAPACITY
bztest   True    bztest   100        112         0        0           2     2Gi



Expected results:
The analytic data should be the right one after the migrationcontroller is restarted


Additional info:

Comment 1 Jason Montleon 2020-09-17 12:32:43 UTC
https://github.com/konveyor/mig-controller/pull/668

Comment 5 Xin jiang 2020-09-23 14:36:17 UTC
verified with MTC 1.3.0.

Comment 9 errata-xmlrpc 2020-09-30 18:43:07 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) Tool image release advisory 1.3.0), 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-2020:4148


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