]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/devicehealth: drop the cloud model of disk prediction
authorKefu Chai <kchai@redhat.com>
Mon, 17 Aug 2020 07:44:44 +0000 (15:44 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 19 Aug 2020 03:08:39 +0000 (11:08 +0800)
as the service offered by https://www.diskprophet.com/ is not accessible
anymore, the cloud model of disk prediction is not available. so let's
drop the code handling "cloud" model.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/devicehealth/module.py

index e96015bfa7e5126aa5579aad12f4017f9cc21ba1..486f57a1d43675aed2b79afb7bb7c2f4e579483a 100644 (file)
@@ -615,9 +615,7 @@ class Module(MgrModule):
     def predict_lift_expectancy(self, devid):
         plugin_name = ''
         model = self.get_ceph_option('device_failure_prediction_mode')
-        if model and model.lower() == 'cloud':
-            plugin_name = 'diskprediction_cloud'
-        elif model and model.lower() == 'local':
+        if model and model.lower() == 'local':
             plugin_name = 'diskprediction_local'
         else:
             return -1, '', 'unable to enable any disk prediction model[local/cloud]'
@@ -631,9 +629,7 @@ class Module(MgrModule):
     def predict_all_devices(self):
         plugin_name = ''
         model = self.get_ceph_option('device_failure_prediction_mode')
-        if model and model.lower() == 'cloud':
-            plugin_name = 'diskprediction_cloud'
-        elif model and model.lower() == 'local':
+        if model and model.lower() == 'local':
             plugin_name = 'diskprediction_local'
         else:
             return -1, '', 'unable to enable any disk prediction model[local/cloud]'