Bug 2162441

Summary: Incorrect error info for '-o kubevirt' output
Product: Red Hat Enterprise Linux 9 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-v2vAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Xiaodai Wang <xiaodwan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.2CC: lersek, mxie, rjones, tyan, tzheng, vwu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-v2v-2.2.0-5.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:45:47 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 Xiaodai Wang 2023-01-19 15:23:26 UTC
Description of problem:
Incorrect error info for '-o kubevirt' output

Version-Release number of selected component (if applicable):
virt-v2v-2.2.0-1.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
# virt-v2v -i disk /var/lib/libvirt/images/a.img -o kubevirt -op /tmp/a
[   0.0] Setting up the source: -i disk /var/lib/libvirt/images/a.img
virt-v2v: error: -o local: -op option cannot be used in this output mode

Actual results:
as above steps.

Expected results:
'-o local' should be '-o kubevirt'.

Additional info:

Comment 2 Xiaodai Wang 2023-01-28 10:01:11 UTC
Verified with virt-v2v-2.2.0-2.el9.x86_64, the error message is correct now.

# virt-v2v -i disk /var/lib/libvirt/images/server.qcow2 -o kubevirt -op /tmp/a
[   0.0] Setting up the source: -i disk /var/lib/libvirt/images/server.qcow2
virt-v2v: error: -o kubevirt: -op option cannot be used in this output mode

Comment 6 tingting zheng 2023-02-01 10:33:33 UTC
Test the bug with:
virt-v2v-2.2.0-3.el9.x86_64

# virt-v2v -i disk /var/lib/libvirt/images/server.qcow2 -o kubevirt -op /tmp/a
[   0.1] Setting up the source: -i disk /var/lib/libvirt/images/server.qcow2
virt-v2v: error: -o kubevirt: -op option cannot be used in this output mode

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]

The error info is correct, so move the bug to VERIFIED.

Comment 8 errata-xmlrpc 2023-05-09 07:45:47 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 (virt-v2v bug fix and enhancement update), 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-2023:2313