From 1d8dcc4a1b5ed21446d643ae6dea67462f30f575 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 10 Mar 2014 00:22:39 -0700 Subject: [PATCH] rgw utils: add function to get data log window configuration Signed-off-by: Josh Durgin --- teuthology/task_util/rgw.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/task_util/rgw.py b/teuthology/task_util/rgw.py index d534f1f47fbff..cbe3071fbe5f4 100644 --- a/teuthology/task_util/rgw.py +++ b/teuthology/task_util/rgw.py @@ -111,6 +111,11 @@ def region_for_client(ctx, client): ceph_config.update(ctx.ceph.conf.get(client, {})) return ceph_config.get('rgw region') +def radosgw_data_log_window(ctx, client): + ceph_config = ctx.ceph.conf.get('global', {}) + ceph_config.update(ctx.ceph.conf.get('client', {})) + ceph_config.update(ctx.ceph.conf.get(client, {})) + return ceph_config.get('rgw data log window', 30) def radosgw_agent_sync_data(ctx, agent_host, agent_port, full=False): log.info('sync agent {h}:{p}'.format(h=agent_host, p=agent_port)) -- 2.39.5