summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/baseclass.py
diff options
context:
space:
mode:
authorNitin Goyal <nigoyal@redhat.com>2019-07-26 14:49:57 +0530
committervponomar <vponomar@redhat.com>2019-09-16 16:14:34 +0000
commitf311c4ebd01c2e35c8d1f6c7edf99254959fabcb (patch)
tree7c05a132fc7f599e1235eddd1ed50b6da81b01bc /openshift-storage-libs/openshiftstoragelibs/baseclass.py
parente641245cf14f6dc014229805aecb88434bba6a0e (diff)
Add TC create and delete PVC's when block services are down
Add new TC verify PVC's create and delete fails while gluster-blockd and tcmu-runner services are down on one node. Change-Id: I5acbcfd6c9a227c0cce21c62f5e162caf970aa22
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/baseclass.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/baseclass.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
index 3bd0f29e..14fa09dc 100644
--- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py
+++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
@@ -166,6 +166,7 @@ class BaseClass(unittest.TestCase):
allow_volume_expansion=False,
reclaim_policy="Delete",
set_hacount=None,
+ hacount=None,
is_arbiter_vol=False, arbiter_avg_file_size=None,
heketi_zone_checking=None):
@@ -187,8 +188,12 @@ class BaseClass(unittest.TestCase):
secret_namespace_option: self.sc.get(
"secretnamespace", self.sc.get("restsecretnamespace")),
}
- if set_hacount:
+
+ if hacount:
+ parameters["hacount"] = six.text_type(hacount)
+ elif set_hacount:
parameters["hacount"] = self.sc.get("hacount", "3")
+
if is_arbiter_vol:
parameters["volumeoptions"] = "user.heketi.arbiter true"
if arbiter_avg_file_size: