Skip to content

tentacle: rgw: add radosgw-admin bucket suspend/unsuspend commands - #71103

Merged
batrick merged 3 commits into
ceph:tentaclefrom
RaminNietzsche:wip-79544-tentacle
Sep 10, 2026
Merged

batrick merged 3 commits into
ceph:tentaclefrom
RaminNietzsche:wip-79544-tentacle

Conversation

@RaminNietzsche

@RaminNietzsche RaminNietzsche commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

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

  • Includes unittest_rgw_http_errors and QA workunit from main PR
  • Local (stg-hd1, tentacle tip): ninja bin/radosgw-admin unittest_rgw_http_errors + ./bin/unittest_rgw_http_errors → 3/3 PASSED

Checklist

  • Tracker
    • References tracker ticket
  • Component impact
    • No impact that needs to be tracked
  • Documentation
    • Updates relevant documentation
  • Tests
    • Includes unit test(s)

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

@github-actions

Copy link
Copy Markdown

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 ci-approved to allow Jenkins CI jobs to run.

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 17, 2026
@RaminNietzsche

Copy link
Copy Markdown
Member Author

Hi — Releng Audit is failing for two reasons:

  1. Missing Backport Tracker for tentacle: Backport ticket #79544 exists with the right Ceph Release / PR ID, but I cannot create the copied_to relation from parent #79540 (Redmine API returns 403). Could someone with relation permissions add copied to #79544 and then /audit retest?

  2. Cherry-pick Conflicts / Deviations: expected for this stable branch. The affected commit(s) already include a Conflicts: section documenting src/rgw/radosgw-admin/radosgw-admin.cc (WITH_RADOSGW_RADOS layout). After the Redmine link is fixed, this part still needs component-lead / release-manager review (or /audit override if the documented resolution looks good).

Thanks!

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@adamemerson adamemerson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase, then I'll add an audit override.

@adamemerson

Copy link
Copy Markdown
Contributor

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)
@RaminNietzsche

Copy link
Copy Markdown
Member Author

Rebased wip-79544-tentacle onto current tentacle (cc29ce8de01). The three cherry-picks applied cleanly; the existing Conflicts: note on radosgw-admin.cc is unchanged.

New tip: a7e7b697ad5.

Local (stg-hd1): ninja bin/radosgw-admin unittest_rgw_http_errors then ./bin/unittest_rgw_http_errors → 3/3 PASSED.

@adamemerson this is the rebase you asked for; /audit override is still welcome for the Redmine copied_to 403 on #79544.

@adamemerson adamemerson removed releng-audit-fail Release engineering: failed backport verification audit. needs-ci-approval labels Aug 26, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson

Copy link
Copy Markdown
Contributor

/audit queue

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@adamemerson

Copy link
Copy Markdown
Contributor

The PR is linked in the tracker, I've been trying to get the audit to pick it up.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/80189.
@RaminNietzsche , if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 10, 2026
@batrick
batrick merged commit 9e4551b into ceph:tentacle Sep 10, 2026
14 of 16 checks passed
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.

4 participants