Bug 1869454 - V2V shouldn't report error about 'libvirt authentication failed' when password file for ip option is not exist
Summary: V2V shouldn't report error about 'libvirt authentication failed' when passwor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: virt-v2v
Version: 8.3
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: rc
: 8.3
Assignee: Pino Toscano
QA Contact: liuzi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-18 03:18 UTC by mxie@redhat.com
Modified: 2020-11-17 17:51 UTC (History)
8 users (show)

Fixed In Version: virt-v2v-1.42.0-6.module+el8.3.0+7898+13f907d5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 17:50:55 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mxie@redhat.com 2020-08-18 03:18:42 UTC
Description of problem:
V2V shouldn't report error about 'libvirt authentication failed' when password file for ip option is not exist 


Version-Release number of selected component (if applicable):
virt-v2v-1.42.0-5.module+el8.3.0+7152+ab3787c3.x86_64
libguestfs-1.42.0-2.module+el8.3.0+6798+ad6e66be.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Convert a guest from VMware by v2v but the password file for ip option is not exist actually 
#  virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1   -ip /home/fake-file esx6.7-rhel8.2-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.2-x86_64
virt-v2v: error: exception: libvirt: VIR_ERR_AUTH_FAILED: VIR_FROM_AUTH:
authentication failed: Password request failed

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

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


2. Convert a guest from VMware by v2v but the password file for op option is not exist actually 
#  virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1  -ip /home/passwd esx6.7-rhel8.2-x86_64  -o rhv-upload -oo rhv-direct -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/fake-file -of raw -os nfs_data
Traceback (most recent call last):
  File "/var/tmp/rhvupload.5auzlP/rhv-upload-precheck.py", line 42, in <module>
    with open(params['output_password'], 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/fake-file'
virt-v2v: error: failed server prechecks, see earlier errors

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

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




Actual results:
As above description

Expected results:
V2V should report error info correctly when password file for ip option is not exist on rhel8.3 fast stream


Additional info:
1. V2V can report error info correctly when password file for ip option is not exist on rhel8.3 slow stream 


Packages:
virt-v2v-1.40.2-25.module+el8.3.0+7421+642fe24f.x86_64
libguestfs-1.40.2-25.module+el8.3.0+7421+642fe24f.x86_64

1.1 Convert a guest from VMware by v2v but the password file for ip option is not exist actually 
# virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1   -ip /home/fake-file esx6.7-rhel8.2-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.2-x86_64
virt-v2v: error: /home/fake-file: No such file or directory

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

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

1.2 Convert a guest from VMware by v2v but the password file for op option is not exist actually 
# virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1  -ip /home/passwd esx6.7-rhel8.2-x86_64  -o rhv-upload -oo rhv-direct -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/fake-file -of raw -os nfs_data
Traceback (most recent call last):
  File "/var/tmp/v2v.pMQZlh/rhv-upload-precheck.py", line 44, in <module>
    with open(params['output_password'], 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/fake-file'
virt-v2v: error: failed server prechecks, see earlier errors

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

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

Comment 4 liuzi 2020-09-08 08:41:36 UTC
Verify bug with builds:
virt-v2v-1.42.0-6.module+el8.3.0+7898+13f907d5.x86_64

Steps:
1. Convert a guest from VMware by v2v but the password file for ip option is not exist actually 
# virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1   -ip /home/fake-file esx6.7-rhel8.2-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.2-x86_64
virt-v2v: error: /home/fake-file: No such file or directory

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

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


Result: V2V can report error info correctly when password file for ip option is not exist.so change the bug from ON_QA to VERIFIED.

Comment 7 errata-xmlrpc 2020-11-17 17:50:55 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:8.3 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-2020:5137


Note You need to log in before you can comment on or make changes to this bug.