]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/devicehealth: skip null pages when extracting wear level 45151/head
authorYaarit Hatuka <yaarit@redhat.com>
Tue, 22 Feb 2022 19:22:09 +0000 (19:22 +0000)
committerYaarit Hatuka <yaarit@redhat.com>
Thu, 24 Feb 2022 16:43:14 +0000 (16:43 +0000)
commit534a612ad359bab5b40f16150d11d39b6c3c880e
treeac7953e92f69a04b0d28970e373c4046bbe4715e
parentb69e4adb60b1cef898d033ac79ea2145aded5586
mgr/devicehealth: skip null pages when extracting wear level

Some devices have null pages in their ata_device_statistics struct; skip
those pages in order to avoid an AttributeError when extracting device's
wear level.

Fixes: https://tracker.ceph.com/issues/51554
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
(cherry picked from commit 2864ac30d4170ba7b5f60ae01ecfdeee707e026a)
src/pybind/mgr/devicehealth/module.py