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 <action> <daemon_id>
command.
Fixes: https://tracker.ceph.com/issues/46740
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
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')