mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
Merge pull request #69849 from adk3798/cephadm-delete-config-deps
mgr/cephadm: clear daemon_config_deps entry for removed daemons Reviewed-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
This commit is contained in:
commit
ae0cfd0d43
@ -854,6 +854,10 @@ class HostCache():
|
||||
self.osdspec_last_applied[host][name] = str_to_datetime(ts)
|
||||
|
||||
for name, d in j.get('daemon_config_deps', {}).items():
|
||||
# drop potential leftover daemon_config_deps entries
|
||||
# assume if we didn't find a daemon entry, it's a leftover
|
||||
if name not in self.daemons.get(host, {}):
|
||||
continue
|
||||
self.daemon_config_deps[host][name] = {
|
||||
'deps': d.get('deps', []),
|
||||
'last_config': str_to_datetime(d['last_config']),
|
||||
@ -1572,6 +1576,9 @@ class HostCache():
|
||||
if host in self.daemons:
|
||||
if name in self.daemons[host]:
|
||||
del self.daemons[host][name]
|
||||
if host in self.daemon_config_deps:
|
||||
if name in self.daemon_config_deps[host]:
|
||||
del self.daemon_config_deps[host][name]
|
||||
|
||||
def daemon_cache_filled(self) -> bool:
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user