Skip to content

rgw/s3vectors: Allow Objects in Vector Buckets - #72180

Merged
yuvalif merged 8 commits into
ceph:mainfrom
soumyakoduri:wip-skoduri-vector-bucket
Oct 21, 2026
Merged

yuvalif merged 8 commits into
ceph:mainfrom
soumyakoduri:wip-skoduri-vector-bucket

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR enables object storage in vector buckets, allowing LanceDB data to be stored directly in the VectorBucket instead of using regular S3 bucket.

  1. A new boolean config option "rgw_s3vector_data_s3_bucket" is added to control storage selection for rgw backend.
  • false (default): Store LanceDB files directly in the vector bucket.
  • true: Store LanceDB files in a separate S3 bucket with the same name. That S3 bucket must exist before the vector bucket is created.

storage mode is selected based on this option value during VectorBucket creation and will remain the same through out that bucket lifecyle. Configuration changes affect only newly created vector buckets; they do not migrate existing data. The local filesystem backend is unaffected.

  1. This PR also handles changes to allow vector-bucket and S3 bucket share same bucket-instance namespace.

With this, S3 and vector buckets retain separate entrypoints and listings while sharing the bucket-instance metadata namespace. Distinct bucket IDs keep their data separate, even when their names match. Native vector objects are accessible through internal RGW operations, not through the S3 object API.

Below is the feature status for native vector buckets:

TODO: (will be addressed as follow-up)
Resharding
Vector Bucket Policies
User-selected storage through bucket tags/attrs (apart from admin controlled config options)
Quota,
chown,
Bucket and Owner stats,
Usage accounting,

NA:
S3 SetACL API - Not exposed for vector buckets; the default owner ACL is retained
Multisite replication - Disabled for vector metadata and data
Lifecycle, object expiration, cloud transition and restore - Not supported for native vector storage

GC and deduplication are expected to use the existing bucket-agnostic mechanisms; they should be working for vector buckets as well.

Signed-off-by: Soumya Koduri [email protected]

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.

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-vector-bucket branch 2 times, most recently from c14e67a to 0210e1e Compare October 1, 2026 09:57
Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
Comment thread src/rgw/driver/rados/rgw_rados.h Resolved
Comment thread src/rgw/driver/rados/rgw_rados.h Resolved
Comment thread src/rgw/driver/rados/rgw_sal_rados.cc Resolved
Comment thread src/rgw/driver/rados/rgw_sal_rados.cc Resolved
Comment thread src/rgw/driver/rados/rgw_sal_rados.h Resolved
Comment thread src/rgw/lancedb-rgw-store/src/ffi.rs Resolved
Comment thread src/rgw/rgw_bucket.cc Resolved
Comment thread src/rgw/rgw_rest_s3vector.cc Resolved
Comment thread src/rgw/rgw_rest_s3vector.cc Resolved
Comment thread doc/radosgw/s3vectors.rst Resolved
@github-actions

github-actions Bot commented Oct 7, 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

1 similar comment
@github-actions

github-actions Bot commented Oct 7, 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

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-vector-bucket branch from 0210e1e to 28c6ccb Compare October 13, 2026 13:50
@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: rgw_s3vector_data_s3_bucket (rgw.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

Comment thread src/rgw/rgw_rest_s3vector.cc Resolved
Reuse the bucket object interface for vector buckets while preserving
separate entrypoints and owner listings. Initialize their bucket indexes
and route LanceDB object operations through the vector bucket namespace.

Add rgw_s3vector_data_s3_bucket to retain the option of a same-name S3
backing bucket. Persist the storage choice on creation and use it for
short-lived and cached sessions so configuration changes affect only new
vector buckets. Defer session caching until after metadata creation.

Clean up native objects, multipart uploads, and bucket indexes on removal.
Update documentation and tests for storage-mode persistence, namespace
isolation, and native vector bucket ownership.

Assisted-by: Codex:GPT-6-Astra
Signed-off-by: Soumya Koduri <[email protected]>
Assisted-by: Claude Fable 5.1
@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

Separate REST inputs from server-resolved backend settings in
VectorBucketConfig. Use one initializer for all vector REST operations,
resolving storage mode from the bucket metadata already loaded with the
request yield context.

Pass backend_config through permission checks, bucket creation and
connection helpers so LanceDB execution does not perform blocking metadata
reads. Resolve administrative cleanup settings before entering its
alternate stack. Leave storage_mode unset for ListVectorBuckets, which
has no individual target bucket.

Assisted-by: Codex:GPT-6-Astra
Signed-off-by: Soumya Koduri <[email protected]>
Assisted-by: Claude Fable 5.1
* Include both the storage-modes in the tests and also teuthology-suite

* Cover account and tenant-account ownership in storage-mode and shared
instance tests. Qualify bucket-only admin lookups with namespace/name
and verify that account data remains accessible after creator deletion.

* Set the post-filtering candidate multiplier explicitly and use fixed
vectors so the expected nearest-neighbor ordering is deterministic.
Always remove the test buckets and indexes after failures.

* lower verbosity of skipped session deletion notices

Assisted-by: Codex:GPT-6-Astra
Signed-off-by: Soumya Koduri <[email protected]>
Assisted-by: Claude Fable 5.1
@yuvalif
yuvalif force-pushed the wip-skoduri-vector-bucket branch from f5b3a4c to 260ac61 Compare October 18, 2026 12:54
Use one bucket.instance metadata handler for regular and vector buckets,
removing per-entry type reads from instance listings. Skip remote vector
metadata before local I/O and reject changes to an existing bucket type.

Include testcases (for basic ops) for both the bucket types.

Signed-off-by: Soumya Koduri <[email protected]>
Remove the redundant ownership check for native vector storage. Keep the
additional permission checks for separate S3 backing buckets.

Parameterize all SAL wrapper functional cases for S3 and native vector
buckets, including bucket setup and cleanup.

Signed-off-by: Soumya Koduri <[email protected]>
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-vector-bucket branch from 283402a to 3b09d9f Compare October 18, 2026 17:02
the lambda capturing bucket_id by value is a temporary inside a
co_await expression.
gcc 12 promotes such temporaries into the coroutine frame,
and leaves a bitwise copy of the closure behind instead of moving it,
so the captured string is freed twice: once by
the unique_function built from it, and once by the leftover copy.

introduced by: 6a7a9e4

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: Claude Fable 5.1
@yuvalif
yuvalif self-requested a review October 19, 2026 12:57
@yuvalif

yuvalif commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

/config check ok

@yuvalif

yuvalif commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-vector-bucket branch from 4918b77 to a0def10 Compare October 20, 2026 01:53
(update to 2922d44)

* exclude from dedup
* exclude from bilog trim
* exclude from stale objects
* make sure that metadata admin commands are separated

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: Claude Fable 5.1
Assisted-by: claude-code:claude-fable-5-1
@yuvalif
yuvalif force-pushed the wip-skoduri-vector-bucket branch from a0def10 to f1ff473 Compare October 20, 2026 17:56
@yuvalif

yuvalif commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

@soumyakoduri squashed the teuthology fixes into the last commit and force-pushed

@yuvalif

yuvalif commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@yuvalif

yuvalif commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@yuvalif
yuvalif merged commit 679a89f into ceph:main Oct 21, 2026
16 checks passed
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.

3 participants