Bug 1995183

Summary: All VirtualMachineImport CRs are combined to one file
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: Must-GatherAssignee: Marek Aufart <maufart>
Status: CLOSED CURRENTRELEASE 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-11-04 13:14:03 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:22:01 UTC
Description of problem:
When targeted gathering by plan/namespace - all VirtualMachineImport CRs are combined into one file

For example, targeted gathering a plan with 2 VMs:
$ 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/crs/virtualmachineimport/
must-gather/namespaces/openshift-mtv/crs/virtualmachineimport/
└── mig-plan-cold-vm-7485-bqpwsmig-plan-cold-vm-7480-jbcb2.yaml


$ cat mig-plan-cold-vm-7485-bqpwsmig-plan-cold-vm-7480-jbcb2.yaml
Error from server (NotFound): virtualmachineimports.v2v.kubevirt.io "mig-plan-cold-vm-7485-bqpwsmig-plan-cold-vm-7480-jbcb2" 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 Fabien Dupont 2021-11-04 13:14:03 UTC
With MTV 2.2.0, we don't use VMIO anymore, so we don't expect to collect any VMImport CR.