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
rgw: add check for ACL when create existing bucket #36978
Conversation
LGTM, brevity code. |
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Fixes: https://tracker.ceph.com/issues/47028 Signed-off-by: caolei <halei15848934852@163.com> Signed-off-by: Casey Bodley <cbodley@redhat.com>
i wrote an s3test case for this and it doesn't appear to work. there's extra code in |
see test cases in ceph/s3-tests#356 |
RGWStore::create_bucket() only returns EEXIST in case of conflicts that should be returned to the client as errors. the code that applies changes to metadata should instead use the s->bucket_exists flag Signed-off-by: Casey Bodley <cbodley@redhat.com>
@dang it looks like my latest commit resolved the tempest test failures in test_create_container_with_remove_metadata_key and test_create_container_with_remove_metadata_value. can you please review that one? https://pulpito.ceph.com/cbodley-2020-09-11_14:01:23-rgw-wip-cbodley-testing-distro-basic-smithi/ |
still having issues with the multisite |
RGWRadosStore::create_bucket() only returns EEXIST errors when a conflict is detected and the recreation should fail. in other cases, return success and use the 'bool *existed' flag to notify the caller of its prior existence Signed-off-by: Casey Bodley <cbodley@redhat.com>
How about this:
|
some cleanups for #35170:
operator==()
s to avoid having to encode buffers for comparisonoperator!=()
screate_bucket()
policy argument from an optional pointer to a const referenceoperator==()
Fixes: https://tracker.ceph.com/issues/47028
Checklist
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