RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2018173 - There is nbdkit curl error info if convert a guest from VMware without vddk by administrator account
Summary: There is nbdkit curl error info if convert a guest from VMware without vddk b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virt-v2v
Version: 8.6
Hardware: x86_64
OS: Unspecified
urgent
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: mxie@redhat.com
URL:
Whiteboard:
: 2040772 (view as bug list)
Depends On:
Blocks: 2040772 2040778
TreeView+ depends on / blocked
 
Reported: 2021-10-28 12:29 UTC by mxie@redhat.com
Modified: 2023-04-03 00:10 UTC (History)
10 users (show)

Fixed In Version: virt-v2v-1.42.0-16.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2040772 (view as bug list)
Environment:
Last Closed: 2022-05-10 13:21:40 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-100946 0 None None None 2021-10-28 12:32:19 UTC
Red Hat Knowledge Base (Solution) 7005599 0 None None None 2023-04-03 00:10:39 UTC
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:22:38 UTC

Description mxie@redhat.com 2021-10-28 12:29:17 UTC
This bug was initially created as a copy of Bug #1848862

I am copying this bug because can reproduce the bug on rhel8.6 

Package version on rhel8.6
virt-v2v-1.42.0-15.module+el8.6.0+12861+13975d62.x86_64
libguestfs-1.44.0-4.module+el8.6.0+12969+f61072d9.x86_64
nbdkit-1.24.0-3.module+el8.6.0+12861+13975d62.x86_64
libvirt-libs-7.8.0-1.module+el8.6.0+12978+7d7a0321.x86_64
package qemi-img is not installed



Description of problem:
There is nbdkit curl error info if convert a guest from VMware without vddk by administrator account


Version-Release number of selected component (if applicable):
virt-v2v-1.42.0-4.module+el8.3.0+6798+ad6e66be.x86_64
libguestfs-1.42.0-2.module+el8.3.0+6798+ad6e66be.x86_64
libvirt-6.4.0-1.module+el8.3.0+6881+88468c00.x86_64
qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64
nbdkit-1.20.3-1.module+el8.3.0+6969+c553f4a0.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Convert a guest from VMware without vddk by administrator account
# virt-v2v  -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 -ip /home/passwd esx6.7-rhel8.2-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.2-x86_64
[   2.9] Creating an overlay to protect the source from being modified
[   3.6] Opening the overlay
[  48.9] Inspecting the overlay
[ 154.9] Checking for sufficient free disk space in the guest
[ 154.9] Estimating space required on target for each disk
[ 154.9] Converting Red Hat Enterprise Linux 8.2 (Ootpa) to run on KVM
nbdkit: curl[2]: error: pread: curl_easy_perform: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: pread: curl_easy_perform: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: pread: curl_easy_perform: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
nbdkit: curl[2]: error: problem doing HEAD request to fetch size of URL [https://10.73.73.141/folder/esx6.7-rhel8.2-x86%5f64/esx6.7-rhel8.2-x86%5f64-flat.vmdk?dcPath=data&dsName=esx6.7-matrix]: HTTP response code said error: The requested URL returned error: 503 Service Unavailable
^Cnbdkit: curl[2]: error: aborting sleep to shut down


2.Use virsh to connect vCenter server during v2v converting guest in step1, find vcenter server can't connected
]# virsh -c vpx://root.73.141/data/10.73.75.219/?no_verify=1
Enter root's password for 10.73.73.141: 
error: failed to connect to the hypervisor
error: internal error: HTTP response code 503 for call to 'RetrieveServiceContent'


3.Try to open the web of vSphere client during v2v converting guest in step1
, there is below error info in web interface

Could not connect to one or more vCenter Server systems:https://vm-73-141.lab.eng.pek2.redhat.com:443/sdk.


Actual results:
As above description

Expected results:
Can convert a guest from VMware without vddk by administrator account


Additional info:
1.Can't reproduce the problem if convert a guest from VMware without vddk by root account
# virt-v2v  -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 -ip /home/passwd 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
[   3.0] Creating an overlay to protect the source from being modified
[   3.6] Opening the overlay
[  42.5] Inspecting the overlay
[ 135.1] Checking for sufficient free disk space in the guest
[ 135.1] Estimating space required on target for each disk
[ 135.1] Converting Red Hat Enterprise Linux 8.2 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[2172.8] Mapping filesystem data to avoid copying unused and blank areas
[2175.4] Closing the overlay
[2175.5] Assigning disks to buses
[2175.5] Checking if the guest needs BIOS or UEFI to boot
[2175.5] Initializing the target -o libvirt -os default
[2175.5] Copying disk 1/1 to /var/lib/libvirt/images/esx6.7-rhel8.2-x86_64-sda (raw)
^C  (49.31/100%)


2.Can't reproduce the problem if convert a guest from VMware with vddk by administrator account
# virt-v2v  -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 -o rhv-upload -os nfs_data -of raw  -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA -oc https://hp-dl360eg8-03.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -oo rhv-cafile=/home/ca.pem -oo rhv-cluster=NFS -oo rhv-direct -ip /home/passwd esx6.7-rhel7.8-x86_64
[   1.1] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel7.8-x86_64 -it vddk  -io vddk-libdir=/home/vmware-vix-disklib-distrib -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA
[   3.0] Creating an overlay to protect the source from being modified
[   4.0] Opening the overlay
[  10.2] Inspecting the overlay
[  47.5] Checking for sufficient free disk space in the guest
[  47.5] Estimating space required on target for each disk
[  47.5] Converting Red Hat Enterprise Linux Server 7.8 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 228.9] Mapping filesystem data to avoid copying unused and blank areas
[ 230.2] Closing the overlay
[ 230.5] Assigning disks to buses
[ 230.5] Checking if the guest needs BIOS or UEFI to boot
[ 230.5] Initializing the target -o rhv-upload -oc https://hp-dl360eg8-03.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -os nfs_data
[ 231.9] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": "/tmp/v2vnbdkit.dfL23T/nbdkit4.sock", "file.export": "/" } (raw)
    (35.27/100%)

Comment 1 Richard W.M. Jones 2021-10-29 15:05:47 UTC
Proposed cherry pick:
https://github.com/libguestfs/virt-v2v/commit/cc9a507e2372b5b6408964f9c31a3bd526aabf7c

I'm testing the new build now.  TBH I was not able to reproduce the
bug using the old build, I'm not sure exactly why.

Comment 4 mxie@redhat.com 2021-11-17 10:51:57 UTC
Verify the bug with below builds:
virt-v2v-1.42.0-16.module+el8.6.0+13085+a15475d8.x86_64
libguestfs-1.44.0-4.module+el8.6.0+12969+f61072d9.x86_64
nbdkit-1.24.0-3.module+el8.6.0+12861+13975d62.x86_64
libvirt-libs-7.9.0-1.module+el8.6.0+13150+28339563.x86_64
qemu-img-6.1.0-4.module+el8.6.0+13039+4b81a1dc.x86_64

Steps:
1.Convert a guest from ESXi7.0 without vddk by administrator account and regular account

1.1 # virt-v2v  -ic vpx://vsphere.local%5cAdministrator.198.169/data/10.73.199.217/?no_verify=1 -ip /home/passwd esx7.0-win11-x86_64 -o rhv-upload -of qcow2 -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd  -os nfs_data -b ovirtmgmt
[   0.5] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.198.169/data/10.73.199.217/?no_verify=1 esx7.0-win11-x86_64
[   3.8] Creating an overlay to protect the source from being modified
[   4.9] Opening the overlay
[  44.3] Inspecting the overlay
[ 351.5] Checking for sufficient free disk space in the guest
[ 351.5] Estimating space required on target for each disk
[ 351.5] Converting Windows 10 Enterprise to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 512.3] Mapping filesystem data to avoid copying unused and blank areas
[ 514.1] Closing the overlay
[ 514.4] Assigning disks to buses
[ 514.4] Checking if the guest needs BIOS or UEFI to boot
[ 514.4] Initializing the target -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -os nfs_data
[ 515.7] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": "/tmp/v2vnbdkit.GvQxgo/nbdkit4.sock", "file.export": "/" } (qcow2)
^C  (27.21/100%)


1.2 # virt-v2v  -ic vpx://vsphere.local%5cmxie.198.169/data/10.73.199.217/?no_verify=1 -ip /home/passwd esx7.0-win11-x86_64 -o rhv-upload -of qcow2 -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd  -os nfs_data -b ovirtmgmt
[   0.6] Opening the source -i libvirt -ic vpx://vsphere.local%5cmxie.198.169/data/10.73.199.217/?no_verify=1 esx7.0-win11-x86_64
[   3.2] Creating an overlay to protect the source from being modified
[   4.2] Opening the overlay
[  32.9] Inspecting the overlay
[ 337.4] Checking for sufficient free disk space in the guest
[ 337.4] Estimating space required on target for each disk
[ 337.4] Converting Windows 10 Enterprise to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 493.1] Mapping filesystem data to avoid copying unused and blank areas
[ 494.8] Closing the overlay
[ 495.1] Assigning disks to buses
[ 495.1] Checking if the guest needs BIOS or UEFI to boot
[ 495.1] Initializing the target -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -os nfs_data
[ 496.5] Copying disk 1/1 to qemu URI json:{ "file.driver": "nbd", "file.path": "/tmp/v2vnbdkit.iUuN5G/nbdkit4.sock", "file.export": "/" } (qcow2)
^C  (5.04/100%)


2.Convert a guest from ESXi6.7 without vddk by administrator account and regular account

2.1 # virt-v2v  -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 -ip /home/passwd esx6.7-rhel8.4-x86_64 
[   0.0] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.4-x86_64
[   2.9] Creating an overlay to protect the source from being modified
[   4.1] Opening the overlay
[  42.2] Inspecting the overlay
[ 422.8] Checking for sufficient free disk space in the guest
[ 422.8] Estimating space required on target for each disk
[ 422.8] Converting Red Hat Enterprise Linux 8.4 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[1310.3] Mapping filesystem data to avoid copying unused and blank areas
[1312.8] Closing the overlay
[1313.1] Assigning disks to buses
[1313.1] Checking if the guest needs BIOS or UEFI to boot
[1313.1] Initializing the target -o libvirt -os default
......

2.2 # virt-v2v  -ic vpx://vsphere.local%5cmxie.73.141/data/10.73.75.219/?no_verify=1 -ip /home/passwd esx6.7-rhel8.4-x86_64 
[   0.0] Opening the source -i libvirt -ic vpx://vsphere.local%5cmxie.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.4-x86_64
[   2.8] Creating an overlay to protect the source from being modified
[   3.9] Opening the overlay
[  41.6] Inspecting the overlay
[ 423.5] Checking for sufficient free disk space in the guest
[ 423.5] Estimating space required on target for each disk
[ 423.5] Converting Red Hat Enterprise Linux 8.4 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[1310.9] Mapping filesystem data to avoid copying unused and blank areas
[1314.2] Closing the overlay
[1314.5] Assigning disks to buses
[1314.5] Checking if the guest needs BIOS or UEFI to boot
[1314.5] Initializing the target -o libvirt -os default
....

Result:
   There is no nbdkit curl error shown when convert a guest from VMware without vddk by administrator account and regular account, move the bug from ON_QA to VERIFIED

Comment 7 Peter Lauterbach 2022-01-12 17:13:51 UTC
On a call with the customer now, there are running RHV 4.4.9, which has RHEL 8.5.
@michal.skrivanek , please advise which version of RHV-H will pick up this specific fix.

Comment 20 Yash Mankad 2022-01-14 16:58:54 UTC
*** Bug 2040772 has been marked as a duplicate of this bug. ***

Comment 25 errata-xmlrpc 2022-05-10 13:21:40 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 (Moderate: virt:rhel and virt-devel:rhel security, 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/RHSA-2022:1759


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