Bug 2025526 - "Migration" CR information not found by targeted must-gather collection
Summary: "Migration" CR information not found by targeted must-gather collection
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Must-Gather
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.2.0
Assignee: Fabien Dupont
QA Contact: Maayan Hadasi
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-22 12:54 UTC by Maayan Hadasi
Modified: 2021-12-09 19:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 19:21:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:5066 0 None None None 2021-12-09 19:21:18 UTC

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


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