Bug 1194508

Summary: Dependency problem due to glusterfs-api depending on glusterfs instead of only glusterfs-libs [rhel-7]
Product: Red Hat Enterprise Linux 7 Reporter: Terry Bowling <tbowling>
Component: glusterfsAssignee: Niels de Vos <ndevos>
Status: CLOSED DUPLICATE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.1CC: areis, dpati, ndevos, rcyriac, sdharane, tbowling, vagarwal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1194503 Environment:
Last Closed: 2016-01-06 14:12:39 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:
Bug Depends On: 1194503, 1219793    
Bug Blocks: 1203710    

Comment 2 Terry Bowling 2015-02-20 13:58:36 UTC
Additional details from RHEL 7.1 htb snap 5

	# yum list glusterfs-*
	Installed Packages
	glusterfs.x86_64         3.6.0.29-2.el7    @rhel-7-server-htb-rpms        
	glusterfs-api.x86_64     3.6.0.29-2.el7    @rhel-7-server-htb-rpms        
	glusterfs-libs.x86_64    3.6.0.29-2.el7    @rhel-7-server-htb-rpms        

	# 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 3 SATHEESARAN 2016-01-06 08:59:16 UTC
I tested with RHEL 7.2 Platform
Following are my observations, while installing qemu-kvm

1. glusterfs server related rpms are not installed
when I install qemu-kvm it pulls glusterfs-api package.

qemu-kvm --> glusterfs-api --> glusterfs --> glusterfs-libs

[root@ ~]# rpm -qa | grep qemu-kvm
qemu-kvm-1.5.3-105.el7.x86_64
qemu-kvm-common-1.5.3-105.el7.x86_64

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

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

[root@ ~]# rpm -qR glusterfs | grep gluster
glusterfs-libs = 3.7.1-16.el7
libglusterfs.so.0()(64bit)

[root@dhcp37-129 ~]# rpm -qR glusterfs-libs | grep gluster
libglusterfs.so.0()(64bit)
[root@dhcp37-129 ~]# rpm -qR glusterfs-client-xlators | grep gluster
libglusterfs.so.0()(64bit)

[root@ ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)

2. There are no glusterfs binaries available.
[root@ ~]# which glusterfs
/usr/bin/which: no glusterfs in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

[root@ ~]# which glusterfsd
/usr/bin/which: no glusterfsd in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

[root@ ~]# ls /usr/sbin/glusterfs*
ls: cannot access /usr/sbin/glusterfs*: No such file or directory

3. There is no glusterfs logrotate file installed with glusterfs-api, glusterfs, glusterfs-libs package. glusterfs logrotate file is available only when glusterfs-fuse package is installed, which is not installed by qemu-kvm package.

Based on the above three observations, this bug is already fixed with RHGS 3.1.1

I would consider CLOSING this bug as the fix is already available with glusterfs native client shipped for RHEL 7.2

Comment 5 SATHEESARAN 2016-01-06 09:13:23 UTC
Niels,

I believe that this issue could be closed base on comment3
Looking for your thoughts.

Comment 6 Niels de Vos 2016-01-06 10:21:42 UTC
Yes, I believe so too.

This probably should be marked a duplicate of bug 1192411 that has been fixed with https://rhn.redhat.com/errata/RHBA-2015-2454.html 

Terry, could you check that please?

Comment 7 Terry Bowling 2016-01-06 13:47:44 UTC
Niels,

Yes, as we had discussed previously, I think that this is as close as we can get it at this time due to qemu-kvm not having a pluggable architecture at runtime.

I confirmed that installing qemu-kvm on a fresh install of RHEL 7.2 included the following packages:

 glusterfs                  x86_64     3.7.1-16.el7    rhel-7-server-aus-rpms    422 k
 glusterfs-api              x86_64     3.7.1-16.el7    rhel-7-server-aus-rpms     60 k
 glusterfs-client-xlators   x86_64     3.7.1-16.el7    rhel-7-server-aus-rpms    732 k
 glusterfs-libs             x86_64     3.7.1-16.el7    rhel-7-server-aus-rpms    321 k

Ideally from an embedded vendor perspective, the above packages along with many others (flac-libs, pulseaudio-libs, libogg, libvorbus, libjpeg, libpng and more) are seen as RPM creep/bloat which increases their attack vector and overall size.  So our embedded developers consider this unacceptable that the "minimal kvm rhel" install is forcing so much unused stuff.

So again, we can consider this as fixed as best we can at this point.  The other stuff I will have to push forward separately for qemu-kvm to have a more pluggable, modular design.

THANK YOU!!!
-tmoney

Comment 8 Niels de Vos 2016-01-06 14:12:39 UTC
Thanks!

Bug 1240965 (for Fedora) is used for addressing the modularity of QEMU. I am not sure if there is a bug for RHEL where customer cases can get attached.

*** This bug has been marked as a duplicate of bug 1192411 ***