Fix issue where the ceph_exporter crashes after a Ceph upgrade with a broken OSD - that OSD was never online with Luminous and thus we have no metadata for it
Signed-off-by: Christopher Blum zeichenanonym@web.de
(cherry picked from commit
3beee663f6fd6a16cef5a65ea5f9937cbea7a537)
('osd.{}'.format(id_),))
osd_metadata = self.get_metadata("osd", str(id_))
+ if osd_metadata is None:
+ continue
dev_keys = ("backend_filestore_dev_node", "bluestore_bdev_dev_node")
osd_dev_node = None
for dev_key in dev_keys: