Bug 1454701

Summary: DHT: Pass errno as an argument to gf_msg
Product: [Community] GlusterFS Reporter: Nithya Balachandran <nbalacha>
Component: distributeAssignee: ankit <anraj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: anraj, bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.12.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1464316 (view as bug list) Environment:
Last Closed: 2017-09-05 17:31:32 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:    
Bug Blocks: 1464316, 1464317    

Description Nithya Balachandran 2017-05-23 11:13:30 UTC
Description of problem:
Several calls to gf_msg in the dht-rebalance.c file do not pass the errno as an argument to the gf_msg call. Instead strerror(errno) becomes part of the message.



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

The errno (where available) should be passed as an arg to gf_msg which will automatically print the err string.

Additional info:

Comment 1 Worker Ant 2017-06-05 08:47:30 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#1) for review on master by ankitraj

Comment 2 Worker Ant 2017-06-05 11:35:30 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#2) for review on master by ankitraj

Comment 3 Worker Ant 2017-06-06 07:14:10 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#3) for review on master by ankitraj

Comment 4 Worker Ant 2017-06-06 09:01:23 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#4) for review on master by ankitraj

Comment 5 Worker Ant 2017-06-06 09:17:37 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#5) for review on master by ankitraj

Comment 6 Worker Ant 2017-06-06 09:27:47 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#6) for review on master by ankitraj

Comment 7 Worker Ant 2017-06-19 16:25:40 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#7) for review on master by ankitraj

Comment 8 Worker Ant 2017-06-20 02:17:23 UTC
REVIEW: https://review.gluster.org/17464 (dht: passing the errno as an argument to gf_msg) posted (#8) for review on master by ankitraj

Comment 9 Worker Ant 2017-06-20 12:32:03 UTC
COMMIT: https://review.gluster.org/17464 committed in master by Jeff Darcy (jeff.us) 
------
commit ee9a2f01adb6c089f4579c5e0b7f5eed335dd0df
Author: AnkitRaj <anraj>
Date:   Mon Jun 5 14:11:43 2017 +0530

    dht: passing the errno as an argument to gf_msg
    
    There are many calls in gf_msg where errno
    is needed to pass as an argument instead of
    strerrno(error)
    
    Change-Id: I15048a5e0b41f9752a2023afe8470eca6f2cd383
    Bug: 1454701
    Signed-off-by: AnkitRaj <anraj>
    Reviewed-on: https://review.gluster.org/17464
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: MOHIT AGRAWAL <moagrawa>
    Reviewed-by: N Balachandran <nbalacha>
    Tested-by: N Balachandran <nbalacha>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Karthik U S <ksubrahm>
    Reviewed-by: Jeff Darcy <jeff.us>

Comment 10 Shyamsundar 2017-09-05 17:31:32 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.12.0, please open a new bug report.

glusterfs-3.12.0 has been announced on the Gluster mailinglists [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://lists.gluster.org/pipermail/announce/2017-September/000082.html
[2] https://www.gluster.org/pipermail/gluster-users/