Skip to content

RGW: Add Bucket metadata attribute for Lua scripts - #67219

Merged
anrao19 merged 1 commit into
ceph:mainfrom
mertsunacoglu:wip-lua-bucket-metadata
Apr 20, 2026
Merged

anrao19 merged 1 commit into
ceph:mainfrom
mertsunacoglu:wip-lua-bucket-metadata

Conversation

@mertsunacoglu

@mertsunacoglu mertsunacoglu commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor

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

This PR exposes bucket custom attributes (s->bucket_attrs) to the RGW Lua Request.Bucket.Metadata table.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@mertsunacoglu
mertsunacoglu requested a review from a team as a code owner February 4, 2026 14:11
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

14 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@mertsunacoglu
mertsunacoglu force-pushed the wip-lua-bucket-metadata branch from d065c48 to ceebe78 Compare February 4, 2026 14:16
@mertsunacoglu
mertsunacoglu requested a review from a team as a code owner February 4, 2026 14:16
@mertsunacoglu
mertsunacoglu force-pushed the wip-lua-bucket-metadata branch 3 times, most recently from 58b4262 to fdda890 Compare February 4, 2026 14:20
@cbodley

cbodley commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

discussed in standup, hopefully we can expose just bucket tags (through the RGW_ATTR_TAGS attr) rather than all bucket attributes

@mertsunacoglu mertsunacoglu changed the title RGW: Add Bucket metadata attribute for ĺua scripts RGW: Add Bucket metadata attribute for Lua scripts Feb 5, 2026
@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

@cbodley I've updated the PR to expose the tags from RGW_ATTR_TAGS.

Comment thread src/rgw/rgw_lua_request.cc Resolved
Comment thread src/test/rgw/test_rgw_lua.cc Resolved
Comment thread src/rgw/rgw_lua_request.cc Resolved
@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

Hi @yuvalif, following up on this PR. I've updated the branch recently. Could you let me know if there is anything else you need from me?

Comment thread src/rgw/rgw_lua_request.cc Resolved
@yuvalif

yuvalif commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Hi @yuvalif, following up on this PR. I've updated the branch recently. Could you let me know if there is anything else you need from me?

found one issue. either use a "stateful iterator" or remove iteration support, if you do not need it for your usecase?

@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

I do not really need the iteration support for my use case. I just need the IndexClosure so I am removing it for now. WE can open a new PR for the iteration in the future if it is needed.

@mertsunacoglu
mertsunacoglu force-pushed the wip-lua-bucket-metadata branch from bb9f67f to ca88197 Compare March 18, 2026 09:53
Comment thread doc/radosgw/lua-scripting.rst Resolved
@yuvalif
yuvalif self-requested a review March 18, 2026 11:12
@yuvalif

yuvalif commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

@mertsunacoglu please squash the commits

Expose bucket tags (from RGW_ATTR_TAGS) to the RGW Lua Request.Bucket.Tags table, allowing lua scripts to read these tags.

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

Signed-off-by: Emin Sunacoglu <[email protected]>

Apply suggestion from @yuvalif

Co-authored-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Emin Mert Sunacoglu <[email protected]>
@mertsunacoglu
mertsunacoglu force-pushed the wip-lua-bucket-metadata branch from 62f41ed to 6e09062 Compare March 30, 2026 07:53
@anrao19

anrao19 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

FYI, pr testing is in progress...
Tracker created for same is : https://tracker.ceph.com/issues/75779

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@anrao19

anrao19 commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

FYI, pr testing is in progress... Tracker created for same is : https://tracker.ceph.com/issues/75779

Pr testing completed. Tacker approved by @ivancich. More details : https://tracker.ceph.com/issues/75779
@mertsunacoglu, if no further testing needed, pr can be merged

@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

No further testing needed from my side. Thank you! I don't think I have the required permissions to merge this myself, so please go ahead when ready.

@anrao19
anrao19 merged commit 4924831 into ceph:main Apr 20, 2026
6 checks passed
irq0 added a commit to irq0/ceph that referenced this pull request Jun 4, 2026
Retroactive <uuid>.md for the Lua write-lock backport (postAuth hook,
bucket tags, request blocking) already landed on this branch as merge
commit 14149f3.

Backport-Id: 019e92ed-d2cb-72c0-a34e-b5bf55eac620
Backport-Merge: 14149f3
Upstream-PRs: ceph#66065, ceph#67219, ceph#66567, ceph#67548
irq0 added a commit to cobaltcore-dev/ceph that referenced this pull request Jun 10, 2026
Backport-Id: 019eb1e8-4991-7231-abf9-77cb82dcb746
Backport-PR: #6
Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Sep 25, 2026
Backport-Id: 01a0d3b1-e48a-7f08-ab0d-0a549f628691
Backport-PR: #17
Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Oct 8, 2026
Backport-Id: 01a11b0e-da4d-7890-bfeb-43841f3aab2d
Backport-PR: #24
Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Oct 14, 2026
Backport-Id: 01a0d3b1-e48a-7f08-ab0d-0a549f628691
Backport-PR: #17
Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Oct 16, 2026
Backport-Id: 01a14402-60b5-7b0e-9e40-46b110a790de
Backport-PR: #32
Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
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.

6 participants