summaryrefslogtreecommitdiffstats
path: root/anslib/patches/openshift/glusterfs-ds-use_cluster_local_for_heketi.patch
blob: 75a8a43c607b45c1f91b70b8be965b8d08635121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml
index 4928e86..b8f3cab 100644
--- a/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml
+++ b/roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml
@@ -293,7 +293,8 @@
 
   - name: Determine StorageClass heketi URL
     set_fact:
-      glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
+      glusterfs_heketi_route: "heketi-{{ glusterfs_name }}.{{ glusterfs_namespace }}.svc.cluster.local:8080"
+#      glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
     when:
     - glusterfs_heketi_is_native
 
@@ -344,7 +345,8 @@
 
   - name: Determine StorageClass heketi URL
     set_fact:
-      glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
+      glusterfs_heketi_route: "heketi-{{ glusterfs_name }}.{{ glusterfs_namespace }}.svc.cluster.local:8080"
+#      glusterfs_heketi_route: "{{ heketi_route.results.results[0]['spec']['host'] }}"
     when:
     - glusterfs_heketi_is_native
     - glusterfs_heketi_route is not defined