]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/devicehealth: ensure we don't store empty objects 31735/head
authorSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 22:35:19 +0000 (16:35 -0600)
committerNathan Cutler <ncutler@suse.com>
Tue, 19 Nov 2019 12:38:20 +0000 (13:38 +0100)
commitaa035cfcf6a4d34d00d3a589c039a11dbe3ce1ed
treeffe25c0a799922090372a5b08da0424116bb38c3
parent3f36f355de2c1e258080591104fd9306add989b5
mgr/devicehealth: ensure we don't store empty objects

I'm not sure why devid would end up empty, but it is possible if we get
wonky data, and users seem to have seen empty objects in their pools,
so add a check!

Maybe-fixes: https://tracker.ceph.com/issues/41383
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 82414b3a42258b09defe2a88bc937a096439534f)
src/pybind/mgr/devicehealth/module.py