Skip to content

rgw: support more than one lua script per tenant/context - #71859

Open
yuvalif wants to merge 1 commit into
ceph:mainfrom
yuvalif:wip-kabicin-multi-lua-scripts
Open

yuvalif wants to merge 1 commit into
ceph:mainfrom
yuvalif:wip-kabicin-multi-lua-scripts

Conversation

@yuvalif

@yuvalif yuvalif commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
  • adds the radosgw-admin script list command
  • adds an optional --script-name argument to support loading and reading more than one lua script
  • uses a read-write-modify pattern to update the lua scripts with the RGWObjVersionTracker
  • uses bufferlist to read/write the script list metadata
  • updates lua python tests for multi script support
  • updates script list usage docs
  • checks the default script in the background context for backward compatibility

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.

@yuvalif
yuvalif requested review from a team as code owners September 17, 2026 08:37
@yuvalif
yuvalif removed the request for review from a team September 17, 2026 08:37
@yuvalif
yuvalif removed the request for review from a team September 17, 2026 08:37
@github-actions github-actions Bot added the rgw label Sep 17, 2026
@yuvalif
yuvalif requested a review from nbalacha September 17, 2026 08:37
@github-actions github-actions Bot added the tests label Sep 17, 2026
@yuvalif

yuvalif commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@nbalacha @kabicin sorry for the issue with the other PR. would need your approval on this one

@yuvalif

yuvalif commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-22-04:10.

@ivancich

Copy link
Copy Markdown
Member

QA run showed a lua failure:

failure_reason: 'Command failed (lua tests against rgw) on trial099 with status 1:
  "source /home/ubuntu/cephtest/tox-venv/bin/activate && cd /home/ubuntu/cephtest/ceph/src/test/rgw/lua/
  && LUATESTS_CONF=./lua-tests.client.0.conf tox -- -v -m ''basic_test or request_test
  or example_test''"'

Teuthology log: https://qa-proxy.ceph.com/teuthology/anuchaithra-2026-09-22_12:11:22-rgw-wip-anuchaithra-testing-20260922.041005-main-distro-default-trial/574601/teuthology.log

QA run: https://tracker.ceph.com/issues/80712

I'm removing the needs-qa label so this can be looked into.

@ivancich ivancich removed the needs-qa label Sep 22, 2026
@yuvalif

yuvalif commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

QA run showed a lua failure:

failure_reason: 'Command failed (lua tests against rgw) on trial099 with status 1:
  "source /home/ubuntu/cephtest/tox-venv/bin/activate && cd /home/ubuntu/cephtest/ceph/src/test/rgw/lua/
  && LUATESTS_CONF=./lua-tests.client.0.conf tox -- -v -m ''basic_test or request_test
  or example_test''"'

Teuthology log: https://qa-proxy.ceph.com/teuthology/anuchaithra-2026-09-22_12:11:22-rgw-wip-anuchaithra-testing-20260922.041005-main-distro-default-trial/574601/teuthology.log

QA run: https://tracker.ceph.com/issues/80712

I'm removing the needs-qa label so this can be looked into.

please note that this is a lua failure that exists on main. from the above log:

FAILED test_lua.py::test_cache_invalidation

is the same as mentioned in my above comment: #71859 (comment)

this is currently under review here: #71857

@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

- adds the radosgw-admin script list command
- adds an optional --script-name argument to support loading and reading more than one lua script
- uses a read-write-modify pattern to update the lua scripts with the RGWObjVersionTracker
- uses bufferlist to read/write the script list metadata
- updates lua python tests for multi script support
- updates script list usage docs
- checks the default script in the background context for backward
  compatibility

Signed-off-by: Kirby Chin <[email protected]>
@yuvalif
yuvalif force-pushed the wip-kabicin-multi-lua-scripts branch from 8c9c596 to a4a21a3 Compare September 24, 2026 12:11
@yuvalif

yuvalif commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

rebased.
@anrao19 @ivancich could you please re-test?
please note that the following tests are expected to fail (they cover issues that exists in main and are fixed in separate PRs):

  • test_cache_invalidation
  • test_interrupt_request

@anrao19

anrao19 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

rebased. @anrao19 @ivancich could you please re-test? please note that the following tests are expected to fail (they cover issues that exists in main and are fixed in separate PRs):

  • test_cache_invalidation
  • test_interrupt_request

sure @yuvalif

@anrao19

anrao19 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-30-07:26.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

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

@ivancich

ivancich commented Oct 5, 2026

Copy link
Copy Markdown
Member

@ivancich ivancich removed the needs-qa label Oct 5, 2026
@anrao19 anrao19 removed the wip-anrao6-testing wip-anrao6-testing label Oct 6, 2026
@anrao19

anrao19 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR has been removed from main integration testing by anuchaithra started 2026-09-30-07:26.

@yuvalif

yuvalif commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

During QA a lua test failed: https://pulpito.ceph.com/anuchaithra-2026-10-05_09:51:04-rgw-wip-anuchaithra-testing-20261005.070401-main-distro-default-trial/

It was part of this QA run: https://tracker.ceph.com/issues/81162

I'm removing the needs-qa label, so this can be looked into.

@ivancich, @anrao19 did you include the merged fix from #72317 in your test branch?
this is fixing the crash caused by the lua multi-delete work.
there is also the expected failure i nthe lua test mentioned above.
all the other failures seems unrelated.

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.

5 participants