Bug 2025526

Summary: "Migration" CR information not found by targeted must-gather collection
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: Must-GatherAssignee: Fabien Dupont <fdupont>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.2.0CC: istein, maufart
Target Milestone: ---   
Target Release: 2.2.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-12-09 19:21:13 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 Maayan Hadasi 2021-11-22 12:54:37 UTC
Description of problem:
Looks like the targeted must-gather script looks for a not-existing Migration CR
In the following example, the Migration CR that should be gathered is mig-plan-mguetta-1637580488627

$ cat ./must-gather/namespaces/openshift-mtv/crs/migration/mig-plan-mguetta.yaml
Error from server (NotFound): migrations.forklift.konveyor.io "mig-plan-mguetta" not found


$ oc get migration
NAME                             READY   RUNNING   SUCCEEDED   FAILED   AGE
mig-plan-1637576052684           True              True                 89m
mig-plan-bug-ver-1637574838246   True                          True     109m
mig-plan-mguetta-1637580488627   True              True                 15m
mig-plan2-cold-1637577121823     True              True                 71m


Please note that when running MTV migration using CLI - the Migration CR's name can be anything (Using UI, the Migration CR's name starts with the associated Plan's name)


Version-Release number of selected component (if applicable):
MTV 2.2.0-90 / iib:136635


How reproducible:
100%


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Marek Aufart 2021-11-22 14:42:33 UTC
Fixed in https://github.com/konveyor/forklift-must-gather/pull/31 (the change causing this BZ was not backported to release-v2.2.0, so the revert will not be backported neiter).

Comment 2 Fabien Dupont 2021-11-26 15:48:51 UTC
Please verify with mtv-operator-bundle-container-2.2.0-100 / iib:138977, or later.

Comment 4 Marek Aufart 2021-11-28 16:17:18 UTC
Yes, the Plan CR should contain needed information related to the migration. Migration CR capture is not required (at least for now).

Comment 5 Maayan Hadasi 2021-11-29 07:56:33 UTC
(In reply to Marek Aufart from comment #4)
> Yes, the Plan CR should contain needed information related to the migration.
> Migration CR capture is not required (at least for now).

Thanks. Moving to VERIFIED

Versions:
MTV 2.2.0-100 / iib:138977
CNV 4.9.1-23 / iib:133012

Comment 8 errata-xmlrpc 2021-12-09 19:21:13 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 (MTV 2.2.0 Images), 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/RHEA-2021:5066