From 03d786098c1d07121c5d1a807d6e437d3981cc9a Mon Sep 17 00:00:00 2001
From: Woohyung Han <techhanx@gmail.com>
Date: Tue, 8 Oct 2019 16:14:33 +0900
Subject: [PATCH] Fix up glusterfs server name to 'glusterfs-server1'

Glusterfs volume has AUTH_SSL_ALLOW option to authorize
access list. Manila try to find the access list by matching
with 'glusterfs-server' or 'manila-host'.
Fix up tls name to 'glusterfs-server1'.

Change-Id: I3a0b8bc25e6ab355f3e692e1804363be2efee10f
---
 devstack/gluster-functions.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/devstack/gluster-functions.sh b/devstack/gluster-functions.sh
index 165faf8..764b086 100755
--- a/devstack/gluster-functions.sh
+++ b/devstack/gluster-functions.sh
@@ -326,10 +326,8 @@ function _configure_glusterfs_server_in_local_host_for_tls_support {
 
 # Setup and configure glusterfs_native.py as the backend share driver for Manila
 function _configure_manila_glusterfs_native {
-
-
     # Create necessary files to allow GlusterFS volumes to use TLS features
-    local common_name=server.com
+    local common_name=glusterfs-server1
     _configure_glusterfs_server_in_local_host_for_tls_support $common_name
 
     # Create four GlusterFS volumes to be used as shares.