b7d4d7
From 818025e467ea98b32a855c92ba6aef6e172e029f Mon Sep 17 00:00:00 2001
b7d4d7
From: Nikhil Ladha <nladha@redhat.com>
b7d4d7
Date: Fri, 8 Jan 2021 13:12:46 +0530
b7d4d7
Subject: [PATCH 518/526] glusterd: Fix for shared storage in ipv6 env
b7d4d7
b7d4d7
Issue:
b7d4d7
Mounting shared storage volume was failing in ipv6 env if the hostnames were FQDNs.
b7d4d7
The brickname for the volume was being cut off, as a result, volume creation was failing.
b7d4d7
b7d4d7
>Change-Id: Ib38993724c709b35b603f9ac666630c50c932c3e
b7d4d7
>Fixes: #1406
b7d4d7
>Signed-off-by: nik-redhat <nladha@redhat.com>
b7d4d7
Upstream patch: https://github.com/gluster/glusterfs/pull/1972
b7d4d7
b7d4d7
BUG: 1856574
b7d4d7
b7d4d7
Change-Id: Ib38993724c709b35b603f9ac666630c50c932c3e
b7d4d7
Signed-off-by: nik-redhat <nladha@redhat.com>
b7d4d7
Reviewed-on: https://code.engineering.redhat.com/gerrit/223248
b7d4d7
Tested-by: RHGS Build Bot <nigelb@redhat.com>
b7d4d7
Reviewed-by: Ravishankar Narayanankutty <ravishankar@redhat.com>
b7d4d7
---
b7d4d7
 extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | 2 +-
b7d4d7
 1 file changed, 1 insertion(+), 1 deletion(-)
b7d4d7
b7d4d7
diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
b7d4d7
index 9597503..e9261af 100755
b7d4d7
--- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
b7d4d7
+++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh
b7d4d7
@@ -46,7 +46,7 @@ do
b7d4d7
 
b7d4d7
     key=`echo $line | cut -d ':' -f 1`
b7d4d7
     if [ "$key" == "Hostname" ]; then
b7d4d7
-        hostname=`echo $line | cut -d ':' -f 2 | xargs`
b7d4d7
+        hostname=`echo $line | cut -d ' ' -f 2 | xargs`
b7d4d7
     fi
b7d4d7
 
b7d4d7
     if [ "$key" == "State" ]; then
b7d4d7
-- 
b7d4d7
1.8.3.1
b7d4d7