Bug 2104720

Summary: Should suppress nbdkit error 'VDDK_PhoneHome' when use v2v convert a guest which has 41 disks 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: medium Docs Contact:
Priority: medium    
Version: 9.1CC: chhu, eblake, hongzliu, juzhou, kkiwi, lersek, mzhan, 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-07-07 02:51:54 UTC
Description of problem:
Should suppress nbdkit error 'VDDK_PhoneHome' when use v2v convert a guest which has 41 disks 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.7-1.el9.x86_64
libguestfs-1.48.4-1.el9.x86_64
guestfs-tools-1.48.2-4.el9.x86_64
nbdkit-server-1.30.6-2.el9.x86_64
libnbd-1.12.4-3.el9.x86_64
libvirt-libs-8.5.0-1.el9.x86_64
qemu-img-7.0.0-8.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 which has 41 disks from VMware to rhv via vddk7 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.5-x86_64-num41-disks
[   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.5-x86_64-num41-disks
[  46.3] Opening the source
[ 100.4] Inspecting the source
[ 112.9] Checking for sufficient free disk space in the guest
[ 112.9] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 238.1] Mapping filesystem data to avoid copying unused and blank areas
[ 242.0] Closing the overlay
[ 242.9] Assigning disks to buses
[ 242.9] Checking if the guest needs BIOS or UEFI to boot
[ 242.9] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
virt-v2v: error: this output module doesn't support copying more than 23 
disks

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

  virt-v2v -v -x [...]
[root@dell-per740-53 ~]# nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.
nbdkit: error: VDDK_PhoneHome: VddkVacPersistSessionData : Failed to persist session data at line 1420.


Actual results:
Pop up unexpected error

Expected results:
As above description

Additional info:
1.Can't reproduce the bug when convert a guest which has 41 disks via vddk7 and don't resolve vCenter7.0 hostname to 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


# 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.5-x86_64-num41-disks
[   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.5-x86_64-num41-disks
[  46.3] Opening the source
[  86.9] Inspecting the source
[  99.1] Checking for sufficient free disk space in the guest
[  99.1] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 220.4] Mapping filesystem data to avoid copying unused and blank areas
[ 224.2] Closing the overlay
[ 225.1] Assigning disks to buses
[ 225.1] Checking if the guest needs BIOS or UEFI to boot
[ 225.1] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
virt-v2v: error: this output module doesn't support copying more than 23 
disks

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

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


2.Can't reproduce the bug when convert a guest which has 41 disks via vddk6.7 and resolve vCenter7.0 hostname to 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

# 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.5-x86_64-num41-disks
[   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.5-x86_64-num41-disks
[  46.2] Opening the source
[  80.2] Inspecting the source
[  91.8] Checking for sufficient free disk space in the guest
[  91.8] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 211.3] Mapping filesystem data to avoid copying unused and blank areas
[ 215.1] Closing the overlay
[ 216.0] Assigning disks to buses
[ 216.0] Checking if the guest needs BIOS or UEFI to boot
[ 216.0] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
virt-v2v: error: this output module doesn't support copying more than 23 
disks

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

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

Comment 2 Richard W.M. Jones 2022-07-07 09:04:03 UTC
https://listman.redhat.com/archives/libguestfs/2022-July/029411.html

I was not able to reproduce the problem locally (not even the
original CEIP / PhoneHome messages) because of a DNS failure.
(I didn't edit /etc/hosts however, that might have something
to do with it.)

Comment 9 mxie@redhat.com 2022-07-11 07:34:23 UTC
Verify the bug with below builds:
virt-v2v-2.0.7-1.el9.x86_64
libguestfs-1.48.4-1.el9.x86_64
guestfs-tools-1.48.2-4.el9.x86_64
nbdkit-server-1.30.6-3.el9.x86_64
libnbd-1.12.4-3.el9.x86_64
libvirt-libs-8.5.0-1.el9.x86_64
qemu-img-7.0.0-8.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 which has 41 disks from VMware to rhv via vddk7 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.5-x86_64-num41-disks
[   0.2] Setting up the source: -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-rhel8.5-x86_64-num41-disks
[  46.6] Opening the source
[  95.7] Inspecting the source
[ 107.5] Checking for sufficient free disk space in the guest
[ 107.5] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 228.2] Mapping filesystem data to avoid copying unused and blank areas
[ 231.9] Closing the overlay
[ 232.8] Assigning disks to buses
[ 232.8] Checking if the guest needs BIOS or UEFI to boot
[ 232.8] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
virt-v2v: error: this output module doesn't support copying more than 23 
disks

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

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


Result:
   The bug has been fixed,  move the bug from ON_QA to VERIFIED

Comment 11 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