From: Kefu Chai Date: Mon, 17 Aug 2020 07:44:44 +0000 (+0800) Subject: pybind/mgr/devicehealth: drop the cloud model of disk prediction X-Git-Tag: v16.1.0~1382^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=47c8ec1698f95fa226d0a5554b73eefb41cca739;p=ceph.git pybind/mgr/devicehealth: drop the cloud model of disk prediction 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 --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index e96015bfa7e5..486f57a1d436 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -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]'