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 1194503 - Dependency problem due to glusterfs-api depending on glusterfs instead of only glusterfs-libs [rhel-6]
Summary: Dependency problem due to glusterfs-api depending on glusterfs instead of onl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: glusterfs
Version: 6.6
Hardware: Unspecified
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Niels de Vos
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1075802 1195947
Blocks: 1172231 1194508 1219793 1281259
TreeView+ depends on / blocked
 
Reported: 2015-02-20 01:16 UTC by Terry Bowling
Modified: 2016-05-10 19:38 UTC (History)
13 users (show)

Fixed In Version: glusterfs-3.7.5-19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1194508 1219793 (view as bug list)
Environment:
Last Closed: 2016-05-10 19:38:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1353853 0 None None None Never
Red Hat Product Errata RHBA-2016:0747 0 normal SHIPPED_LIVE glusterfs bug fix and enhancement update 2016-05-10 22:31:28 UTC

Description Terry Bowling 2015-02-20 01:16:39 UTC
Description of problem:

There has been a dependency change in RHEL 6.6 and 7.1 Beta in which glusterfs-api now depends on glusterfs instead of only glusterfs-libs.

This is a significant issue because systems using the kvm hypervisor need the qemu-kvm package installed which has a dependency on glusterfs-api that cannot be removed according to bz1028802.  This new change now pulls in the glusterfs daemon and client binaries and caused it to inherit the logrotate config error from bz1171865.  This all happens even if the customer has no desire to use the glusterfs capabilities.

This is a serious problem for customers, particularly embedded vendor partners, who must use a minimal installation to limit their exposure to bugs and security vulnerabilities.  This 

Version-Release number of selected component (if applicable):

qemu-kvm-0.12.1.2-2.448.el6_6.x86_64
glusterfs-3.6.0.29-2.el6.x86_64
glusterfs-api-3.6.0.29-2.el6.x86_64
glusterfs-libs-3.6.0.29-2.el6.x86_64

How reproducible:

yum install qemu-kvm


Actual results:

The following packages are installed:

	glusterfs-3.6.0.29-2.el6.x86_64
	glusterfs-api-3.6.0.29-2.el6.x86_64
	glusterfs-libs-3.6.0.29-2.el6.x86_64

Expected results:

Only these packages should be installed:

	glusterfs-api-3.6.0.29-2.el6.x86_64
	glusterfs-libs-3.6.0.29-2.el6.x86_64


Additional info:

Looking at RHEL6.5-20131213.0-Server-x86_64-DVD1.iso, we can see that for RHEL 6.5, qemu-kvm and glusterfs-api ONLY depended on the glusterfs libs.

	$ rpm -qRp qemu-kvm-0.12.1.2-2.415.el6.x86_64.rpm |grep gluster
	glusterfs-api

	$ rpm -qRp glusterfs-api-3.4.0.36rhs-1.el6.x86_64.rpm |grep gluster
	glusterfs-libs = 3.4.0.36rhs-1.el6
	libglusterfs.so.0()(64bit)

The end result for RHEL 6.5 was that this was only a dependency on the libs and NOT service daemon or client utils.  However, with RHEL 6.6, it now depends on the package that provides the service daemon AND results in customer impacted by glusterfs's logrotate bug BZ 1099539.

Looking at RHEL 6.6

	# rpm -qR qemu-kvm-0.12.1.2-2.448.el6_6.x86_64 |grep gluster
	glusterfs-api  

	# rpm -qR glusterfs-api-3.6.0.29-2.el6.x86_64 | grep gluster
	glusterfs = 3.6.0.29-2.el6
	libglusterfs.so.0()(64bit)  

Looking at rhel-server-7.1-snapshot-5-x86_64-dvd.iso

	$ rpm -qRp qemu-kvm-1.5.3-86.el7.x86_64.rpm |grep gluster
	glusterfs-api >= 3.6.0

	$ rpm -qRp glusterfs-api-3.6.0.29-2.el7.x86_64.rpm |grep gluster
	glusterfs = 3.6.0.29-2.el7
	libglusterfs.so.0()(64bit)

Comment 2 Ademar Reis 2015-02-20 02:01:54 UTC
I'm proposing the blocker flag to make sure this gets fixed in 6.7, as I agree with Terry that this is a serious issue.

Comment 3 Terry Bowling 2015-02-20 13:06:43 UTC
Additional details from RHEL 6.6

    # yum list glusterfs-*
    Installed Packages
    glusterfs.x86_64            3.6.0.29-2.el6      @rhel-6-server-rpms       
    glusterfs-api.x86_64        3.6.0.29-2.el6      @rhel-6-server-rpms       
    glusterfs-libs.x86_64       3.6.0.29-2.el6      @rhel-6-server-rpms       

Querying rpm shows that glusterfs advertises itself as providing the daemon, as well as providing the glusterfsd binary.

    # rpm -qi glusterfs
    ...
    This package includes the glusterfs binary, the glusterfsd daemon and the
    gluster command line, libglusterfs and glusterfs translator modules common to
    both GlusterFS server and client framework.

    # rpm -ql glusterfs|grep bin
    /usr/sbin/glusterfs
    /usr/sbin/glusterfsd

Comment 4 Ademar Reis 2015-02-23 20:35:18 UTC
From an e-mail discussion:

Quoting myself:

"""
OK, I think I get it now. So what we want is indeed to reduce the
size of the glusterfs package (like you said, it's more like
glusterfs-common), removing the daemons and other extra stuff
from it, leaving it with the minimum necessary to allow the
client libraries to work.

Right now it includes:

binaries:
    /usr/sbin/glusterfs
    /usr/sbin/glusterfsd

(BTW, these two files are owned by both the glusterfs and
glusterfs-server packages, probably a bug).

manpages:
    /usr/share/man/man8/glusterd.8.gz
    /usr/share/man/man8/glusterfs.8.gz
    /usr/share/man/man8/glusterfsd.8.gz
    /usr/share/man/man8/mount.glusterfs.8.gz

directories in /var:
    /var/lib/glusterd
    /var/log/glusterfs
    /var/run/gluster

plus: documentation in /usr/share/doc, scripts in /usr/share and
configuration in /etc.
"""

Quoting Niels de Vos:

"""
At the moment, I'm thinking about creating a glusterfs-client package,
which would be a dependency for all the GlusterFS clients, without the
need for the glusterfs package in case of glusterfs-api.
"""

Comment 8 Ben England 2015-07-31 14:45:29 UTC
Why can't qemu-KVM simply determine at runtime whether glusterfs-libs libraries that it needs are available or not (i.e. with dlopen), and refuse to support libgfapi connections unless it is?  Then we can remove hard dependency from RPM.  This dependency at yum time is really unacceptable to me, causes many problems.

It should check gluster version is high enough before using it though.  There is a huge variation on gluster versions between RHEL6, RHEL7 and RHGS and it's not clear to me whether there is any backwards compatibility and if so what versions?

Comment 9 Niels de Vos 2015-07-31 16:13:43 UTC
(In reply to Ben England from comment #8)
> Why can't qemu-KVM simply determine at runtime whether glusterfs-libs
> libraries that it needs are available or not (i.e. with dlopen), and refuse
> to support libgfapi connections unless it is?  Then we can remove hard
> dependency from RPM.  This dependency at yum time is really unacceptable to
> me, causes many problems.

Yes, indeed, see (Fedora) bug 1240965 for more details.

Comment 13 Ben England 2016-01-04 17:06:55 UTC
What about Fedora and RHEL7, fix it there first (bz 1240965).  cc'ing people who have an interest in Gluster.  This is consistent with Red Hat's need to reduce number of unnecessary RPM dependencies that bloat RHEL systems.

Comment 17 SATHEESARAN 2016-03-04 11:53:53 UTC
Tested with RHEL 6.8 with glusterfs-3.7.5-19.el6

Installing 'qemu-kvm' package pulls 'glusterfs-api' as dependency
'glusterfs-api' pulls 'glusterfs' & 'glusterfs-client-xlators'
'glusterfs' pulls 'glusterfs-libs'


[root@ ~]# rpm -qa | grep qemu-kvm
qemu-kvm-0.12.1.2-2.490.el6.x86_64

[root@ ~]# rpm -qR qemu-kvm | grep gluster
glusterfs-api
  
[root@ ~]# rpm -qR glusterfs-api | grep gluster
glusterfs = 3.7.5-19.el6
glusterfs-client-xlators = 3.7.5-19.el6
libglusterfs.so.0()(64bit)  

[root@ ~]# rpm -qR glusterfs | grep gluster
glusterfs-libs = 3.7.5-19.el6
libglusterfs.so.0()(64bit)
  
[root@ ~]# rpm -qR glusterfs-libs | grep gluster
libglusterfs.so.0()(64bit)  
[root@rhs-client10 ~]# rpm -qR glusterfs-client-xlators | grep gluster
libglusterfs.so.0()(64bit) 
 
[root@ ~]# rpm -qa | grep gluster
glusterfs-client-xlators-3.7.5-19.el6.x86_64
glusterfs-libs-3.7.5-19.el6.x86_64
glusterfs-3.7.5-19.el6.x86_64
glusterfs-api-3.7.5-19.el6.x86_64


Installing glusterfs client packages as a dependency of installing 'qemu-kvm' packages doesn't introduces any new gluster binaries

[root@rhs-client10 ~]# rpm -ql glusterfs | grep bin
[root@rhs-client10 ~]# rpm -ql glusterfs-libs | grep bin
[root@rhs-client10 ~]# rpm -ql glusterfs-api | grep bin
[root@rhs-client10 ~]# rpm -ql glusterfs-client-xlators | grep bin

Based on the above observations verifying this bug

Comment 19 errata-xmlrpc 2016-05-10 19:38:54 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/RHBA-2016-0747.html


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