afr:vol heal info fails when transport.socket.bind-address is set in glusterd
authorMohamed Ashiq <mliyazud@redhat.com>
Thu, 5 Nov 2015 14:52:02 +0000 (20:22 +0530)
committerPranith Kumar Karampuri <pkarampu@redhat.com>
Tue, 24 Nov 2015 05:44:16 +0000 (21:44 -0800)
commit31f0fd1d401f1a4c007fd44854f99f15aff2346b
tree8b43ec0b3d401ec5e0e0d64b8f133d40d3cf144a
parent74699ddd777f7e862991cf3afad91823d30e5b84
afr:vol heal info fails when transport.socket.bind-address is set in glusterd

Problem: If glusterd's bind address is specified using transport.socket.bind- address
option to a specific IP, the heal command 'gluster volume heal <VOLNAME> info' fails
with error '<vol_name>: Not able to fetch volfile from glusterd.Volume heal failed.'
This patch uses Unix domain socket transport type of libglfapi to get the volfile.

Change-Id: Ic4239b339f0246d77f1622c07d5f4708129d30c7
BUG: 1277997
Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com>
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/12508
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Anuradha Talur <atalur@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
heal/src/glfs-heal.c