1
0
mirror of https://github.com/ceph/ceph synced 2025-02-23 19:17:37 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
Yuval Lifshitz
5cec4f7195 doc/rgw/lua: add info uploading a script in cephadm deployment
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2023-05-10 13:37:26 +03:00
Yuval Lifshitz
e1051899e4 rgw/lua: allow read access to object data
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-08-21 20:51:52 +03:00
Casey Bodley
ec3b0025ce Revert "rgw/lua: allow read access to object data"
This reverts commit f4501f6970.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-15 14:51:55 -04:00
Yuval Lifshitz
f4501f6970 rgw/lua: allow read access to object data
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-08-04 19:22:13 +03:00
Yuval Lifshitz
89ef51a81b rgw/lua: allow bucket name override in pre request
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-07-05 21:12:57 +03:00
Josh Soref
8abce157f1 doc: Fix many spelling errors
* administrators
* allocated
* allowed
* approximate
* authenticate
* availability
* average
* behavior
* binaries
* bootstrap
* bootstrapping
* capacity
* cephadm
* clients
* combining
* command
* committed
* comparison
* compiled
* consequences
* continues
* convenience
* cookie
* crypto
* dashboard
* deduplication
* defaults
* delivered
* deployment
* describe
* directory
* documentation
* dynamic
* elimination
* entries
* expectancy
* explicit
* explicitly
* exporter
* github
* hard
* healthcheck
* heartbeat
* heavily
* http
* indices
* infrastructure
* inherit
* layout
* lexically
* likelihood
* logarithmic
* manually
* metadata
* minimization
* minimize
* object
* of
* operation
* opportunities
* overwrite
* prioritized
* recipe
* records
* requirements
* restructured
* running
* scalability
* second
* select
* significant
* specify
* subscription
* supported
* synonym
* throttle
* unpinning
* upgraded
* value
* version
* which
* with

Plus some line wrapping and additional edits...

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2022-07-02 23:38:18 -04:00
Yuval Lifshitz
e2aa88eddb
Merge pull request from zenomri/wip-omri-tracing-lua
rgw: add SetAttribute and AddEvent functions for TraceMetaTable in Lua

Reviewed-by: yuvalif
2022-06-14 12:22:21 +03:00
Omri Zeneva
6e43859106 doc: add explanation about the new two functions and example
Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
2022-06-13 02:05:11 -04:00
Yuval Lifshitz
2a6039c2f6 rgw/lua: add atomic increment/decrement to RGW table
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-06-09 21:43:51 +03:00
Yuval Lifshitz
c824b00239
Merge pull request from Matan-B/lua-rgw-map
rgw: Lua scripting global map feature
Reviwed-by: dang, cbodley, yuvalif, anthonyeleven, tchaikov,  mattbenjamin, batrick
2022-06-08 08:32:35 +03:00
Yuval Lifshitz
f9d3be6e56 rgw/doc: fix lua background documentation
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-05-31 14:37:44 +03:00
Yuval Lifshitz
17f72562b2
Merge pull request from zenomri/wip-cond-tracing
rgw: support conditional tracing using lua script

Reviewed-by: Casey Bodley <cbodley@redhat.com>, Yuval Lifshitz <ylifshit@redhat.com>
2022-05-16 17:26:50 +03:00
Omri Zeneva
6ec1565b14 rgw: support conditional tracing using lua script
before lua script is being executed, we keep the tracer runtime configuration value, and then decides whether to trace or not the request based on the value that maybe changed during lua exeuction, so we can disable/enable tracing for request even if the tracer is in the opposite state at the same time

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
2022-05-11 11:10:02 +03:00
Matan Breizman
4856c7d514 rgw: Lua scripting global map feature
Adding a lua background class. This class aims to allow to run a background
Lua script and bind a shared Lua table with a cpp map.

Signed-off-by: Matan Breizman <Matan.Brz@gmail.com>
2022-05-08 14:10:32 +03:00
Omri Zeneva
cd97a30bed rgw: support bucket name in pre request context
because bucket object is created only after authentication,
if bucket object is null upon accessing Request.Bucket.Name, we return req_state->init_state.url_bucket

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
2022-05-01 10:31:03 +03:00
Dimitri Papadopoulos
7677651618
doc,man: typos found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2021-12-15 12:04:36 +01:00
Curt Bruns
32dd91fb7a rgw/lua: allow read/write of StorageClass field
Admins may setup different pools for RGW objects and
having the StorageClass field mutable allows the steering
of RGW objects to the proper pools.

Signed-off-by: Curt Bruns <curt.e.bruns@gmail.com>
2021-10-18 18:51:14 -04:00
Yuval Lifshitz
6fb6a8e3ea
Merge pull request from Matan-B/lua-request-userId
rgw: Added request field to lua scripting
2021-07-19 18:01:27 +03:00
Matan Breizman
7c04b0c30a rgw: Adding missing field to lua scripting
adding "User Identity" field to lua scripting

Signed-off-by: Matan Breizman <Matan.Brz@gmail.com>
2021-07-01 14:54:50 +00:00
Matan Breizman
ba3013e212 rgw: add package version support to lua scripting
This patch allows users to set the package version when adding packages
to rgw's luarocks package manager.

Signed-off-by: Matan Breizman <Matan.Brz@gmail.com>
2021-06-29 13:05:29 +00:00
Yuval Lifshitz
f5dd15e021 rgw/lua: allow for multiple RGWs to install packages in the same host
each RGW will install the luarocks packages in its own directory

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-12-15 10:27:42 +02:00
Yuval Lifshitz
6ef3e52a3f rgw/lua: support packages via luarocks
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-12-04 09:55:56 +02:00
Yuval Lifshitz
eaf48d1a3a rgw/lua: allow setting metadata via lua
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-10-30 10:40:06 +02:00
Yuval Lifshitz
270d1117bb rgw/lua: run lua scripts in s3 requests context
for more details on design and
remaining work see:
https://gist.github.com/yuvalif/60d5984c28af89ba17443ce947540c1f

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-10-12 22:23:37 +03:00