]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: no need to stop() before restart()
authorSage Weil <sage@redhat.com>
Fri, 23 Jan 2015 23:21:31 +0000 (15:21 -0800)
committerSage Weil <sage@redhat.com>
Fri, 23 Jan 2015 23:21:31 +0000 (15:21 -0800)
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 <sage@redhat.com>
tasks/ceph.py

index 36805ca58c0d67c68e243c6e265539a346ef8761..43c34c146b140843469e940b5a5cb363f7e1a390 100644 (file)
@@ -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):