Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1227179 - GlusterD fills the logs when the NFS-server is disabled
GlusterD fills the logs when the NFS-server is disabled
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd (Show other bugs)
3.1
x86_64 All
high Severity high
: ---
: RHGS 3.1.0
Assigned To: krishnan parthasarathi
SATHEESARAN
http://thread.gmane.org/gmane.comp.fi...
: Triaged
Depends On: 1222065
Blocks: 1202842
  Show dependency treegraph
 
Reported: 2015-06-02 01:17 EDT by krishnan parthasarathi
Modified: 2015-11-03 18:06 EST (History)
8 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-2
Doc Type: Bug Fix
Doc Text:
Previously, when NFS service is disabled on all running Red Hat Gluster Storage volumes, glusterd would try connecting to gluster-nfs process, resulting in repeated connection failure messages in glusterd logs. With this release, there is no repeated connection failure messages in glusterd logs.
Story Points: ---
Clone Of: 1222065
Environment:
Last Closed: 2015-07-29 00:54:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description krishnan parthasarathi 2015-06-02 01:17:41 EDT
+++ This bug was initially created as a clone of Bug #1222065 +++

Description of problem:
When Gluster/NFS is disabled with the volume option nfs.disable=true, GlusterD fills its own logs with the following messages:

[2015-05-15 16:25:34.826068] W [socket.c:642:__socket_rwv] 0-nfs: readv on /var/run/gluster/2feeb86ac1b9bb2039781dcb18de449b.socket failed (Invalid argument)
[2015-05-15 16:25:37.826562] W [socket.c:3059:socket_connect] 0-nfs: Ignore failed connection attempt on /var/run/gluster/2feeb86ac1b9bb2039781dcb18de449b.socket, (No such file or directory) 

These lines are repeated every 3 seconds.

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

How reproducible:
100%

Steps to Reproduce:
1. create and start a volume
2. gluster volume set $VOLUME nfs.disable true
3. tail -f /var/log/glusterfs/etc-glusterfs-glusterd.vol.log

Actual results:
Logs fill rapidly.

Expected results:
No log messages, this is intentional.

Additional info:
Reported by Manu: http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10956

--- Additional comment from Anand Avati on 2015-06-02 00:24:04 EDT ---

COMMIT: http://review.gluster.org/10963 committed in release-3.7 by Kaushal M (kaushal@redhat.com) 
------
commit efdb183c62be68f1a371237d1caac4347288f538
Author: Krishnan Parthasarathi <kparthas@redhat.com>
Date:   Tue May 19 14:48:01 2015 +0530

    glusterd: fix repeated connection to nfssvc failed msgs
    
    ... and disable reconnect timer on rpc_clnt_disconnect.
    
    Root Cause
    ----------
    
    gluster-NFS service wouldn't be started if there are no
    started volumes that have nfs service enabled for them.
    Before this fix we would initiate a connect even when
    the gluster-NFS service wasn't (re)started. Compounding
    that glusterd_conn_disconnect doesn't disable reconnect
    timer. So, it is possible that the reconnect timer was
    in execution when  the timer event was attempted to be
    removed.
    
    Change-Id: Iadcb5cff9eafefa95eaf3a1a9413eeb682d3aaac
    BUG: 1222065
    Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
    Reviewed-on: http://review.gluster.org/10830
    Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
    Reviewed-by: Gaurav Kumar Garg <ggarg@redhat.com>
    Reviewed-by: Kaushal M <kaushal@redhat.com>
    Reviewed-on: http://review.gluster.org/10963
    Tested-by: Gluster Build System <jenkins@build.gluster.com>
    Tested-by: NetBSD Build System <jenkins@build.gluster.org>
    Reviewed-by: Emmanuel Dreyfus <manu@netbsd.org>
Comment 1 Atin Mukherjee 2015-06-02 03:09:59 EDT
Downstream patch link : https://code.engineering.redhat.com/gerrit/#/c/49655/
Comment 3 SATHEESARAN 2015-06-29 06:03:59 EDT
Tested with RHGS 3.1 Nightly build - glusterfs-3.7.1-6

Performed the following test :
1. Created a volume and started it
2. Disabled NFS on the volume

No warning/error messages are seen in glusterd log file
Comment 4 Bhavana 2015-07-26 09:47:14 EDT
Doc text verified
Comment 5 errata-xmlrpc 2015-07-29 00:54:43 EDT
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.