]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/diskprediction_local: some debug output during predict (and self-test) 31572/head
authorSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 15:53:47 +0000 (09:53 -0600)
committerSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 15:53:47 +0000 (09:53 -0600)
I saw a selftest failure without any clues in the log.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/diskprediction_local/module.py

index f450713df41c4a0426cbe41812a2d7f81ae4c980..24f92c2c28a8d60563148eaf1ec25f0a1db6800d 100644 (file)
@@ -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'])