From cb74060cd450608112fc5a62c5565b30044ddc25 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 23 Jan 2015 15:21:31 -0800 Subject: [PATCH] ceph: no need to stop() before restart() restart() will stop if the daemon is running. This will get rid of the spurious error 2015-01-23 15:19:36,828.828 ERROR:tasks.ceph.osd.0:tried to stop a non-running daemon when the daemon isn't already running. Signed-off-by: Sage Weil --- tasks/ceph.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/ceph.py b/tasks/ceph.py index 36805ca58c0d6..43c34c146b140 100644 --- a/tasks/ceph.py +++ b/tasks/ceph.py @@ -1057,7 +1057,6 @@ def restart(ctx, config): for i in daemons: type_ = i.split('.', 1)[0] id_ = i.split('.', 1)[1] - ctx.daemons.get_daemon(type_, id_).stop() ctx.daemons.get_daemon(type_, id_).restart() if config.get('wait-for-healthy', True): -- 2.39.5