diff options
author | Sage Weil <sage@redhat.com> | 2019-11-12 16:53:47 +0100 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2019-11-12 16:53:47 +0100 |
commit | 05c14134e60fccf182f7afbdf4efc88ad10dcc88 (patch) | |
tree | 55430ab7572bd0357125909817d76a94d4d07927 /src/pybind/mgr/diskprediction_local | |
parent | mgr/dashboard: Support RBD namespaces (#30935) (diff) | |
download | ceph-05c14134e60fccf182f7afbdf4efc88ad10dcc88.tar.xz ceph-05c14134e60fccf182f7afbdf4efc88ad10dcc88.zip |
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 <sage@redhat.com>
Diffstat (limited to 'src/pybind/mgr/diskprediction_local')
-rw-r--r-- | src/pybind/mgr/diskprediction_local/module.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pybind/mgr/diskprediction_local/module.py b/src/pybind/mgr/diskprediction_local/module.py index f450713df41..24f92c2c28a 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']) |