From: Sage Weil Date: Tue, 12 Nov 2019 15:53:47 +0000 (-0600) Subject: mgr/diskprediction_local: some debug output during predict (and self-test) X-Git-Tag: v15.1.0~840^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05c14134e60fccf182f7afbdf4efc88ad10dcc88;p=ceph.git 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 --- 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'])