Repository navigation
rgw/s3vector: adding s3vectors API support to the RGW - #66066
Conversation
Config Diff Tool Output+ added: rgw_s3vector_s3_region (rgw.yaml.in)
+ added: rgw_s3vector_s3_allow_http (rgw.yaml.in)
+ added: rgw_s3vector_backend (rgw.yaml.in)
+ added: rgw_s3vector_topk_post_filter_factor (rgw.yaml.in)
+ added: rgw_s3vector_s3_endpoint (rgw.yaml.in)
+ added: rgw_s3vector_local_path (rgw.yaml.in)
! changed: rgw_enable_apis: old: s3, s3control, s3website, swift, swift_auth, admin, sts, iam, notifications (rgw.yaml.in)
! changed: rgw_enable_apis: new: s3, s3control, s3website, swift, swift_auth, admin, sts, iam, notifications, s3vectors (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
Sorry to nitpick, could you replace the merge commit at the bottom with cherry-picks? |
removed the merge commit. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
teuthology test results: https://pulpito.ceph.com/yuvalif-2026-01-28_09:07:53-rgw-wip-s3vector-distro-default-trial/ 18 failures:
|
* remove the s3 backend option as it creates authentication issues * purging vectorbucket when user is deleted * making sure that user is not deleted when it has vector buckets * allow purging vector buckets with users's data * make sure that this works for accounts as well. for s3 backend where user credentials are needed * performing fine grained permission checks per operation: ==================== ============================== ================= S3 Vectors operation RGW SAL operations Permissions ==================== ============================== ================= CreateVectorBucket list, put, put_cond List, Put CreateIndex list, head, put, put_cond List, Get, Put PutVectors list, head, get, put, put_cond List, Get, Put DeleteVectors list, head, get, put, put_cond List, Get, Put GetVectors list, head, get List, Get ListVectors list, head, get List, Get QueryVectors list, head, get List, Get GetIndex list, head, get List, Get ListIndexes list, head, get List, Get DeleteVectorBucket list, head List, Get DeleteIndex list, head, delete List, Get, Delete ==================== ============================== ================= Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
* support added based on directory structure for local backend * tenant added as a parameter to the session for rgw backend Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
- using lancedb/lancedb-c#68 to allow for -ENOENT to be returned from table opening - `CreateVectorBucket`: verify the backend before creating the bucket metadata, so a failed request leaves nothing behind. Non-ENOENT load errors now fail the request - `DeleteVectorBucket`: -ENOENT from the backend is not an error — the metadata is deleted and the operation succeeds. so a bucket whose backend is gone can't get stuck. - `ListIndexes`: -ENOENT from the backend returns an empty list. so, listing before deletion would work even in case that DeleteVectorBucket was called and failed o nthe metadata - `DeleteIndex`: no -ENOENT tolerance, so a missing index returns 404 - to be spec complient Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
adding md5 and higher resolution mtime to identify an index that was deleted and recreated in the same second Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
without raw_utf8 every byte of a multi-byte character was escaped on its own as a separate code point, so: "café" came back as "café" Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5.1 Assisted-by: claude-code:claude-opus-5
* enforce the key name length only for declared keys * enforce backtics only for declared keys * make sure that utf8 keys are supported * make sure that keys are case sensitive * make sure that quotes and single quotes are supported Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
…anceDB ObjectStore 1) GoogleTest-based tests are added for the rgw_sal_wrapper C FFI API. This test can be exercised against all the backends. To be able to read config options (esp., for RADOS backend) it needs to read ceph.conf and hence takes its path as optional parameter. The cmd to execute - ./bin/ceph_test_rgw_sal_wrapper -c <path/to/ceph.conf> 2) Add arrow-rs integration tests that exercise the Rust ObjectStore trait implementation (lancedb-rgw-store) end-to-end through the real FFI boundary against a live SAL driver. 3) add teuthology workunits for SAL wrapper and LanceDB ObjectStore tests Add workunit scripts and a teuthology task to run ceph_test_rgw_sal_wrapper and ceph_test_rgw_lancedb_object_store as part of the rgw/verify suite. Assisted-by: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Yuval Lifshitz <[email protected]> Signed-off-by: Soumya Koduri <[email protected]> Assisted-by: claude-code:claude-opus-5
* make sure that any change to rust code triggers rebuild * if no change was done, rebuild should be a no-op * static verification that lancedb-c and the lancedb-rgw-store use the same internal struct for the provider Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-opus-5
remove rpath from installed objects Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5.1
3bb4a15 to
e0bc920
Compare
|
@cbodley @soumyakoduri @galsalomon66 the s3vectos teuthology tests are passing: code accumulated in this PR was reviewed in separate PRs (see: #66066 (comment) for the list of PRs as well as remaining work). please approve if you think this is ready for regression testing. |
* handle utf8 decode errors on admin output * dont run "local" backend in teuthology, since it requires radosgw-admin run as ceph or root for user data purging * avoid an extra period commit when disabling sync in teuthology. local runs still do it but wait for data sync to finish Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5.1
see: https://jenkins.ceph.com/job/ceph-pr-pipeline/1234/ Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5.1
prevent crashes in ceph_test_librgw_file_*. by defining the macro publicly on the rgw target, the same way WITH_RADOSGW_RADOS is handled. see: https://qa-proxy.ceph.com/teuthology/yuvalif-2026-09-16_08:06:42-rgw:verify-wip-s3vector-distro-default-trial/560036/remote/trial056/coredump/ Signed-off-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5.1
|
please wait until fix before testting |
ea5d4ff to
2359632
Compare
|
|
full rgw suite is mostly passing: https://pulpito-ng.ceph.com/runs/yuvalif-2026-09-17_05:10:33-rgw-wip-s3vector-distro-default-trial one test s3tests failed: @anrao19 @adamemerson please let me know if this is considered a pass? |
|
@cbodley @adamemerson any other tests that needs to run against that branch before merge? |
according to:
https://docs.aws.amazon.com/AmazonS3/latest/API/API_Operations_Amazon_S3_Vectors.html
Important Note
This is a feature branch for collaborative work on adding s3vectors API support to the RGW.
PRs should be opened against this branch ("wip-s3vector") and not "main".
Tasks
Frontend
encryptionConfigurationsupport to vector bucket creationBackground
LanceDB
boost::asio::yield_contextboost::asio::yield_contextthat can trickle to a C++ backend that supports this kind of async-IO (e.g. librados RGW wrappers)Backend
use S3 backend by pointing lancedb back to the RGWauto create the regular S3 bucket to hold the datafetch credentialsconnect librados as an alternative backend to lancedb-c - this should be done on a ceph fork of lancedb-cthis should be done on a ceph fork of lancedb-cChecklist