Bug 2027372

Summary: [Targeted must-gather] Improve error message on VirtualMachine.yaml that is not available when filtering by VM
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: Must-GatherAssignee: Marek Aufart <maufart>
Status: CLOSED ERRATA QA Contact: Igor Braginsky <ibragins>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2.0CC: fbladilo, istein, maufart
Target Milestone: ---   
Target Release: 2.3.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: 2022-04-04 18:03:42 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-11-29 13:43:19 UTC
Description of problem:
In case that a VirtualMachine CR is not available, for example if the VM migration fails, the yaml downloaded from VM page contains the following error message:
"Error from server (NotFound): namespaces "-o" not found"

For VirtualMachine yaml downloaded from plan page, the error message is more informative:
$ cat ./must-gather/namespaces/mguetta/crs/virtualmachine/mini-rhel7-mguetta2-mgmt.yaml
Error from server (NotFound): virtualmachines.kubevirt.io "mini-rhel7-mguetta2-mgmt" not found


Version-Release number of selected component (if applicable):
MTV 2.2.0-100 / iib:138977


How reproducible:
100%


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Marek Aufart 2022-01-10 09:54:26 UTC
PR was merged to main (there is no 2.3 release branch yet).

Comment 3 Igor Braginsky 2022-02-28 16:00:22 UTC
Verified on MTV 2.3.0-32

Comment 6 errata-xmlrpc 2022-04-04 18:03:42 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.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-2022:1183