summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
diff options
context:
space:
mode:
authorAditya Ramteke <adityaramteke05icr@gmail.com>2019-07-28 18:19:32 +0530
committeradityaramteke <adityaramteke05icr@gmail.com>2019-11-19 15:09:11 +0530
commite7264123e6463f418df8c6d7b75f91e504294ecb (patch)
tree8c9f4574cbe5e22ac57bb5dce3f3b4b638f8e202 /openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
parent87b8bd30728f013dd114e449c7595eedb33f0ce9 (diff)
Add test for inconsistencies in targetcli when BHV is down
Confirm no inconsistencies occur in targetcli when block devices are created with one block hosting volume down. Change-Id: I2a755ef2a88c6e6ca5326be3787ac07c0fb7db26
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/openshift_ops.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/openshift_ops.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
index 87dd634..a20e91e 100644
--- a/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
+++ b/openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
@@ -1511,7 +1511,7 @@ def check_service_status_on_pod(
def wait_for_service_status_on_gluster_pod_or_node(
- ocp_client, service, status, state, gluster_node,
+ ocp_client, service, status, state, gluster_node=None,
raise_on_error=True, timeout=180, wait_step=3):
"""Wait for a service specific status on a Gluster POD or node.
@@ -1546,7 +1546,8 @@ def wait_for_service_status_on_gluster_pod_or_node(
raise exceptions.ExecutionError(err_msg)
-def restart_service_on_gluster_pod_or_node(ocp_client, service, gluster_node):
+def restart_service_on_gluster_pod_or_node(
+ ocp_client, service, gluster_node=None):
"""Restart service on Gluster either POD or node.
Args: