Skip to content

rgw: add versioning info to radosgw-admin bucket stats output - #53813

Merged
ivancich merged 1 commit into
ceph:mainfrom
cfsnyder:wip-63092
Oct 19, 2023
Merged

ivancich merged 1 commit into
ceph:mainfrom
cfsnyder:wip-63092

Conversation

@cfsnyder

@cfsnyder cfsnyder commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

This allows admins to more easily identify whether a bucket has versioning / object lock/ mfa enabled.

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

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@cfsnyder
cfsnyder requested a review from a team as a code owner October 4, 2023 09:49
@github-actions github-actions Bot added the rgw label Oct 4, 2023
This allows admins to more easily identify whether a bucket
has versioning / object lock/ mfa enabled.

Fixes: https://tracker.ceph.com/issues/63092
Signed-off-by: Cory Snyder <[email protected]>
@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Oct 18, 2023
@ivancich

Copy link
Copy Markdown
Member

@cfsnyder, @dang, @cbodley : So this PR overlaps with #53027 somewhat in terms of describing the versioning status of a bucket. This PR provides the info as two booleans, and the earlier as one of three strings ("off", "enabled", "suspended"). Wondering if the former is sufficient?

@cfsnyder

Copy link
Copy Markdown
Contributor Author

I'm indifferent on how it's exposed but agree that we should remove the redundancy.

@cbodley

cbodley commented Oct 26, 2023

Copy link
Copy Markdown
Contributor

i have a slight preference for versioning=enabled|suspended|off in a single field

otherwise, one might misinterpret versioning_enabled=false on a versioning-suspended bucket to mean 'not versioned', or versioned=true on a versioning-suspended bucket to mean 'enabled'

@ivancich

Copy link
Copy Markdown
Member

OK, I just updated #54197, which I made yesterday, to remove the boolean information. My underlying goal of that PR is the ability to get enough information to accurately determine what the bucket index object names would be. Feel free to add comments to that PR if there are any objections are additional thoughts.

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