Bug 1065654 - 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: mainline
Hardware: x86_64
OS: Other
unspecified
medium
Target Milestone: ---
Assignee: Vikhyat Umrao
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1113007
TreeView+ depends on / blocked
 
Reported: 2014-02-15 12:30 UTC by SATHEESARAN
Modified: 2014-11-11 08:27 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Clone Of:
: 1113007 (view as bug list)
Environment:
Last Closed: 2014-11-11 08:27:55 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description SATHEESARAN 2014-02-15 12:30:52 UTC
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

Comment 1 SATHEESARAN 2014-02-15 12:34:53 UTC
Moving this bug under the component BUILD as its a dependency issue

Comment 3 Niels de Vos 2014-06-02 11:28:57 UTC
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.

Comment 4 Vikhyat Umrao 2014-06-03 09:28:21 UTC
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

Comment 5 Niels de Vos 2014-06-03 09:38:52 UTC
(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.

Comment 6 Anand Avati 2014-06-03 13:48:40 UTC
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)

Comment 7 Anand Avati 2014-06-25 06:35:30 UTC
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 8 Anand Avati 2014-07-02 11:41:04 UTC
REVIEW: http://review.gluster.org/7966 (build: glusterfs.spec.in, adding nfs-utils package dependency for server package) posted (#3) for review on master by Vikhyat Umrao (vumrao)

Comment 9 Anand Avati 2014-07-02 13:29:50 UTC
COMMIT: http://review.gluster.org/7966 committed in master by Vijay Bellur (vbellur) 
------
commit aa21473f0ef4a38ed2e4ed3487443788f63fae88
Author: Vikhyat Umrao <vumrao>
Date:   Tue Jun 3 19:15:42 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
    
    Change-Id: I054b7d6d8fb1efe0fed9c90077a93c4f559c1ef4
    BUG: 1065654
    Reported-by: Satheesaran Sundaramoorthi <sasundar>
    Reviewed-by: Niels de Vos <ndevos>
    Signed-off-by: Vikhyat Umrao <vumrao>
    Reviewed-on: http://review.gluster.org/7966
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Lalatendu Mohanty <lmohanty>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 10 Niels de Vos 2014-09-22 12:36:01 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 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-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 11 Niels de Vos 2014-11-11 08:27:55 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.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [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-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users


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