Bug 1995197

Summary: Targeted "must-gather" log collection for namespace with 2 "DataVolume" CRs combines CRs into one file, beginning with second CR
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: Must-GatherAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.1.0CC: apinnick, fdupont, 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:20:56 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-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