Skip to content

radosgw-admin: add command to dump 'bucket layout'#44947

Closed
cbodley wants to merge 1 commit intoceph:wip-rgw-multisite-reshardfrom
cbodley:wip-rgw-admin-bucket-layout
Closed

radosgw-admin: add command to dump 'bucket layout'#44947
cbodley wants to merge 1 commit intoceph:wip-rgw-multisite-reshardfrom
cbodley:wip-rgw-admin-bucket-layout

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Feb 8, 2022

a radosgw-admin command to dump just the 'layout' field of RGWBucketInfo. this info is available under radosgw-admin metadata get for the bucket instance metadata, but this saves you from having to look up the bucket instance id

~/ceph/build $ bin/radosgw-admin bucket layout --bucket testbucket
{
    "layout": {
        "resharding": "None",
        "current_index": {
            "gen": 0,
            "layout": {
                "type": "Normal",
                "normal": {
                    "num_shards": 11,
                    "hash_type": "Mod"
                }
            }
        },
        "logs": [
            {
                "gen": 0,
                "layout": {
                    "type": "InIndex",
                    "in_index": {
                        "gen": 0,
                        "layout": {
                            "num_shards": 11,
                            "hash_type": "Mod"
                        }
                    }
                }
            }
        ]
    }
}
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Feb 9, 2022

merged into wip-rgw-multisite-reshard

@cbodley cbodley closed this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants