]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add tombstones to persist certs info after mgr failover
authorRedouane Kachach <rkachach@ibm.com>
Thu, 23 Oct 2025 11:10:49 +0000 (13:10 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Thu, 23 Oct 2025 11:10:49 +0000 (13:10 +0200)
commitb9f81a682db2638698b09c6386d9f94c0fae7223
treef18aa372a651a789a1dfb6cbbbddeb403237322a
parentd06d06fda84363a57fe0c66339fcc2ebd254f4b1
mgr/cephadm: add tombstones to persist certs info after mgr failover

Runtime-added TLS objects names were lost across mgr restarts/failovers
since they existed only in memory. We now write a tombstone to the KV
store whenever a new certificate is registered (empty map for
service/host scope; minimal JSON for global), so the object name is
restored during load().

Fixes: https://tracker.ceph.com/issues/73625
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
src/pybind/mgr/cephadm/tests/test_certmgr.py
src/pybind/mgr/cephadm/tlsobject_store.py