Skip to content

umbrella: rgw: add radosgw-admin bucket suspend/unsuspend commands - #71105

Merged
batrick merged 3 commits into
ceph:umbrellafrom
RaminNietzsche:wip-79546-umbrella
Oct 29, 2026
Merged

batrick merged 3 commits into
ceph:umbrellafrom
RaminNietzsche:wip-79546-umbrella

Conversation

@RaminNietzsche

@RaminNietzsche RaminNietzsche commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Backport of #69645 to umbrella.

Add per-bucket suspend/unsuspend via radosgw-admin; S3/Swift get 403 BucketSuspended.

Why umbrella: the same feature is useful on umbrella; 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.
No manual conflict resolution was required.

Parent tracker: https://tracker.ceph.com/issues/79540
Official backport tracker: https://tracker.ceph.com/issues/79623

Testing

  • Includes unittest_rgw_http_errors and QA workunit from main PR
  • Not run locally on umbrella yet

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/79546

@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 github-actions Bot added this to the umbrella milestone Aug 17, 2026
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 currently failing on Missing Backport Tracker for umbrella.

The Backport ticket already exists as #79546 (Ceph Release=umbrella, Pull request ID=71105), but my Redmine account gets HTTP 403 when creating the required copied_to relation from parent #79540.

Could someone with Redmine relation permissions please add:

…and then comment /audit retest? I also left a note on the parent tracker. Thanks!

@RaminNietzsche

Copy link
Copy Markdown
Member Author

Ping for review, please.

This is the umbrella backport of merged #69645 (tracker #79546). needs-rebase is green and the PR is MERGEABLE. There is no Jenkins make-check yet because of needs-ci-approval.

@ceph/rgw could someone take a look and, if you are a Ceph org member, add ok to test / ci-approved?

Releng Audit is still Missing Backport Tracker because I cannot create the copied_to relation from parent #79540 → #79546 (Redmine 403). If someone with tracker permissions can add that relation, /audit retest should follow. If that is the only remaining audit item, a maintainer /audit override is also welcome.

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@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

ok to test

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 26, 2026
@RaminNietzsche

Copy link
Copy Markdown
Member Author

jenkins test docs

@anrao19

anrao19 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to umbrella integration testing by anuchaithra started 2026-10-06-07:47.

@anrao19

anrao19 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to umbrella integration testing by anuchaithra started 2026-10-06-07:47.

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

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)
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)
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Oct 27, 2026
@RaminNietzsche

Copy link
Copy Markdown
Member Author

jenkins test windows

@batrick batrick modified the milestones: umbrella, v21.2.1 Oct 29, 2026
@batrick
batrick merged commit 40d832b into ceph:umbrella Oct 29, 2026
15 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