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 1065421

Summary: Remove dependency on 'libvirt' RPM
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Berrangé <berrange>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ovasik, shihliu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-who-0.11-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:23:04 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 Daniel Berrangé 2014-02-14 16:01:42 UTC
Description of problem:
The 'virt-who' package has the following deps

libvirt
libvirt-python

The libvirt-python dep is obviously fine, since the app uses the python module, but the 'libvirt' dep is pretty questionable.

The 'libvirt' RPM is a monolithic meta package that pulls in every single libvirt sub-RPM across all enabled libvirt hypervisor drivers. This is almost never want you want todo. This package only exists for upgrade compatibility with older libvirt RPM layouts.

Applications are recommended to instead depend on the precise libvirt hypervisor drivers they wish to operate with. eg one of the following

libvirt-daemon-qemu
libvirt-daemon-kvm
libvirt-daemon-lxc
libvirt-daemon-uml
libvirt-daemon-xen
libvirt-daemon-vbox

For RHEL only the ones available for  kvm and lxc.

For virt-who I'd probably argue that it shouldn't depend on any of the libvirt drivers at all. IIUC its goal is to report guests which are running via libvirt on a host. If there are any guests running, then something/someone else will have already installed one or more of the libvirt-daemon-XXX RPMs. If there are no guests running, then there's no need for it to pull in any libvirt-daemon-XXX RPMs, since the result will be 'no guests' no matter what.

So I'd say it should only depend on libvirt-python, and thus not pull in stuff that the admin doesn't want to have.

Version-Release number of selected component (if applicable):
virt-who-0.8-12.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. yum install virt-who
2.
3.

Actual results:
Pulls in 'libvirt' RPM

Expected results:
Should not pull in 'libvirt' RPM, and probably not pull in any libvirt-daemon-XXX RPMs either.

Additional info:

Comment 4 Radek Novacek 2014-09-11 10:46:23 UTC
This has been fixed by rebase to virt-who-0.11-1.el7, see bug 1122489.

Comment 6 Liushihui 2014-10-30 08:31:29 UTC
Verify it on virt-who-0.11-2.el7.noarch.

Verified process:
1.Check virt-who hasn't been installed.
[root@dhcp-129-187 ~]# rpm -q virt-who
package virt-who is not installed
2. Install virt-who package.it only dependent on libvirt-python
[root@dhcp-129-187 ~]# yum install virt-who
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package virt-who.noarch 0:0.11-2.el7 will be installed
--> Processing Dependency: libvirt-python for package: virt-who-0.11-2.el7.noarch
--> Processing Dependency: python-suds for package: virt-who-0.11-2.el7.noarch
--> Running transaction check
---> Package libvirt-python.x86_64 0:1.2.8-4.el7 will be installed
---> Package python-suds.noarch 0:0.4.1-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved

============================================================================================================================================
 Package                               Arch                          Version                            Repository                     Size
============================================================================================================================================
Installing:
 virt-who                              noarch                        0.11-2.el7                         server                         94 k
Installing for dependencies:
 libvirt-python                        x86_64                        1.2.8-4.el7                        server                        289 k
 python-suds                           noarch                        0.4.1-5.el7                        server                        204 k

Transaction Summary
============================================================================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 587 k
Installed size: 2.4 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libvirt-python-1.2.8-4.el7.x86_64.rpm                                                                         | 289 kB  00:00:00     
(2/3): python-suds-0.4.1-5.el7.noarch.rpm                                                                            | 204 kB  00:00:00     
(3/3): virt-who-0.11-2.el7.noarch.rpm                                                                                |  94 kB  00:00:00     
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                       1.9 MB/s | 587 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : libvirt-python-1.2.8-4.el7.x86_64                                                                                        1/3 
  Installing : python-suds-0.4.1-5.el7.noarch                                                                                           2/3 
  Installing : virt-who-0.11-2.el7.noarch                                                                                               3/3 
server/productid                                                                                                     | 1.6 kB  00:00:00     
  Verifying  : virt-who-0.11-2.el7.noarch                                                                                               1/3 
  Verifying  : python-suds-0.4.1-5.el7.noarch                                                                                           2/3 
  Verifying  : libvirt-python-1.2.8-4.el7.x86_64                                                                                        3/3 

Installed:
  virt-who.noarch 0:0.11-2.el7                                                                                                              

Dependency Installed:
  libvirt-python.x86_64 0:1.2.8-4.el7                                    python-suds.noarch 0:0.4.1-5.el7                                   

Complete!
[root@dhcp-129-187 ~]# rpm -q virt-who

3. Check the virt-who, it has been installed successfully
[root@dhcp-129-187 ~]# rpm -q virt-who
virt-who-0.11-2.el7.noarch

Comment 8 errata-xmlrpc 2015-03-05 10:23:04 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, 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://rhn.redhat.com/errata/RHSA-2015-0430.html