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 2034240 - calling "get_disk_allocated" in "create_ovf" breaks the rhv-upload output plugin
Summary: calling "get_disk_allocated" in "create_ovf" breaks the rhv-upload output plugin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Laszlo Ersek
QA Contact: mxie@redhat.com
URL:
Whiteboard:
: 2035153 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-20 13:30 UTC by Laszlo Ersek
Modified: 2022-05-17 13:43 UTC (History)
8 users (show)

Fixed In Version: virt-v2v-1.45.95-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:41:56 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-106245 0 None None None 2021-12-20 13:32:32 UTC
Red Hat Product Errata RHEA-2022:2566 0 None None None 2022-05-17 13:42:10 UTC

Internal Links: 2027598

Description Laszlo Ersek 2021-12-20 13:30:10 UTC
*** Description of problem:

The fix for bug 2027598 (affecting the old RHV output plugin "rhv")
causes a regression with the more modern RHV output plugin "rhv-upload".

https://listman.redhat.com/archives/libguestfs/2021-December/msg00189.html

> [  74.2] Creating output metadata
> python3 '/tmp/v2v.WMq8Tk/rhv-upload-finalize.py'
> '/tmp/v2v.WMq8Tk/params6.json' finalizing transfer
> b03fe3ba-a4ff-4634-a0a0-10b3daba3cc2
> ...
> transfer b03fe3ba-a4ff-4634-a0a0-10b3daba3cc2 finalized in 2.118
> seconds
> ...
> nbdkit: debug: accepted connection
> ...
> nbdkit: python[4]: debug: python: close
> virt-v2v: error: exception: NBD.Error("nbd_block_status: request out
> of bounds: Invalid argument", 22)

*** Version-Release number of selected component (if applicable):
virt-v2v-1.45.95-1.el9

The regression is from upstream commit a2a4f7a09996 ("lib/create_ovf:
populate "actual size" attributes again", 2021-12-10).

Comment 1 Laszlo Ersek 2021-12-20 13:57:12 UTC
[v2v PATCH] output_rhv: restrict block status collection to the old RHV output
Message-Id: <20211220135640.12436-1-lersek>
https://listman.redhat.com/archives/libguestfs/2021-December/msg00211.html

Comment 2 Laszlo Ersek 2021-12-22 09:36:39 UTC
(In reply to Laszlo Ersek from comment #1)
> [v2v PATCH] output_rhv: restrict block status collection to the old RHV output
> Message-Id: <20211220135640.12436-1-lersek>
> https://listman.redhat.com/archives/libguestfs/2021-December/msg00211.html

Merged upstream as commit 07b12fe99fb9.

Comment 3 Laszlo Ersek 2021-12-23 08:16:49 UTC
*** Bug 2035153 has been marked as a duplicate of this bug. ***

Comment 10 mxie@redhat.com 2021-12-27 15:50:00 UTC
Test the bug with below builds:
virt-v2v-1.45.95-3.el9.x86_64
libguestfs-1.46.1-2.el9.x86_64
guestfs-tools-1.46.1-6.el9.x86_64
libvirt-libs-7.10.0-1.el9.x86_64
qemu-img-6.2.0-1.el9.x86_64
nbdkit-server-1.28.3-3.el9.x86_64
libnbd-1.10.2-1.el9.x86_64

Steps:
1.Convert a guest from ESXi7.0 to rhv4.4 via rhv-upload by v2v
1.1 # virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.2 -io  vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78  -ip /home/passwd  -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api  -op /home/rhvpasswd  -os nfs_data -b ovirtmgmt esx7.0-rhel8.5-x86_64
[   1.8] Opening the source
[   9.0] Inspecting the source
[  18.7] Checking for sufficient free disk space in the guest
[  18.7] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 120.8] Mapping filesystem data to avoid copying unused and blank areas
[ 121.8] Closing the overlay
[ 122.1] Assigning disks to buses
[ 122.1] Checking if the guest needs BIOS or UEFI to boot
[ 131.3] Copying disk 1/1
█ 100% [****************************************]
[ 647.5] Creating output metadata
[ 710.9] Finishing off

1.2 Check guest after v2v conversion, checkpoints of guest are passed

2.Convert a guest from ESXi6.7 to rhv4.4 via rhv-upload by v2v
2.1 #  virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.2 -io vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA  -ip /home/passwd  -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api  -op /home/rhvpasswd  -os nfs_data -b ovirtmgmt esx6.7-win11-x86_64
[   2.1] Opening the source
[   7.7] Inspecting the source
[  14.8] Checking for sufficient free disk space in the guest
[  14.8] Converting Windows 10 Enterprise to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  19.2] Mapping filesystem data to avoid copying unused and blank areas
[  20.7] Closing the overlay
[  21.0] Assigning disks to buses
[  21.0] Checking if the guest needs BIOS or UEFI to boot
[  41.1] Copying disk 1/1
█ 100% [****************************************]
[1187.4] Creating output metadata
[1251.0] Finishing off

2.2 Check guest after v2v conversion, checkpoints of guest are passed

Result:
   The bug has been fixed with virt-v2v-1.45.95-3.el9.x86_64

Comment 12 mxie@redhat.com 2022-01-20 02:20:54 UTC
Verify the bug with below builds:
virt-v2v-1.45.97-1.el9.x86_64
libguestfs-1.46.1-2.el9.x86_64
guestfs-tools-1.46.1-6.el9.x86_64
libvirt-libs-8.0.0-1.el9.x86_64
qemu-img-6.2.0-4.el9.x86_64
nbdkit-1.28.4-2.el9.x86_64
libnbd-1.10.3-1.el9.x86_64


Steps:
1.Convert a guest from ESXi7.0 to rhv4.4 via rhv-upload by v2v
# virt-v2v -ic vpx://root.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.2 -io  vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78  -ip /home/passwd  -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  esx7.0-win2019-x86_64
[   1.8] Opening the source
[   6.9] Inspecting the source
[  12.5] Checking for sufficient free disk space in the guest
[  12.5] Converting Windows Server 2019 Standard to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  23.0] Mapping filesystem data to avoid copying unused and blank areas
[  24.2] Closing the overlay
[  24.5] Assigning disks to buses
[  24.5] Checking if the guest needs BIOS or UEFI to boot
[  45.4] Copying disk 1/1
█ 100% [****************************************]
[2466.7] Creating output metadata
[2529.9] Finishing off


2.Convert guest from ESXi6.7 to rhv4.4 via rhv-uplod by v2v
# virt-v2v -i vmx -it ssh ssh://root.75.219/vmfs/volumes/esx6.7-matrix/esx6.7-rhel8.5-x86_64/esx6.7-rhel8.5-x86_64.vmx -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/esxpw
[   1.7] Opening the source
[  10.1] Inspecting the source
[  24.4] Checking for sufficient free disk space in the guest
[  24.4] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 162.1] Mapping filesystem data to avoid copying unused and blank areas
[ 164.6] Closing the overlay
[ 164.9] Assigning disks to buses
[ 164.9] Checking if the guest needs BIOS or UEFI to boot
[ 177.8] Copying disk 1/1
█ 100% [****************************************]
[ 890.3] Creating output metadata
[ 953.4] Finishing off


3. Check the guest after v2v conversion, the checkpoints of guest are passed except bug2042479

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

Comment 14 errata-xmlrpc 2022-05-17 13:41:56 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 (new packages: virt-v2v), 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/RHEA-2022:2566


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