From 985cc6bf7bfa25ee8aba0735770583a89a7f9319 Mon Sep 17 00:00:00 2001 From: adityaramteke Date: Wed, 25 Sep 2019 12:30:43 +0530 Subject: Add test for creation of PVC when one node down The purpose of this test case is to confirm that provisioning succeeds if at least 3 nodes are UP in a CNS cluster with nodes >3. Change-Id: I7fc1f851114d921f65e819db23502776526e6827 --- openshift-storage-libs/openshiftstoragelibs/baseclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openshift-storage-libs/openshiftstoragelibs') diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py index 5553aa8d..80f89668 100644 --- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py +++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py @@ -561,7 +561,7 @@ class BaseClass(unittest.TestCase): except CloudProviderError as e: # Try to power on VM, if it raises already powered On error # then don't raise exception. - if 'VM %s is already powered On' % vm_name not in e: + if 'VM %s is already powered On' % vm_name not in six.text_type(e): raise def power_off_vm(self, vm_name): -- cgit