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.

Bug 2018358

Summary: Make libvirt-daemon-driver-storage-core recommend dependence package of libguestfs
Product: Red Hat Enterprise Linux 9 Reporter: mxie <mxie>
Component: libguestfsAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED ERRATA QA Contact: YongkuiGuo <yoguo>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.0CC: chhu, hongzliu, juzhou, kkiwi, lersek, mzhan, rjones, smitterl, tyan, tzheng, virt-maint, vwu, xiaodwan, yoguo
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.46.0-4.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:28:37 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 2021-10-29 02:05:56 UTC
Description of problem:
Make libvirt-daemon-driver-storage-core recommend dependence package of libguestfs

Version-Release number of selected component (if applicable):
libguestfs-1.46.0-1.el9.x86_64
libvirt-daemon-driver-storage-core-7.8.0-1.el9.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Install virt-v2v, found libvirt-daemon-driver-storage-core is a weak dependence package


#yum install virt-v2v
     .......
Installing weak dependencies:
 libvirt-daemon-config-network            x86_64       7.8.0-1.el9                               libvirt_ci               15 k
 libvirt-daemon-driver-storage-core       x86_64       7.8.0-1.el9                               libvirt_ci              212 k
 virtio-win                               noarch       1.9.19-5.el9_b                            libvirt_ci              163 M


2.As libvirt-daemon-driver-storage-core is a weak dependence package, it can be removed without notification
#rpm -e libvirt-daemon-driver-storage-core

3.Virt-v2v will report a libvirt error when convert guest to libvirt pool if libvirt-daemon-driver-storage-core package is not installed

# 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 esx6.7-rhel8.4-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.4-x86_64 -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
[   2.0] Creating an overlay to protect the source from being modified
[   2.8] Opening the overlay
[  10.4] Inspecting the overlay
[  19.7] Checking for sufficient free disk space in the guest
[  19.7] Converting Red Hat Enterprise Linux 8.4 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 100.2] Mapping filesystem data to avoid copying unused and blank areas
[ 101.9] Closing the overlay
[ 102.2] Assigning disks to buses
[ 102.2] Checking if the guest needs BIOS or UEFI to boot
[ 102.2] Initializing the target -o libvirt -os default
virt-v2v: error: exception: libvirt: VIR_ERR_NO_SUPPORT: VIR_FROM_STORAGE:
this function is not supported by the connection driver:
virStoragePoolLookupByName

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

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

Actual results:
libvirt-daemon-driver-storage-core is a weak dependence package of libguestfs

Expected results:
As above description

Additional info:

Comment 2 Richard W.M. Jones 2021-10-29 12:47:23 UTC
Examining the brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1776821
and the libguestfs package on x86-64:
https://brewweb.engineering.redhat.com/brew/rpminfo?rpmID=10397402
we can see that it now Requires libvirt-daemon-driver-storage-core

Comment 5 YongkuiGuo 2021-11-01 02:49:16 UTC
Verified with package:
libguestfs-1.46.0-4.el9.x86_64

Steps:

1. On rhel9 host
# rpm -qR libguestfs | grep libvirt-daemon-driver-storage-core
libvirt-daemon-driver-storage-core

2.
# 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 esx6.7-rhel8.4-x86_64
[   0.0] Opening the source -i libvirt -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 esx6.7-rhel8.4-x86_64 -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
[   1.9] Creating an overlay to protect the source from being modified
[   2.7] Opening the overlay
[  10.0] Inspecting the overlay
[  16.6] Checking for sufficient free disk space in the guest
[  16.6] Converting Red Hat Enterprise Linux 8.4 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  76.1] Mapping filesystem data to avoid copying unused and blank areas
[  77.1] Closing the overlay
[  77.4] Assigning disks to buses
[  77.4] Checking if the guest needs BIOS or UEFI to boot
[  77.4] Initializing the target -o libvirt -os default
[  77.5] Copying disk 1/1 to /var/lib/libvirt/images/esx6.7-rhel8.4-x86_64-sda (raw)
    (100.00/100%)
[ 165.1] Creating output metadata
virt-v2v: warning: could not define libvirt domain: unsupported 
configuration: domain configuration does not support video model 'qxl'.
The libvirt XML is still available in ‘/tmp/v2vlibvirte322c6.xml’.  Try 
running ‘virsh -c qemu:///system define /tmp/v2vlibvirte322c6.xml’ 
yourself instead.
[ 165.1] Finishing off

It works fine.

Comment 7 errata-xmlrpc 2022-05-17 12:28:37 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: libguestfs), 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:2317