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