Skip to content

rgw: add json encode/decode to bucket layout types#39231

Closed
cbodley wants to merge 2 commits intoceph:masterfrom
cbodley:wip-rgw-bucket-layout-json
Closed

rgw: add json encode/decode to bucket layout types#39231
cbodley wants to merge 2 commits intoceph:masterfrom
cbodley:wip-rgw-bucket-layout-json

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Feb 2, 2021

adds a "layout" section to RGWBucketInfo:

            "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"
                                }
                            }
                        }
                    }
                ]
            }

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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 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>
adds a "layout" section to RGWBucketInfo

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

cbodley commented Feb 8, 2021

merged into #39002

@cbodley cbodley closed this Feb 8, 2021
@cbodley cbodley deleted the wip-rgw-bucket-layout-json branch February 8, 2021 16:15
@mattbenjamin
Copy link
Contributor

yay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants