From: Paul Cuzner Date: Wed, 29 Jul 2020 04:00:37 +0000 (+1200) Subject: mgr/cephadm: fix call to cephadm for daemon restarts etc X-Git-Tag: wip-pdonnell-testing-20200918.022351~499^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94e418581c9126dc199def6078d6a8449bdec8df;p=ceph-ci.git mgr/cephadm: fix call to cephadm for daemon restarts etc The call currently passes the daemon_type as the first parameter - but the function expects the hostname. This results in failures when attempting daemon restarts through the ceph orch daemon command. Fixes: https://tracker.ceph.com/issues/46740 Signed-off-by: Paul Cuzner --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index d88966c7926..2f7b5a4a456 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1571,7 +1571,7 @@ you may want to run: for a in actions[action]: try: out, err, code = self._run_cephadm( - daemon_spec.daemon_type, name, 'unit', + host, name, 'unit', ['--name', name, a]) except Exception: self.log.exception(f'`{host}: cephadm unit {name} {a}` failed')