Repository navigation
tentacle: rgw: add radosgw-admin bucket suspend/unsuspend commands - #71103
Conversation
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
|
Hi — Releng Audit is failing for two reasons:
Thanks! |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
adamemerson
left a comment
There was a problem hiding this comment.
Please rebase, then I'll add an audit override.
|
ok to test |
Add per-bucket suspend and unsuspend via radosgw-admin without suspending the bucket owner. S3 and Swift requests against a suspended bucket fail with 403 BucketSuspended (distinct from UserSuspended). Expose the suspended field in bucket stats output. Propagate read_bucket_policy errors from rgw_build_bucket_policies so suspended buckets are rejected during permission setup rather than falling through to unrelated S3 errors. Includes admin documentation, release note, QA workunit, and unit tests. Signed-off-by: ramin.najarbashi <[email protected]> (cherry picked from commit 6439e70) Conflicts: src/rgw/radosgw-admin/radosgw-admin.cc tentacle does not wrap bucket check/sync under WITH_RADOSGW_RADOS like main; keep suspend/unsuspend enums and commands without introducing those ifdefs. Add BUCKET_SUSPEND/UNSUSPEND to non_master_ops_list alongside existing BUCKET_CHOWN/METADATA/MFA.
Add RGWBucketInfo::bucket_suspended() helper and use it in the GET/policy and admin stats paths. Log read_bucket_policy failures in rgw_build_bucket_policies. Align QA workunit credentials with the standard vstart access key pair. Signed-off-by: ramin.najarbashi <[email protected]> (cherry picked from commit 09a3e44)
Include bucket suspend/unsuspend in the CLI help golden so run-cli-tests matches the new admin commands. Signed-off-by: ramin.najarbashi <[email protected]> (cherry picked from commit b4b8d4a)
462d1e3 to
a7e7b69
Compare
|
Rebased New tip: Local (stg-hd1): @adamemerson this is the rebase you asked for; |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
/audit queue |
|
/audit override |
|
The PR is linked in the tracker, I've been trying to get the audit to pick it up. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #71103 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 0d0712d rgw: add radosgw-admin bucket suspend/unsuspend commands | PR #69645 | 6439e70 rgw: add radosgw-admin bucket suspend/unsuspend commands |
| c9e43c9 rgw: address bucket suspend review feedback | 09a3e44 rgw: address bucket suspend review feedback | |
| a7e7b69 rgw: update radosgw-admin help.t for bucket suspend | b4b8d4a rgw: update radosgw-admin help.t for bucket suspend |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 0d0712d (cherry-pick of 6439e70)
Affected File(s)
src/rgw/radosgw-admin/radosgw-admin.cc
Range Diff
Click to expand
--- Original (6439e70b)
+++ Backport (0d0712dd)
@@ -12,3 +12,11 @@
Includes admin documentation, release note, QA workunit, and unit tests.
Signed-off-by: ramin.najarbashi <[email protected]>
+(cherry picked from commit 6439e70bfb264b91218be4f1f96dfd3703515384)
+
+Conflicts:
+ src/rgw/radosgw-admin/radosgw-admin.cc
+ tentacle does not wrap bucket check/sync under WITH_RADOSGW_RADOS
+ like main; keep suspend/unsuspend enums and commands without
+ introducing those ifdefs. Add BUCKET_SUSPEND/UNSUSPEND to
+ non_master_ops_list alongside existing BUCKET_CHOWN/METADATA/MFA.
================================================================================
RANGE DIFF
================================================================================
1: 6439e70bfb2 ! 1: 0d0712dd700 rgw: add radosgw-admin bucket suspend/unsuspend commands
@@ Commit message
Includes admin documentation, release note, QA workunit, and unit tests.
Signed-off-by: ramin.najarbashi <[email protected]>
+ (cherry picked from commit 6439e70bfb264b91218be4f1f96dfd3703515384)
+
+ Conflicts:
+ src/rgw/radosgw-admin/radosgw-admin.cc
+ tentacle does not wrap bucket check/sync under WITH_RADOSGW_RADOS
+ like main; keep suspend/unsuspend enums and commands without
+ introducing those ifdefs. Add BUCKET_SUSPEND/UNSUSPEND to
+ non_master_ops_list alongside existing BUCKET_CHOWN/METADATA/MFA.
## PendingReleaseNotes ##
@@
@@ src/rgw/radosgw-admin/radosgw-admin.cc: void usage()
cout << " bucket check check bucket index by verifying size and object count stats\n";
cout << " bucket check olh check for olh index entries and objects that are pending removal\n";
@@ src/rgw/radosgw-admin/radosgw-admin.cc: enum class OPT {
- #endif
+ BUCKET_UNLINK,
BUCKET_LAYOUT,
BUCKET_STATS,
+ BUCKET_SUSPEND,
+ BUCKET_UNSUSPEND,
- #ifdef WITH_RADOSGW_RADOS
BUCKET_CHECK,
BUCKET_CHECK_OLH,
+ BUCKET_CHECK_UNLINKED,
@@ src/rgw/radosgw-admin/radosgw-admin.cc: static SimpleCmd::Commands all_cmds = {
- #endif
+ { "bucket unlink", OPT::BUCKET_UNLINK },
{ "bucket layout", OPT::BUCKET_LAYOUT },
{ "bucket stats", OPT::BUCKET_STATS },
+ { "bucket suspend", OPT::BUCKET_SUSPEND },
+ { "bucket unsuspend", OPT::BUCKET_UNSUSPEND },
- #ifdef WITH_RADOSGW_RADOS
{ "bucket check", OPT::BUCKET_CHECK },
{ "bucket check olh", OPT::BUCKET_CHECK_OLH },
+ { "bucket check unlinked", OPT::BUCKET_CHECK_UNLINKED },
@@ src/rgw/radosgw-admin/radosgw-admin.cc: int main(int argc, const char **argv)
- #ifdef WITH_RADOSGW_RADOS
+ OPT::USER_SUSPEND, OPT::SUBUSER_CREATE,
+ OPT::SUBUSER_MODIFY, OPT::SUBUSER_RM,
OPT::BUCKET_LINK, OPT::BUCKET_UNLINK,
- #endif
-- OPT::BUCKET_CHOWN,
+- OPT::BUCKET_CHOWN, OPT::METADATA_PUT,
+ OPT::BUCKET_CHOWN,
+ OPT::BUCKET_SUSPEND,
+ OPT::BUCKET_UNSUSPEND,
- #ifdef WITH_RADOSGW_RADOS
- OPT::METADATA_PUT,
- OPT::METADATA_RM,
++ OPT::METADATA_PUT,
+ OPT::METADATA_RM, OPT::MFA_CREATE,
+ OPT::MFA_REMOVE, OPT::MFA_RESYNC,
+ OPT::CAPS_ADD, OPT::CAPS_RM,
@@ src/rgw/radosgw-admin/radosgw-admin.cc: next:
}
}How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @adamemerson. |
|
pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80189. |
Summary
Backport of #69645 to tentacle.
Add per-bucket suspend/unsuspend via radosgw-admin; S3/Swift get 403 BucketSuspended.
Why tentacle: the same feature is useful on tentacle; operators need per-bucket suspend without suspending the owner user.
Minimal change: cherry-pick of all commits from PR #69645 with
git cherry-pick -x.Conflict in
src/rgw/radosgw-admin/radosgw-admin.cc: tentacle does not wrap bucket check/sync under WITH_RADOSGW_RADOS; added BUCKET_SUSPEND/UNSUSPEND without those ifdefs.Parent tracker: https://tracker.ceph.com/issues/79540
Official backport tracker: https://tracker.ceph.com/issues/79624
Testing
ninja bin/radosgw-admin unittest_rgw_http_errors+./bin/unittest_rgw_http_errors→ 3/3 PASSEDChecklist
Fixes: https://tracker.ceph.com/issues/79544