From: Casey Bodley Date: Mon, 30 Apr 2018 14:52:37 +0000 (-0400) Subject: radosgw-admin: rename 'bucket sync status' to 'bucket sync markers' X-Git-Tag: v12.2.6~131^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91598fb1ccb0904e78652bf28e7885b4d985e48a;p=ceph.git radosgw-admin: rename 'bucket sync status' to 'bucket sync markers' renames the command to 'bucket sync markers' because it only returns the local sync status markers for use in multisite tests Signed-off-by: Casey Bodley (cherry picked from commit 2df2b0665d12dd9e47bf7155a1c6335c2d1a3bf4) Conflicts: src/rgw/rgw_admin.cc (no readonly_ops_list) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index b46fca2c1bdc..d7eeeeaa54a8 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -358,7 +358,7 @@ enum { OPT_BUCKET_UNLINK, OPT_BUCKET_STATS, OPT_BUCKET_CHECK, - OPT_BUCKET_SYNC_STATUS, + OPT_BUCKET_SYNC_MARKERS, OPT_BUCKET_SYNC_INIT, OPT_BUCKET_SYNC_RUN, OPT_BUCKET_SYNC_DISABLE, @@ -620,8 +620,8 @@ static int get_cmd(const char *cmd, const char *prev_cmd, const char *prev_prev_ } } else if (prev_prev_cmd && strcmp(prev_prev_cmd, "bucket") == 0) { if (strcmp(prev_cmd, "sync") == 0) { - if (strcmp(cmd, "status") == 0) - return OPT_BUCKET_SYNC_STATUS; + if (strcmp(cmd, "markers") == 0) + return OPT_BUCKET_SYNC_MARKERS; if (strcmp(cmd, "init") == 0) return OPT_BUCKET_SYNC_INIT; if (strcmp(cmd, "run") == 0) @@ -6617,7 +6617,7 @@ next: return -ret; } - if (opt_cmd == OPT_BUCKET_SYNC_STATUS) { + if (opt_cmd == OPT_BUCKET_SYNC_MARKERS) { if (source_zone.empty()) { cerr << "ERROR: source zone not specified" << std::endl; return EINVAL; diff --git a/src/test/rgw/rgw_multi/tests.py b/src/test/rgw/rgw_multi/tests.py index 794d0ced540b..df8b220f771b 100644 --- a/src/test/rgw/rgw_multi/tests.py +++ b/src/test/rgw/rgw_multi/tests.py @@ -251,7 +251,7 @@ def bucket_sync_status(target_zone, source_zone, bucket_name): if target_zone == source_zone: return None - cmd = ['bucket', 'sync', 'status'] + target_zone.zone_args() + cmd = ['bucket', 'sync', 'markers'] + target_zone.zone_args() cmd += ['--source-zone', source_zone.name] cmd += ['--bucket', bucket_name] while True: @@ -262,7 +262,7 @@ def bucket_sync_status(target_zone, source_zone, bucket_name): assert(retcode == 2) # ENOENT bucket_sync_status_json = bucket_sync_status_json.decode('utf-8') - log.debug('current bucket sync status=%s', bucket_sync_status_json) + log.debug('current bucket sync markers=%s', bucket_sync_status_json) sync_status = json.loads(bucket_sync_status_json) markers={}