diff options
author | Nikhil Ladha <nladha@redhat.com> | 2021-02-16 17:40:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 17:40:47 +0530 |
commit | 532e6a678c610dc8b20271b5597c3f5282353f7d (patch) | |
tree | ecc52931781a6987345cc257d8d7b0f53a337318 | |
parent | f03593e67f7131db54b8cfcd5a4be9586d77078a (diff) | |
download | glusterfs-532e6a678c610dc8b20271b5597c3f5282353f7d.tar.gz glusterfs-532e6a678c610dc8b20271b5597c3f5282353f7d.tar.xz glusterfs-532e6a678c610dc8b20271b5597c3f5282353f7d.zip |
glusterd: Fix for shared storage in ipv6 env (#1972) (#2145)
Issue:
Mounting shared storage volume was failing in ipv6 env if the hostnames were FQDNs.
The brickname for the volume was being cut off, as a result, volume creation was failing
Change-Id: Ib38993724c709b35b603f9ac666630c50c932c3e
Updates: #1406
Signed-off-by: nik-redhat <nladha@redhat.com>
-rwxr-xr-x | extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh index 1f2564b44f..28d4652eab 100755 --- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh +++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh @@ -46,7 +46,7 @@ do key=`echo $line | cut -d ':' -f 1` if [ "$key" == "Hostname" ]; then - hostname=`echo $line | cut -d ':' -f 2 | xargs` + hostname=`echo $line | cut -d ' ' -f 2 | xargs` fi if [ "$key" == "State" ]; then |