summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkasturiNarra <knarra@redhat.com>2019-12-13 17:45:18 +0530
committerkasturiNarra <knarra@redhat.com>2019-12-13 18:32:20 +0530
commit5e4f0895e500c667b1f3fdc07006584541141774 (patch)
tree4fac13302c261e9abf54bf4b90ded5d726f80f4c
parent9137ba42ee7155d22decf125af6e9d8d1b6e746f (diff)
Fix provisioner name for gluster block stroage class
Provisioner name has been changed in "get_gluster_host_ips_by_pvc_name" of openshift-storage-libs/openshiftstoragelibs/openshift_ops.py module, since from OCS3.11.4 glusterblock storage class provisioner name has been changed from gluster.org/glusterblock to gluster.org/ glusterblock-glusterfs Change-Id: I2549b44e91a0f08384693cd55aea751acda458dd
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/openshift_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
index 1c16426..c8460d1 100644
--- a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
+++ b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
@@ -782,7 +782,7 @@ def get_gluster_host_ips_by_pvc_name(ocp_node, pvc_name):
brick["name"].split(":")[0]
for brick in pv_info["bricks"]["brick"]
]
- elif sp == "gluster.org/glusterblock":
+ elif sp.startswith("gluster.org/glusterblock"):
get_gluster_pod_node_ip_cmd = (
r"""oc get pv --template '{{range .items}}"""
+ r"""{{if eq .spec.claimRef.name "%s"}}"""