Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Descriptionmxie@redhat.com
2022-05-10 12:45:27 UTC
Description of problem:
Suppress nbdkit vddk error when convert guest from vCenter7.0 via vddk7 and resolve vCenter7.0 hostname to ip address to /etc/hosts
Version-Release number of selected component (if applicable):
virt-v2v-2.0.4-1.el9.x86_64
libguestfs-1.48.1-1.el9.x86_64
guestfs-tools-1.48.0-1.el9.x86_64
nbdkit-server-1.30.4-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64
libvirt-libs-8.3.0-1.el9.x86_64
qemu-img-7.0.0-2.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Add vCenter7.0 hostname and ip address to /etc/hosts
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.73.227.27 bootp-73-227-27.lab.eng.pek2.redhat.com
2.Convert a guest from vCenter7.0 via vddk7.0.3 by v2v
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -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 -ip /home/passwd esx7.0-rhel8.6-x86_64
[ 0.1] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-rhel8.6-x86_64
[ 1.9] Opening the source
nbdkit: vddk[1]: error: VDDK_PhoneHome: Unable to load configuration options from /tmp/vmware-root/vacConfig.conf.
[ 7.4] Inspecting the source
[ 17.5] Checking for sufficient free disk space in the guest
[ 17.5] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 117.4] Mapping filesystem data to avoid copying unused and blank areas
[ 118.3] Closing the overlay
[ 118.6] Assigning disks to buses
[ 118.6] Checking if the guest needs BIOS or UEFI to boot
[ 118.6] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 139.9] Copying disk 1/1
█ 100% [****************************************]
[ 424.5] Creating output metadata
[ 446.3] Finishing off
Expected results:
As above description
Additional info:
1.There is NO nbdkit vddk error when convert guest via vddk6 and resolve vCenter7.0 hostname to ip address to /etc/hosts
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk6.7 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -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 -ip /home/passwd esx7.0-rhel8.6-x86_64
[ 0.0] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-rhel8.6-x86_64
[ 1.8] Opening the source
[ 6.7] Inspecting the source
[ 17.1] Checking for sufficient free disk space in the guest
[ 17.1] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 115.9] Mapping filesystem data to avoid copying unused and blank areas
[ 116.7] Closing the overlay
[ 117.0] Assigning disks to buses
[ 117.0] Checking if the guest needs BIOS or UEFI to boot
[ 117.0] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 130.1] Copying disk 1/1
█ 100% [****************************************]
[ 492.9] Creating output metadata
[ 507.5] Finishing off
Comment 5Richard W.M. Jones
2022-05-10 14:00:07 UTC
Fixed in commit 270ee75ede3881f32a7c21264676851dcf0969be.
Comment 6Richard W.M. Jones
2022-05-12 18:50:22 UTC
The fix for this bug was actually done in nbdkit.
Comment 8Richard W.M. Jones
2022-05-13 07:32:28 UTC
Tingting, could you QA ack this one again pls? It lost it when I moved the component.
Verify the bug with below builds:
virt-v2v-2.0.5-1.el9.x86_64
libguestfs-1.48.2-2.el9.x86_64
guestfs-tools-1.48.1-1.el9.x86_64
libvirt-libs-8.3.0-1.el9.x86_64
qemu-img-7.0.0-3.el9.x86_64
nbdkit-server-1.30.5-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64
Steps:
1. Add vCenter7.0 hostname and ip address to /etc/hosts
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.73.227.27 bootp-73-227-27.lab.eng.pek2.redhat.com
2.Convert a guest from vCenter7.0 via vddk7.0.3 by v2v
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -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 -ip /home/passwd esx7.0-rhel9.1-x86_64
[ 0.0] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-rhel9.1-x86_64
[ 1.8] Opening the source
[ 7.7] Inspecting the source
[ 13.8] Checking for sufficient free disk space in the guest
[ 13.8] Converting Red Hat Enterprise Linux 9.1 Beta (Plow) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 114.7] Mapping filesystem data to avoid copying unused and blank areas
[ 115.6] Closing the overlay
[ 115.9] Assigning disks to buses
[ 115.9] Checking if the guest needs BIOS or UEFI to boot
[ 115.9] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 129.1] Copying disk 1/1
█ 100% [****************************************]
[ 256.0] Creating output metadata
[ 275.7] Finishing off
3. Check the guest after finishing conversion, the checkpoints of guest are passed
Result:
The bug has been fixed, move 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 (nbdkit 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-2022:7945