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 - Remove dependency on 'libvirt' RPM
Summary: Remove dependency on 'libvirt' RPM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-who
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: gaoshang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-14 16:01 UTC by Daniel Berrangé
Modified: 2016-12-01 00:32 UTC (History)
2 users (show)

Fixed In Version: virt-who-0.11-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:23:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0430 0 normal SHIPPED_LIVE Moderate: virt-who security, bug fix, and enhancement update 2015-03-05 14:52:46 UTC

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


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