From 05c14134e60fccf182f7afbdf4efc88ad10dcc88 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 Nov 2019 09:53:47 -0600 Subject: [PATCH] mgr/diskprediction_local: some debug output during predict (and self-test) I saw a selftest failure without any clues in the log. Signed-off-by: Sage Weil --- src/pybind/mgr/diskprediction_local/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/diskprediction_local/module.py b/src/pybind/mgr/diskprediction_local/module.py index f450713df41c..24f92c2c28a8 100644 --- a/src/pybind/mgr/diskprediction_local/module.py +++ b/src/pybind/mgr/diskprediction_local/module.py @@ -63,6 +63,7 @@ class Module(MgrModule): raise NotImplementedError(cmd['prefix']) def self_test(self): + self.log.debug('self_test enter') ret, out, err = self.predict_all_devices() assert ret == 0 return 0, 'self test succeed', '' @@ -259,12 +260,14 @@ class Module(MgrModule): return ret def predict_all_devices(self): + self.log.debug('predict_all_devices') devices = self.get('devices').get('devices', []) for devInfo in devices: if not devInfo.get('daemons'): continue if not devInfo.get('devid'): continue + self.log.debug('%s' % devInfo) result = self._predict_life_expentancy(devInfo['devid']) if result == 'unknown': self._reset_device_life_expectancy(devInfo['devid']) -- 2.47.3