]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr, mgr/prometheus: Fix regression with prometheus metrics 46429/head
authorPrashant D <pdhange@redhat.com>
Thu, 17 Mar 2022 14:29:40 +0000 (14:29 +0000)
committerPrashant D <pdhange@redhat.com>
Mon, 30 May 2022 13:16:00 +0000 (14:16 +0100)
commit45a8604232bd772a8da88c45c4f9934e063db0e4
tree9827ccc87aaae4face3268ce4a8fc386cb838032
parent952cab438ba4ec7e873b391d1505e501a7b33a51
mgr, mgr/prometheus: Fix regression with prometheus metrics

The ceph dameons on host are inheriting ceph version from the host.
This introduces a wrong interpretation in prometheus metrics as well
as in dump_server. Each ceph daemon should represent it's own
ceph version based on the ceph binary is use for that daemon.

Consider a situation where partial upgrade is done on host, some daemons
which are restarted should have ceph version tag as upgraded version
and rest should have older ceph version but presently all inherites
host version. In containerized environment, all daemons are
using ceph version of last daemon registered as a service on the host.

Fixes: https://tracker.ceph.com/issues/54611
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit aeca2e41ef560cf51c1ad935cfb6470e782aa8d5)
src/mgr/ActivePyModules.cc
src/pybind/mgr/prometheus/module.py