]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: Ignore daemon if no metadata was returned 23356/head
authorWido den Hollander <wido@42on.com>
Mon, 2 Jul 2018 14:36:52 +0000 (16:36 +0200)
committerWido den Hollander <wido@42on.com>
Tue, 31 Jul 2018 21:25:56 +0000 (23:25 +0200)
commitd85a1ea493ca2584a7de5ad0dab1e066de7e6dde
treea02ee6e98bf3050e1abaf5d8f1a2cf62b10cde28
parenteaee6d3beab3429232ceb188377a3f94e844fca7
mgr: Ignore daemon if no metadata was returned

It can happen that the Mgr does not return any metadata for a given
daemon as it might not be available at that moment.

None is returned by the get_metadata() method at that moment and both
the Influx and Telegraf module should then ignore the daemon in their
statistics and continue on to the next daemon.

Signed-off-by: Wido den Hollander <wido@42on.com>
(cherry picked from commit 02569c88341a6dcc8aee5626f10ac2927c2cf064)
src/pybind/mgr/influx/module.py
src/pybind/mgr/telegraf/module.py