projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a383992
)
mgr/cephadm: implete hacky 'refresh=True' path
author
Sage Weil
<sage@redhat.com>
Fri, 14 Feb 2020 18:50:23 +0000
(12:50 -0600)
committer
Sage Weil
<sage@redhat.com>
Tue, 18 Feb 2020 21:50:00 +0000
(15:50 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py
patch
|
blob
|
history
diff --git
a/src/pybind/mgr/cephadm/module.py
b/src/pybind/mgr/cephadm/module.py
index 382dae068884a993803fbec7c689de62286b891f..0f52d4d90c9b074949161ebc80fb81f21a75b75f 100644
(file)
--- a/
src/pybind/mgr/cephadm/module.py
+++ b/
src/pybind/mgr/cephadm/module.py
@@
-1379,8
+1379,12
@@
class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin):
def list_daemons(self, daemon_type=None, daemon_id=None,
host=None, refresh=False):
if refresh:
- ######### FIXME #########
- raise NotImplementedError()
+ # ugly sync path, FIXME someday perhaps?
+ if host:
+ self._refresh_host_daemons(host)
+ else:
+ for host, hi in self.inventory.items():
+ self._refresh_host_daemons(host)
result = []
for h, di in self.daemon_cache.items():
if host and h != host: