From f50cd083ed1c354ba223a3906a588d04975875b4 Mon Sep 17 00:00:00 2001 From: "Joe H. Rahme" Date: Tue, 11 Jun 2013 09:28:00 +0200 Subject: [PATCH] Updates README and other documentation fixes --- README.md | 8 ++++++++ etc/config.ini-sample | 7 +++---- tests/functional/test_syncer_filter.py | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ba8a442..c505be9 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,14 @@ first pass goes well, if for example there is network failure swsync will just skip it and hope to do it on the next run. So the tool can for instance be launched by a cron job to perform diff synchronization each night. +Tenant Filter File +------------------ + +It is possible to limit the migration to a subset of the total number of +tenants, by uncommenting the field "tenant_filter_file". This field should +hold the path to a file containing a list of tenant names to migrate, one +per line. If left commented, swsync will migrate all the tenants. + Swift Middleware last-modified ------------------------------ diff --git a/etc/config.ini-sample b/etc/config.ini-sample index 626e3ce..6497901 100644 --- a/etc/config.ini-sample +++ b/etc/config.ini-sample @@ -23,7 +23,6 @@ filler_swift_client_concurrency = 10 sync_swift_client_concurrency = 10 [sync] -# This fields holds the path the a file containing the list of tenant ids to -# migrate. If this field is left blank or commented out, swsync will migrate all -# the tenants. -tenant_filter_file = +# Uncomment this field to designate a file containing a list of tenant names +# to be migrated. If left commented, all the tenants will be targeted. +# tenant_filter_file = etc/tenants.list diff --git a/tests/functional/test_syncer_filter.py b/tests/functional/test_syncer_filter.py index e935f49..da4dff0 100644 --- a/tests/functional/test_syncer_filter.py +++ b/tests/functional/test_syncer_filter.py @@ -21,8 +21,8 @@ # to synchronize the destination swift must own the ResellerAdmin role in # keystone. # -# You must also create a file containing the list of users to migrate and -# specify this file in your config.ini file. +# In your config.ini file, you should uncomment the field tenant_filter_file +# and specify a path to a file where you're allowed to read and write. import eventlet import random