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 [...]
Fixed upstream: https://github.com/libguestfs/virt-v2v/commit/76f9f3a0603f33c85d681fe13e24516331c6aea7
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.
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