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 2151882 - Include virt-v2v fix in RHEL 9.0-z: convert: If listing RPM applications fails, rebuild DB and retry
Summary: Include virt-v2v fix in RHEL 9.0-z: convert: If listing RPM applications fail...
Keywords:
Status: CLOSED DUPLICATE of bug 1817050
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 2151881 (view as bug list)
Depends On:
Blocks: 2152088 2152089
TreeView+ depends on / blocked
 
Reported: 2022-12-08 12:54 UTC by Richard W.M. Jones
Modified: 2022-12-09 07:28 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2152088 2152089 (view as bug list)
Environment:
Last Closed: 2022-12-09 07:28:07 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-141669 0 None None None 2022-12-08 13:07:09 UTC

Description Richard W.M. Jones 2022-12-08 12:54:27 UTC
This bug was initially created as a copy of Bug #2089623

Description of problem:

The following fix was included in RHEL 8.6-z but is not
present in RHEL 9.0-z.  (It is fixed in RHEL 9.1 and 9.2)

https://bugzilla.redhat.com/show_bug.cgi?id=2089623#c12
https://github.com/libguestfs/virt-v2v/commit/31bf5db25bcfd8a9f5a48cc0523abae28861de9a

How reproducible:
100%

Steps to Reproduce:

1.Convert a rhel8.6 guest from VMware via vddk7.0.3 by v2v
#  virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -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 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -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
[   1.6] Creating an overlay to protect the source from being modified
[   2.3] Opening the overlay
[   6.9] Inspecting the overlay
[  46.0] Checking for sufficient free disk space in the guest
[  46.0] Estimating space required on target for each disk
[  46.0] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

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

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


2.Convert a rhel8.6 guest from VMware via vddk6.7 by v2v

#  virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -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 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -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
[   1.6] Creating an overlay to protect the source from being modified
[   2.2] Opening the overlay
[   9.5] Inspecting the overlay
[  48.5] Checking for sufficient free disk space in the guest
[  48.5] Estimating space required on target for each disk
[  48.5] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

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

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


3.Convert a rhel8.6 guest from VMware without vddk by v2v
virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64  -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64

[   2.6] Creating an overlay to protect the source from being modified
[   3.6] Opening the overlay
[  35.0] Inspecting the overlay
[ 296.6] Checking for sufficient free disk space in the guest
[ 296.6] Estimating space required on target for each disk
[ 296.6] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

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

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


Actual results:
As above description

Expected results:
Virt-v2v can convert rhel8.6 guest from VMware on rhel8.6

Additional info:
1.Virt-v2v can convert rhel8.5 guest from VMware on rhel8.6

# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.5-x86_64 -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 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.5-x86_64 -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
[   1.6] Creating an overlay to protect the source from being modified
[   2.3] Opening the overlay
[   6.6] Inspecting the overlay
[  14.0] Checking for sufficient free disk space in the guest
[  14.0] Estimating space required on target for each disk
[  14.0] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  87.2] Mapping filesystem data to avoid copying unused and blank areas
[  87.7] Closing the overlay
[  87.9] Assigning disks to buses
[  87.9] Checking if the guest needs BIOS or UEFI to boot
[  87.9] Initializing the target -o libvirt -os default
[  88.0] Copying disk 1/1 to /var/lib/libvirt/images/esx7.0-rhel8.5-x86_64-sda (raw)
    (60.22/100%)


2.Can't reproduce the bug on rhel9.1
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
nbdkit-server-1.30.5-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64

Comment 2 Richard W.M. Jones 2022-12-08 13:08:15 UTC
*** Bug 2151881 has been marked as a duplicate of this bug. ***

Comment 6 Yash Mankad 2022-12-09 07:28:07 UTC
Already fixed in RHEL-9.1: https://bugzilla.redhat.com/show_bug.cgi?id=1817050

*** This bug has been marked as a duplicate of bug 1817050 ***


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