From d2eccc570b70dae4ac5337c22103da615f2714b9 Mon Sep 17 00:00:00 2001 From: vamahaja Date: Thu, 12 Dec 2019 12:22:00 +0530 Subject: Add skip for 'iscsi-initiator-utils' version in test case Add skip for package 'iscsi-initiator-utils' in test case 'test_initiator_side_failures_create_100_app_pods_with_block_pv' due to issue 'BZ-1624670' Change-Id: I4730b298e367fdacbaac1f314b760df6d7642e14 --- .../gluster_stability/test_gluster_block_stability.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/functional') diff --git a/tests/functional/gluster_stability/test_gluster_block_stability.py b/tests/functional/gluster_stability/test_gluster_block_stability.py index d380374b..98e8ba38 100644 --- a/tests/functional/gluster_stability/test_gluster_block_stability.py +++ b/tests/functional/gluster_stability/test_gluster_block_stability.py @@ -999,6 +999,19 @@ class TestGlusterBlockStability(GlusterBlockBaseClass): self.skipTest("Skipping test case due to BZ-1607520, which is" " fixed in OCS 3.11.4") + # Skip the test if iscsi-initiator-utils version is not the expected + e_pkg_version = '6.2.0.874-13' + cmd = ("rpm -q iscsi-initiator-utils" + " --queryformat '%{version}-%{release}\n'" + "| cut -d '.' -f 1,2,3,4") + for g_server in self.gluster_servers: + out = self.cmd_run(cmd, g_server) + if parse_version(out) < parse_version(e_pkg_version): + self.skipTest( + "Skip test since isci initiator utils version actual: %s " + "is less than expected: %s on node %s, for more info " + "refer to BZ-1624670" % (out, e_pkg_version, g_server)) + nodes = oc_get_schedulable_nodes(self.node) # Get list of all gluster nodes -- cgit