Skip to content
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 the condition of lock mode conversion to PutObjRentention #42505

Merged
merged 1 commit into from Aug 5, 2021

Conversation

wzbxqt327
Copy link
Contributor

@wzbxqt327 wzbxqt327 commented Jul 27, 2021

Through the use and test of amazon S3, I found that when the lock mode is COMPLIANCE, it should not be changed to GOVERNANCE. When the lock mode is GOVERNANCE, it can be changed to COMPLIANCE only when the bypass is set.

Fixes: https://tracker.ceph.com/issues/52037

Signed-off-by: wangzhong wangzhong@cmss.chinamobile.com

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

@github-actions github-actions bot added the rgw label Jul 27, 2021
@wzbxqt327 wzbxqt327 changed the title rgw: add the condition of lock mode conversion judgment when PutObjRentention rgw: add the condition of lock mode conversion to PutObjRentention Jul 27, 2021
@wzbxqt327 wzbxqt327 force-pushed the put_obj_rentention branch 3 times, most recently from 5515ead to 24d18a8 Compare July 31, 2021 13:16
@wzbxqt327
Copy link
Contributor Author

hi @cbodley do you mind help review this?

src/rgw/rgw_op.cc Outdated Show resolved Hide resolved
Signed-off-by: wangzhong <wangzhong@cmss.chinamobile.com>
@cbodley
Copy link
Contributor

cbodley commented Aug 3, 2021

thanks @wzbxqt327, i opened https://tracker.ceph.com/issues/52037 to make sure this fix gets backported. can you please add this line to your commit message?

Fixes: https://tracker.ceph.com/issues/52037

@wzbxqt327
Copy link
Contributor Author

hi, @cbodley,I have added it

@cbodley
Copy link
Contributor

cbodley commented Aug 5, 2021

@cbodley cbodley merged commit c9b48ac into ceph:master Aug 5, 2021
@cbodley
Copy link
Contributor

cbodley commented Aug 5, 2021

thanks @wzbxqt327!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants