]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: split host cache entries if they exceed max mon store entry size
authorAdam King <adking@redhat.com>
Thu, 25 Sep 2025 20:13:18 +0000 (16:13 -0400)
committerAdam King <adking@redhat.com>
Thu, 25 Sep 2025 20:29:46 +0000 (16:29 -0400)
commit2140659c5e5e567b461ff12ef2fe4d1abbeef8c3
tree4ed841c888310c861fc523d07a30502ebb53056e
parent7a88cb65594200136d8efaf897ebfea76bf104c3
mgr/cephadm: split host cache entries if they exceed max mon store entry size

If the json blob we attempt to store for a host entry
exceeds the max mon store entry size, we become unable
to continue to store that hosts information in the
config key store. This means we only ever have the
information from the last time the json blob was
under the size limit each time the mgr fails over,
resulting in a number of stray host/daemon warnings
being generated and very outdated information being
reported by `ceph orch ps` and `ceph orch ls` around
the time of the failover

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit ffe61afc2b5e6c2f4db1001e5288dcd8f995e570)

Resolves: rhbz#2345474
src/pybind/mgr/cephadm/inventory.py