]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw utils: add function to get data log window configuration
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 10 Mar 2014 07:22:39 +0000 (00:22 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 10 Mar 2014 07:29:50 +0000 (00:29 -0700)
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task_util/rgw.py

index d534f1f47fbff47ee2486c8879372f9e92a31acd..cbe3071fbe5f4bfac3fd040f4a13a08f084f1dfd 100644 (file)
@@ -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))