From f311c4ebd01c2e35c8d1f6c7edf99254959fabcb Mon Sep 17 00:00:00 2001 From: Nitin Goyal Date: Fri, 26 Jul 2019 14:49:57 +0530 Subject: 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 --- openshift-storage-libs/openshiftstoragelibs/baseclass.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openshift-storage-libs') 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: -- cgit