]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: fix objects_by_names initialization + some improvements
authorRedouane Kachach <rkachach@ibm.com>
Thu, 23 Oct 2025 11:06:08 +0000 (13:06 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Thu, 23 Oct 2025 11:06:08 +0000 (13:06 +0200)
commitd06d06fda84363a57fe0c66339fcc2ebd254f4b1
treebdd6639f713a031495d4b0d0330fe4f066463402
parent8534d107762e028a2590a3b46f4341b974ffff57
mgr/cephadm: fix objects_by_names initialization + some improvements

This commit include the following changes:

1. Fix objects_by_names initialization as we was using a dict for all
the case including global scoped objects which is not correct. For
those cases an instance of an empty TLSObject must be used.
2. Add sanity checks to the load() method to avoid loading incorrect
and malformed entries.
3. Add some helper functions to avoid code repetition

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
src/pybind/mgr/cephadm/tlsobject_types.py