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