From: Mark Kogan Date: Tue, 11 Dec 2018 17:43:32 +0000 (-0500) Subject: rgw: update the "radosgw-admin reshard status" X-Git-Tag: v15.1.0~2472^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8565ec0db69223ae71766ba000eecc0d2f7d14c2;p=ceph-ci.git rgw: update the "radosgw-admin reshard status" command documentation with expected output examples Fixes: http://tracker.ceph.com/issues/37615 Signed-off-by: Mark Kogan --- diff --git a/doc/radosgw/dynamicresharding.rst b/doc/radosgw/dynamicresharding.rst index 5fb5063b76a..4d1061932ff 100644 --- a/doc/radosgw/dynamicresharding.rst +++ b/doc/radosgw/dynamicresharding.rst @@ -85,6 +85,54 @@ Bucket resharding status # radosgw-admin reshard status --bucket +The output is a json array of 3 objects (reshard_status, new_bucket_instance_id, num_shards) per shard. + +For example, the output at different Dynamic Resharding stages is shown below: + +``1. Before resharding occurred:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + } + ] + +``2. During resharding:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_IN_PROGRESS", + "new_bucket_instance_id": "1179f470-2ebf-4630-8ec3-c9922da887fd.8652.1", + "num_shards": 2 + }, + { + "reshard_status": "CLS_RGW_RESHARD_IN_PROGRESS", + "new_bucket_instance_id": "1179f470-2ebf-4630-8ec3-c9922da887fd.8652.1", + "num_shards": 2 + } + ] + +``3, After resharding completed:`` +:: + + [ + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + }, + { + "reshard_status": "CLS_RGW_RESHARD_NONE", + "new_bucket_instance_id": "", + "num_shards": -1 + } + ] + + Cancel pending bucket resharding --------------------------------