]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/devicehealth: skip null pages when extracting wear level 45121/head
authorYaarit Hatuka <yaarit@redhat.com>
Tue, 22 Feb 2022 19:22:09 +0000 (19:22 +0000)
committerYaarit Hatuka <yaarit@redhat.com>
Tue, 22 Feb 2022 19:22:09 +0000 (19:22 +0000)
commit2864ac30d4170ba7b5f60ae01ecfdeee707e026a
tree09df3fd4def60186bcf7a2db2473d3168ea80f11
parentefc4a8fc9b40c6ec0d79febad0a30f4a1d4642f3
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>
src/pybind/mgr/devicehealth/module.py