]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
ceph: allow restarting radosgw
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 30 Apr 2013 23:39:48 +0000 (16:39 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 30 Apr 2013 23:39:48 +0000 (16:39 -0700)
Only split once, since radosgw will have client.X after it.
Monitors and MDSs may have names with more .s as well.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/ceph.py

index 5ff4c100f2e440e2bec341593a4457e78e1f5e69..4bd6ee6f3b357b27ef42b60d9c42906fe22108c5 100644 (file)
@@ -946,12 +946,12 @@ def restart(ctx, config):
               "task ceph.restart only supports a list for configuration"
        config = dict.fromkeys(config)
        for i in config.keys():
-           type_ = i.split('.')[0]
-           id_ = i.split('.')[1]
+           type_ = i.split('.', 1)[0]
+           id_ = i.split('.', 1)[1]
            ctx.daemons.get_daemon(type_, id_).stop()
            ctx.daemons.get_daemon(type_, id_).restart()
    else:
-       type_daemon = ['mon', 'osd', 'mds']
+       type_daemon = ['mon', 'osd', 'mds', 'rgw']
        for d in type_daemon:
            type_ = d
            for daemon in ctx.daemons.iter_daemons_of_role(type_):