]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr, mgr/prometheus: Fix regression with prometheus metrics
authorPrashant D <pdhange@redhat.com>
Thu, 17 Mar 2022 14:29:40 +0000 (14:29 +0000)
committerAdam King <adking@redhat.com>
Sat, 21 May 2022 23:18:24 +0000 (19:18 -0400)
commite34c4ea6c03d365e843c729f9c100a1120755122
tree3050d1145f4ec1faf5bf86a30265455d4a66be32
parent6b1a8397345fcb2baabee96364cf4dc8f424f885
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