]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/diskprediction_local: Support Python 3.9 for disk prediction module. 46943/head
authorDaniel Persson <mailto.woden@gmail.com>
Sat, 13 Aug 2022 07:41:14 +0000 (09:41 +0200)
committerKefu Chai <tchaikov@gmail.com>
Mon, 15 Aug 2022 12:20:06 +0000 (20:20 +0800)
Signed-off-by: Daniel Persson <mailto.woden@gmail.com>
qa/tasks/mgr/test_module_selftest.py
src/common/options/CMakeLists.txt

index 0f64adbd88587b118059cffe3882fac557fb8842..7ac2960371cd745b02dfc68c9fd766668530c421 100644 (file)
@@ -54,7 +54,7 @@ class TestModuleSelftest(MgrTestCase):
         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):
+        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')
index da24c673f6b374045d651be22aedee08a200a00b..f12a5513a6355bdc3160660e2c9d05149c35024b 100644 (file)
@@ -76,7 +76,7 @@ endif()
 set(mgr_disabled_modules "")
 if(WITH_MGR)
   # https://tracker.ceph.com/issues/45147
-  if(Python3_VERSION VERSION_GREATER_EQUAL 3.8)
+  if(Python3_VERSION VERSION_EQUAL 3.8)
     set(mgr_disabled_modules "diskprediction_local")
     message(STATUS "mgr module disabled for ${Python3_VERSION}: ${mgr_disabled_modules}")
   endif()