Bug 2083617

Summary: Suppress nbdkit vddk error when convert guest from vCenter7.0 via vddk7 and resolve vCenter7.0 hostname to ip address to /etc/hosts
Product: Red Hat Enterprise Linux 9 Reporter: mxie <mxie>
Component: nbdkitAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: mxie <mxie>
Severity: low Docs Contact:
Priority: low    
Version: 9.1CC: chhu, eblake, hongzliu, juzhou, lersek, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: nbdkit-1.30.8-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:50:17 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 mxie@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 5 Richard W.M. Jones 2022-05-10 14:00:07 UTC
Fixed in commit 270ee75ede3881f32a7c21264676851dcf0969be.

Comment 6 Richard W.M. Jones 2022-05-12 18:50:22 UTC
The fix for this bug was actually done in nbdkit.

Comment 8 Richard 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.

Comment 11 mxie@redhat.com 2022-05-16 10:46:45 UTC
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

Comment 13 errata-xmlrpc 2022-11-15 09:50:17 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 (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