Bug 1995197 - Targeted "must-gather" log collection for namespace with 2 "DataVolume" CRs combines CRs into one file, beginning with second CR
Summary: Targeted "must-gather" log collection for namespace with 2 "DataVolume" CRs c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Must-Gather
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.2.0
Assignee: Marek Aufart
QA Contact: Maayan Hadasi
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-18 15:49 UTC by Maayan Hadasi
Modified: 2021-12-09 19:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 19:20:56 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:08 UTC

Description Maayan Hadasi 2021-08-18 15:49:13 UTC
Description of problem:
When targeted gathering a plan/namespace that includes more than 2 DataVolume CRs - the DV CRs are combined to one file, starting from the 2nd one.

For example, mig-plan-cold plan contains 2 VMs, one of them has 2 disks:
$ oc adm must-gather --image=quay.io/konveyor/forklift-must-gather:latest -- PLAN=mig-plan-cold /usr/bin/targeted


$ tree must-gather/namespaces/openshift-mtv/
must-gather/namespaces/openshift-mtv/
├── crs
│   ├── datavolume
│   │   ├── 4c18a230-46d4-4df1-9791-ec3215f2359a-2000.yaml
│   │   └── 4c18a230-46d4-4df1-9791-ec3215f2359a-2001ddf5d922-6575-4687-b232-605fdc08ff91-2000.yaml


$ cat 4c18a230-46d4-4df1-9791-ec3215f2359a-2001ddf5d922-6575-4687-b232-605fdc08ff91-2000.yaml
Error from server (NotFound): datavolumes.cdi.kubevirt.io "4c18a230-46d4-4df1-9791-ec3215f2359a-2001ddf5d922-6575-4687-b232-605fdc08ff91-2000" not found



Version-Release number of selected component (if applicable):
MTV-2.1.0-52 iib 98758


How reproducible:
100%


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Marek Aufart 2021-08-20 14:11:00 UTC
Thanks for reporting this, could be provideded a CR of the virtual machine with multiple DVs or an example on running OpenShift cluster? (I wasn't able reproduce such situation) Thanks!

Comment 5 Marek Aufart 2021-11-09 10:12:53 UTC
Fix merged and backported https://github.com/konveyor/forklift-must-gather/pull/22

Comment 6 Ilanit Stein 2021-11-14 14:31:13 UTC
Fixed in MTV-2.2.0-84

Comment 7 Maayan Hadasi 2021-11-15 06:50:52 UTC
Verified as fixed

Versions:
MTV 2.2.0-84 / iib:133381
CNV 4.9.1-23 /iib: 133012

Comment 10 errata-xmlrpc 2021-12-09 19:20:56 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.