-
Notifications
You must be signed in to change notification settings - Fork 279
rgw/admin: support check-bucket-index #1098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
That's directly related the checkbox above. We have a policy of marking APIs preview for two releases. Preview apis are subject to change. So we ask users of go-ceph to opt-in to the preview apis by using a build tag. You need to add lines to your new files marking them as preview. For example: go-ceph/rados/rados_getaddrs.go Line 1 in 8dac64f
Also see https://github.com/ceph/go-ceph/blob/master/docs/development.md#documentation-conventions |
Thank you very much. Somehow I have misinterpreted this is for new/unstable APIs in Ceph itself. |
|
From the CI logs, it looks like the response does not match the response entity from the docs. |
0dc6abe to
56fe0d7
Compare
|
The JSON returned from Ceph Octopus is different and fails to unmarshal, thus I'm skipping this version in the tests and added a warning that the method is not compatible with Octopus. []{}{"existing_header":{"usage":{}},"calculated_header":{"usage":{}}} |
|
If the API doesn't work on octopus you should add a build tag, such as |
2cc6d10 to
9820b7d
Compare
Adjusted. |
phlogistonjohn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please seperate the typo correction in the implements README.md from the new api. Have them be two separate commits. Thanks!
9820b7d to
5cf1301
Compare
Adjusted. |
phlogistonjohn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on my small knowledge of rgw, this looks OK to me.
ansiwen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general. I set do-no-merge to give @thotz still a chance to have a look if he's around.
|
@Mergifyio rebase |
Signed-off-by: Simon Jürgensmeyer <simon.juergensmeyer@hetzner-cloud.de>
Signed-off-by: Simon Jürgensmeyer <simon.juergensmeyer@hetzner-cloud.de>
✅ Branch has been successfully rebased |
5cf1301 to
fd7ea90
Compare
|
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks. You may have to fix your CI before adding the pull request to the queue again. |
Add the RadosGW Check Bucket Index call.
I'm not quite sure if my implementation is correct, the returned status is always an empty string.Sample output from
radosgw-admin bucket check --bucket <BUCKET> --fix --format=json:{ "invalid_multipart_entries": [], "check_result": { "existing_header": { "usage": { "rgw.main": { "size": 151095539, "size_actual": 151097344, "size_utilized": 151095539, "size_kb": 147555, "size_kb_actual": 147556, "size_kb_utilized": 147555, "num_objects": 1 }, "rgw.multimeta": { "size": 0, "size_actual": 0, "size_utilized": 0, "size_kb": 0, "size_kb_actual": 0, "size_kb_utilized": 0, "num_objects": 0 } } }, "calculated_header": { "usage": { "rgw.main": { "size": 151095539, "size_actual": 151097344, "size_utilized": 151095539, "size_kb": 147555, "size_kb_actual": 147556, "size_kb_utilized": 147555, "num_objects": 1 } } } } }Checklist
//go:build ceph_previewmake api-updateto record new APIsNew or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.
The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with
@Mergifyiorebaseto rebase your PR when github indicates that the PR is out of date with the base branch.