From: Josh Durgin Date: Tue, 30 Apr 2013 23:39:48 +0000 (-0700) Subject: ceph: allow restarting radosgw X-Git-Tag: 1.1.0~2167^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=935e8685e6ecc2b183687c5de125fc88146f28f5;p=teuthology.git ceph: allow restarting radosgw 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 --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 5ff4c100f..4bd6ee6f3 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -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_):