]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/mgr: skip test_diskprediction_local on python>=3.8 41617/head
authorKefu Chai <kchai@redhat.com>
Wed, 7 Apr 2021 05:38:27 +0000 (13:38 +0800)
committerCory Snyder <csnyder@iland.com>
Tue, 15 Jun 2021 16:37:14 +0000 (12:37 -0400)
query the python version before trying to test diskprediction_local

Fixes: https://tracker.ceph.com/issues/50196
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 39b2b5edc008900d531be95ece1ce75a1e036914)

Conflicts:
qa/tasks/mgr/test_module_selftest.py

qa/suites/rados/mgr/tasks/module_selftest.yaml
qa/tasks/mgr/test_module_selftest.py

index deab01adb05ddc0d848b2fc3fc5dd213e8c097ed..905e6f783008e7e6bb2c8c34eb241f2538c7095c 100644 (file)
@@ -23,3 +23,4 @@ tasks:
   - cephfs_test_runner:
       modules:
         - tasks.mgr.test_module_selftest
+      fail_on_skip: false
index 63cf39a3b7af67b12cdfb37a40f905ddc51ac56d..a982ad3c456e8434af5113266df47575d42abd2d 100644 (file)
@@ -3,6 +3,7 @@ import time
 import requests
 import errno
 import logging
+
 from teuthology.exceptions import CommandFailedError
 
 from tasks.mgr.mgr_test_case import MgrTestCase
@@ -49,6 +50,13 @@ class TestModuleSelftest(MgrTestCase):
         self._selftest_plugin("influx")
 
     def test_diskprediction_local(self):
+        self._load_module("selftest")
+        python_version = self.mgr_cluster.mon_manager.raw_cluster_cmd(
+            "mgr", "self-test", "python-version")
+        if tuple(int(v) for v in python_version.split('.')) >= (3, 8):
+            # https://tracker.ceph.com/issues/45147
+            self.skipTest(f'python {python_version} not compatible with '
+                          'diskprediction_local')
         self._selftest_plugin("diskprediction_local")
 
     # Not included in qa/packages/packages.yaml