Bug 1082659 - glusterfs-api package should pull glusterfs package as dependency
Summary: glusterfs-api package should pull glusterfs package as dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: build
Version: 2.1
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
: RHGS 3.1.0
Assignee: Bala.FA
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1134257 1202842
TreeView+ depends on / blocked
 
Reported: 2014-03-31 15:08 UTC by SATHEESARAN
Modified: 2015-11-23 02:58 UTC (History)
15 users (show)

Fixed In Version: glusterfs-3.7.0-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1134257 (view as bug list)
Environment:
Last Closed: 2015-07-29 04:31:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description SATHEESARAN 2014-03-31 15:08:03 UTC
Description of problem:
-----------------------
To make use of glusterfs qemu driver, the required packages are 
1. glusterfs-api, 
2. glusterfs-libs and 
3. glusterfs.

This is what happens while I install qemu-kvm on RHEL 6.5
qemu-kvm package pulls glusterfs-api as a dependency,
glusterfs-api package pulls glusterfs-libs as dependency.

glusterfs package was not installed

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 6.5 [2.6.32-431.5.1.el6.x86_64]
RHSS 2.1 Update2

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Install qemu-kvm package in RHEL 6.5

Actual results:
---------------
glusterfs-api and glusterfs-libs are the only packages getting installed

Expected results:
-----------------
glusterfs package should also be installed

Additional info:
-----------------
'glusterfs' package is getting installed as dependency while installing qemu-kvm package in centos-6.5

I tried the same in centos-6.5 and installed "qemu-kvm" in it.
The dependency chain goes like this :
qemu-kvm -->glusterfs-api -->glusterfs -->glusterfs-libs

[root@my-centos ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

[root@my-centos ~]# uname -r
2.6.32-431.5.1.el6.x86_64

[root@my-centos ~]# rpm -qR qemu-kvm | grep gluster
glusterfs-api  

[root@my-centos ~]# rpm -qR glusterfs-api | grep gluster
glusterfs = 3.5.0-0.6.beta4.el6
glusterfs-devel = 3.5.0-0.6.beta4.el6
libglusterfs.so.0()(64bit)

[root@my-centos ~]# rpm -qR glusterfs | grep gluster
glusterfs-libs = 3.5.0-0.6.beta4.el6
libglusterfs.so.0()(64bit)

The same deps chain in RHEL 6.5 goes like this :
qemu-kvm -->glusterfs-api -->glusterfs-libs

[root@rhs-client15 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m

[root@rhs-client15 ~]# uname -r
2.6.32-431.5.1.el6.x86_64

[root@rhs-client15 ~]# rpm -qR qemu-kvm | grep gluster
glusterfs-api  

[root@rhs-client15 ~]# rpm -qR glusterfs-api | grep gluster
glusterfs-libs = 3.4.0.57rhs-1.el6_5
libglusterfs.so.0()(64bit)  

[root@rhs-client15 ~]# rpm -qR glusterfs-libs | grep gluster
libglusterfs.so.0()(64bit)

Comment 1 SATHEESARAN 2014-03-31 15:10:18 UTC
QEMU Versions :

[root@rhs-client15 ~]# rpm -qa | grep qemu-kvm
qemu-kvm-0.12.1.2-2.415.el6_5.5.x86_64

[root@rhs-client15 ~]# rpm -qa | grep qemu
gpxe-roms-qemu-0.9.7-6.10.el6.noarch
qemu-img-0.12.1.2-2.415.el6_5.5.x86_64
qemu-kvm-0.12.1.2-2.415.el6_5.5.x86_64

If this issue doesn't fits in the 'releng' realm, please feel free to move to corresponding component

Comment 2 SATHEESARAN 2014-04-01 10:36:10 UTC
Ignore my comments in the 'Additional Information" section in comment0

I have installed glusterfs packages directly from download.gluster.org and that had different spec file, which caused the difference in dependencies pulled in by qemu-kvm package.

But still the bug holds valid for the case as in summary,which is
glusterfs package should be pulled as a part of dependency for qemu-kvm

Comment 3 SATHEESARAN 2014-04-01 10:38:05 UTC
I am not sure about the component that this bug should fit in.
Feel free to align it to correct component

Comment 4 Bala.FA 2014-04-20 12:16:29 UTC
What is the issue you are getting with no glusterfs package installed?  I see upstream removed glusterfs dependency for glusterfs-api.

Comment 5 SATHEESARAN 2014-07-10 06:42:10 UTC
(In reply to Bala.FA from comment #4)
> What is the issue you are getting with no glusterfs package installed?  I
> see upstream removed glusterfs dependency for glusterfs-api.

Bala, 

When I install RHEL 6.5 and install qemu-kvm, glusterfs package is not pulled in.
But glusterfs-api and glusterfs-libs are available.
We need glusterfs package for working of libgfapi with qemu-kvm, so glusterfs package should also be pulled.

Why the glusterfs dependency for glusterfs-api was removed in upstream ?

Comment 6 SATHEESARAN 2014-08-26 11:41:22 UTC
I see this issue with RHS 2.1 U4 ( glusterfs-3.4.0.66-2.el6rhs)

I was using RHEL 6.4 as a hypervisor and wanted to use QEMU driver for glusterfs (libgfapi). After registering to RHEL 6.4 EUS, I tried installing 'glusterfs-api'

I could see only 'glusterfs-libs' were pulled in as dependency.
But 'glusterfs' packagis also required for proper functioning of QEMU driver for glusterfs.

There are 2 solution to this,

1. Make spec file changes such that 'glusterfs-api' pulls 'glusterfs-libs' and 'glusterfs' packages as dependency

2. Document the user to install glusterfs-api and glusterfs
(i.e) yum install glusterfs-api glusterfs

Solution 1, seems a ideal and nicer way

Comment 7 SATHEESARAN 2014-08-26 11:43:25 UTC
Continuation of comment6

[root@rhs-client10 ~]# rpm -qR glusterfs-api | grep gluster
glusterfs-libs = 3.4.0.66rhs-2.el6_4
libglusterfs.so.0()(64bit)  

[root@rhs-client10 ~]# rpm -qR glusterfs-libs | grep gluster
libglusterfs.so.0()(64bit)

Comment 9 Bala.FA 2014-08-28 06:34:14 UTC
Patch is under review at https://code.engineering.redhat.com/gerrit/31650

Comment 11 SATHEESARAN 2015-05-29 08:27:27 UTC
With RHGS 3.1 Nightly build ( glusterfs-3.7.0-2.el6rhs ), glusterfs package is pulled by glusterfs-api. The following is the dependency chain :

qemu-kvm      requires/pulls    glusterfs-api
glusterfs-api requires/pulls    glusterfs
glusterfs     requires/pulls    glusterfs-libs    

[root@ ~]# rpm -qR qemu-kvm-rhev | grep gluster
glusterfs-api  

[root@ ~]# rpm -qR glusterfs-api | grep gluster
glusterfs = 3.7.0-2.el6rhs
glusterfs-client-xlators = 3.7.0-2.el6rhs
libglusterfs.so.0()(64bit)  

[root@ ~]# rpm -qR glusterfs | grep gluster
glusterfs-libs = 3.7.0-2.el6rhs
libglusterfs.so.0()(64bit)  

Finally, installing qemu-kvm pulls the required packages ( glusterfs, glusterfs-api, glusterfs-libs, glusterfs-client-xlators )

Marking this bug as VERIFIED

Comment 13 errata-xmlrpc 2015-07-29 04:31:17 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-1495.html


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