Bug 1113007 - nfs-utils should be installed as dependency while installing glusterfs-server
Summary: nfs-utils should be installed as dependency while installing glusterfs-server
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: 3.5.1
Hardware: x86_64
OS: Other
unspecified
medium
Target Milestone: ---
Assignee: Vikhyat Umrao
QA Contact:
URL:
Whiteboard:
Depends On: 1065654
Blocks: glusterfs-3.5.2
TreeView+ depends on / blocked
 
Reported: 2014-06-25 09:07 UTC by Vikhyat Umrao
Modified: 2014-07-31 11:43 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.5.2beta1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1065654
Environment:
Last Closed: 2014-07-31 11:43:20 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Vikhyat Umrao 2014-06-25 09:07:58 UTC
+++ This bug was initially created as a clone of Bug #1065654 +++

Description of problem:
-----------------------
nfs-utils is not included as dependency for glusterfs-server package in Fedora20

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
[gluster@desktop78 ~]$ gluster --version
glusterfs 3.5.0beta3 built on Feb 11 2014 20:06:53
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.

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

Steps to Reproduce:
-------------------
1. Install glusterfs-server, glusterfs, glusterfs-fuse
2. Create any volume
3. Start the volume
4. Get the status of the volume

Actual results:
---------------
NFS process was shown in 'gluster volume status' output as 'N' - which means its not running

Expected results:
-----------------
NFS process should be shown as 'Y' ( it should be up )


Additional info:
----------------

1. Installed the package - 'nfs-utils'
(i.e) yum install nfs-utils

2. Stop the volume and start the volume
(i.e) gluster volume stop <vol-name>; gluster volume start <vol-name>

3. Check the status of the gluster volume
(i.e) gluster volume start <vol-name>

Now I could see that NFS process was running in gluster volume status

--- Additional comment from SATHEESARAN on 2014-02-15 07:34:53 EST ---

Moving this bug under the component BUILD as its a dependency issue

--- Additional comment from John Skeoch on 2014-03-30 21:35:31 EDT ---

User vraman's account has been closed

--- Additional comment from Niels de Vos on 2014-06-02 07:28:57 EDT ---

The glusterfs.spec.in needs a 'Requires: nfs-utils' in the '%package server' section. nfs-utils provides rpc.statd, which is required for the NFS-server.

--- Additional comment from  on 2014-06-03 05:28:21 EDT ---

Fedora 20 by default has nfs-utils package:
# rpm -qa | grep nfs
libnfsidmap-0.25-7.fc20.x86_64
nfs-utils-1.2.8-6.0.fc20.x86_64

1. Installed glusterfs-server, glusterfs, glusterfs-fuse packages.
2. Created and started a volume 
3. Checked the status:

After starting the volume immediately if we will check the status it will say : N/A  

# gluster volume status
Status of volume: testvol
Gluster process						Port	Online	Pid
------------------------------------------------------------------------------
Brick 10.65.200.185:/brick1/data			49152	Y	1778
NFS Server on localhost					N/A	N	N/A
 
Task Status of Volume testvol
------------------------------------------------------------------------------
There are no active volume tasks

But if we will check it after 5 seconds: it will show : Y 

# gluster volume status
Status of volume: testvol
Gluster process						Port	Online	Pid
------------------------------------------------------------------------------
Brick 10.65.200.185:/brick1/data			49152	Y	1778
NFS Server on localhost					2049	Y	1791
 
Task Status of Volume testvol
------------------------------------------------------------------------------
There are no active volume tasks


# ps -ef | grep nfs
root      1791     1  0 14:45 ?        00:00:00 /usr/sbin/glusterfs -s localhost --volfile-id gluster/nfs -p /var/lib/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log -S /var/run/e075a4cb5a1b06b6b3b8746e81e49c6c.socket

--- Additional comment from Niels de Vos on 2014-06-03 05:38:52 EDT ---

(In reply to vumrao from comment #4)
> Fedora 20 by default has nfs-utils package:
> # rpm -qa | grep nfs
> libnfsidmap-0.25-7.fc20.x86_64
> nfs-utils-1.2.8-6.0.fc20.x86_64

Well, it is nice that users on Fedora will not hit this immediately, but more minimal installations are affected. A minimal Fedora installation may not have nfs-utils. Also, users can deinstall the nfs-utils package, and break the gluster-nfs server functionality that way.

In order to guarantee that gluster-nfs works on any (RPM distro) installation, a dependency on nfs-utils in the glusterfs-server package really is needed.

--- Additional comment from Anand Avati on 2014-06-03 09:48:40 EDT ---

REVIEW: http://review.gluster.org/7966 (build: glusterfs.spec.in, adding nfs-utils package dependency for server package) posted (#1) for review on master by Vikhyat Umrao (vumrao)

--- Additional comment from Anand Avati on 2014-06-25 02:35:30 EDT ---

REVIEW: http://review.gluster.org/7966 (build: glusterfs.spec.in, adding nfs-utils package dependency for server package) posted (#2) for review on master by Vikhyat Umrao (vumrao)

Comment 1 Anand Avati 2014-06-25 11:10:51 UTC
REVIEW: http://review.gluster.org/8172 (build: glusterfs.spec.in, adding nfs-utils package dependency for server package) posted (#1) for review on release-3.5 by Vikhyat Umrao (vumrao)

Comment 2 Anand Avati 2014-07-02 13:58:41 UTC
REVIEW: http://review.gluster.org/8172 (build: glusterfs.spec.in, adding nfs-utils package dependency for server package) posted (#2) for review on release-3.5 by Vikhyat Umrao (vumrao)

Comment 3 Anand Avati 2014-07-15 15:46:37 UTC
COMMIT: http://review.gluster.org/8172 committed in release-3.5 by Niels de Vos (ndevos) 
------
commit af82523251f4fa35afe6bd2da5d0391da7635fed
Author: Vikhyat Umrao <vumrao>
Date:   Wed Jun 25 16:34:17 2014 +0530

    build: glusterfs.spec.in, adding nfs-utils package dependency for server package
    
    nfs-utils provides rpc.statd and it is a requirement for gluster-nfs
    
    Master review:    http://review.gluster.org/7966
    Master commit-Id: c34850ec71c9d6a4f30ad2e5e96aa15bc8a87064
    
    Change-Id: I054b7d6d8fb1efe0fed9c90077a93c4f559c1ef4
    BUG: 1113007
    Reported-by: Satheesaran Sundaramoorthi <sasundar>
    Reviewed-by: Niels de Vos <ndevos>
    Signed-off-by: Vikhyat Umrao <vumrao>
    Reviewed-on: http://review.gluster.org/8172
    Tested-by: Gluster Build System <jenkins.com>

Comment 4 Niels de Vos 2014-07-21 15:41:49 UTC
The first (and last?) Beta for GlusterFS 3.5.2 has been released [1]. Please verify if the release solves this bug report for you. In case the glusterfs-3.5.2beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-devel/2014-July/041636.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 5 Niels de Vos 2014-07-31 11:43:20 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.5.2, please reopen this bug report.

glusterfs-3.5.2 has been announced on the Gluster Users mailinglist [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-July/041217.html
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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