Bug 2106471

Summary: Targeted collection fails for a VM if its name is a sub string of another VM in the same namespace
Product: Migration Toolkit for Virtualization Reporter: Ilanit Stein <istein>
Component: Must-GatherAssignee: Sam Lucidi <slucidi>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: high Docs Contact: Richard Hoch <rhoch>
Priority: unspecified    
Version: 2.3.2CC: amastbau, fbladilo, jortel
Target Milestone: ---   
Target Release: 2.3.2   
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: 2022-07-21 13:48:39 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 Ilanit Stein 2022-07-12 18:25:57 UTC
Description of problem:
For a successful 20 VMs cold migration plan, Get logs for 2 out of 20 failed.  
The VM names are all the same with only the suffix different.

Sam Lucidi investigated and found:
"Targeted collection fails for a VM if its name is a sub string of another VM in the same namespace". 

Version-Release number of selected component (if applicable):
OCP-4.10/CNV-4.10/MTV-2.3.1/MTV-2.3.2

Additional info:
This bug is already fixed by Sam Lucidi - https://github.com/konveyor/forklift-must-gather/pull/54:
"This is due to grep returning multiple matches for the name. 
Add -w flag to do a whole-word comparison and avoid the collision."

Comment 1 Amos Mastbaum 2022-07-18 09:20:00 UTC
Verified
4.10.22	STAGE (4.10.3-22) Jul 14	2.3.2-11

Comment 4 errata-xmlrpc 2022-07-21 13:48:39 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.3.2 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/RHBA-2022:5679