Commit Graph
85 Commits
Author SHA1 Message Date
Pascal Bleser 7676730860 feat: 1419: configure the revision cleanup of the storage-users drivers
Wire reva's revision cleanup options into the 'decomposed', 'decomposeds3'
and 'posix' drivers, in the storage provider and in the data provider.

The options are a single 'revisions_cleanup' section of the storage-users
configuration, next to 'filemetadata_cache' and 'id_cache', as only one
driver is used at a time. Its environment variables:

- STORAGE_USERS_REVISIONS_CLEANUP_STRATEGY: which old revisions to
  delete whenever a file gets a new revision, e.g. 'auto', '30d' or
  '7d, auto, 90d'
- STORAGE_USERS_REVISIONS_CLEANUP_ASYNC: run the cleanup in background
  workers
- STORAGE_USERS_REVISIONS_CLEANUP_ASYNC_WORKERS: number of background
  workers
- STORAGE_USERS_REVISIONS_CLEANUP_ASYNC_QUEUE_SIZE: number of files that
  can wait
- STORAGE_USERS_REVISIONS_CLEANUP_ASYNC_QUEUE_FULL: 'drop' or 'block'
- STORAGE_USERS_REVISIONS_CLEANUP_ASYNC_QUEUE_FULL_TIMEOUT: how long
  'block' waits for room at most, 0 for as long as it takes

The strategy defaults to 'disabled', which keeps all revisions as before.
The other defaults are reva's: background workers, with the number of
workers and the queue size determined automatically, dropping the
cleanup of a file when the queue is full (it is cleaned up with its
next revision), and a timeout of 5s for 'block'.

Other commands that create a driver, 'posixfs scan' and 'uploads
sessions', clean up revisions without background workers: they could
exit before the workers are done, and stop the cleanup of a file
midway.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 23:59:43 +01:00
Jörn Friedrich Dreyer 3281a35ae6 storage-users: pass the mount id to the posix driver
The upload coordinator reads the mount id from the driver config to drop
postprocessing results that belong to another storage. The dataprovider
does not add it to the driver config the way the storageprovider does,
so without it the coordinator accepts every result for posix.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-11-12 11:11:30 +01:00
Alexander Salimonov 0281ccb811 fix: pass mount id to the decomposeds3 storage driver
Postprocessing results are dropped when their storage id does not match
the driver's mount id. Only the decomposed driver was given a mount_id,
so under decomposeds3 there was nothing to compare against.

Also pass it in DecomposedNoEvents and DecomposedS3NoEvents.
2026-11-12 11:11:30 +01:00
Roman Perekhod d71110f01d feat: pass the mount id to the decomposed driver and the resource id on PostprocessingFinished
The storage drops postprocessing events that belong to another storage,
which needs its mount id and the resource id on the event.
2026-11-12 11:11:30 +01:00
LarsJurgensenandFiras Frikha f36ab73c1f chore: add upload_directory and mount_id to revaconfig
Co-authored-by: Firas Frikha <firas.frikha@kiteworks.com>
2026-11-12 11:11:30 +01:00
Ralf Haferkamp 606fe4ee1b fix(storage): map legacy drivers to supported backends
Related: #3819
2026-10-29 16:59:11 +01:00
Florian Schade d4ccf0568a refactor: set the metadata prefix process wide 2026-10-09 14:48:58 +02:00
Florian Schade a7811dc102 feat: run the decomposed drivers on foreign metadata via metadata_prefix
# Conflicts:
#	go.sum
#	vendor/github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/decomposedfs.go
#	vendor/github.com/opencloud-eu/reva/v2/pkg/storage/pkg/decomposedfs/options/options.go
#	vendor/modules.txt
2026-10-09 14:44:42 +02:00
Jörn Friedrich Dreyer 72c0ee9e54 do not set datagateway url for storage drivers
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-08-21 07:34:46 +02:00
Jörn Friedrich Dreyer fff84b844f drop STORAGE_USERS_EXPOSE_DATA_SERVER env var
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-08-21 07:34:46 +02:00
Jörn Friedrich Dreyer 77fd4fca69 add tls support for all nats connections
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-06-10 17:04:18 +02:00
André Duffeck e246d6d613 Make the ScanFS option configurable via env var 2026-05-07 08:29:48 +02:00
Florian Schade 288e67cc39 chore: replace interface with any 2026-04-23 09:31:11 +02:00
André Duffeck e2f6a68810 Do not ever set a TTL for the ID cache. It's not supposed to expire. 2026-01-28 12:52:24 +01:00
André Duffeck 80601fc0dc Do not try to enable multi tenancy for the system storage 2026-01-20 15:49:13 +01:00
Ralf Haferkamp 7b5c59e827 feat(reva): Pass the multi-tenancy flag to reva services
This allows to pass the multi-tenant enablement flag as a shared config
option to the reva service. This needs to be done for all reva services
since it ends up in a global variable in reva that is only initialized
once, by the service that is the first to parse its config.
See https://github.com/opencloud-eu/opencloud/issues/1563 for details.
2025-10-06 11:21:57 +02:00
Juan Pablo Villafáñez c0b4a5daa0 chore: change constant name to camelcase 2025-09-08 17:32:36 +02:00
Juan Pablo Villafáñez 925444a0b3 feat: change the names of the connections to the registry 2025-09-08 17:32:35 +02:00
Ralf Haferkamp 88dd36b636 Drop the unsupported and unused S3 driver
It was dropped from reva in https://github.com/opencloud-eu/reva/pull/309
because of unmaintained dependencies. Remember: We have the decomposeds3
driver.
2025-08-21 11:15:35 +02:00
André Duffeck 8c9e05d1f0 Expose more config vars for the posix fs watchers 2025-04-16 11:08:03 +02:00
André Duffeck 91fd396c86 Add env var to make the inotify stats frequency configurable 2025-04-15 09:24:55 +02:00
André Duffeck 054c87b3fd Enable scan/watch in the storageprovider only 2025-04-01 14:46:20 +02:00
André Duffeck 255f45034a Add more missing options to posix fs 2025-03-19 12:23:28 +01:00
André Duffeck 57836949d8 Add missing config bits to the posix driver 2025-03-19 12:23:28 +01:00
André Duffeck 38c521e54a Support OC_SPACES_MAX_QUOTA with the posix driver 2025-03-19 12:21:58 +01:00
Jörn Friedrich Dreyer 74b6078158 bump reva, change decomposeds3 drivername
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-02-20 11:07:31 +01:00
André Duffeck d42034202d Add option to disable the posix fs watcher 2025-02-13 13:11:49 +01:00
André Duffeck 5b85029813 Add EnableFSRevisions config option 2025-02-13 10:07:17 +01:00
André Duffeck 57fa8eb43c Switch from ocis/s3ng to decomposed/decomposed_s3 storage drivers
ocis/s3ng are still supported for backwards compatibility reasons, but
they need to be configured using the decomposed/decomposed_s3 options.
2025-01-24 11:04:23 +01:00
André Duffeck 2b9e193584 Rebrand storage-users 2025-01-17 11:44:18 +01:00
Jörn Friedrich Dreyer 318ca21645 metrics, log and supervisor
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-14 16:09:54 +01:00
Jörn Friedrich Dreyer 8e028f17e9 change module name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 09:58:18 +01:00
jkoberg c80254c4f1 feat(ocis): remove ocm store
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-10-15 17:24:51 +02:00
jkoberg 4a911ac047 feat(storage-users): remove metadata backend envvar
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-09-19 12:29:41 +02:00
André Duffeck d199e79c71 Set a default debounce delay 2024-09-17 10:33:32 +02:00
Jörn Friedrich Dreyer 99c6b6648e no need to introduce dedicated roles
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-13 16:10:19 +02:00
André Duffeck f5de0a09cf Enable caching for the xattrs backend 2024-07-12 08:39:30 +02:00
Andre Duffeck b8e7160880 Merge pull request #9460 from aduffeck/posixfs-events
Fix posixfs events
2024-07-08 08:35:05 +02:00
jkoberg dcac0cf201 feat(storage-provider): add option to disable versioning
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-06-27 15:48:03 +02:00
André Duffeck 0028013794 Enable async uploads for posixfs 2024-06-25 08:40:50 +02:00
André Duffeck b51cae14ba Onle enable fs-watching for the storageprovider, not the dataprovider
We need to make sure that the storageprovider tree is used for watching
the fs and not the dataprovider, because the dataprovider doesn't have a
mount_id set which is needed to emit proper events.
2024-06-25 08:40:50 +02:00
André Duffeck 5781723432 Add missing events config 2024-06-25 08:40:50 +02:00
André Duffeck 126b083eaf Add config var for using the space groups 2024-05-29 12:14:54 +02:00
André Duffeck 8cd39754c7 Add config vars for space path templates 2024-05-29 12:14:54 +02:00
André Duffeck 4517c5ee19 Make the list of gpfs watchfolder kafka brokers configurable 2024-05-29 12:14:54 +02:00
André Duffeck 2cf823157f Expose the idcache configuration 2024-05-29 12:14:54 +02:00
André Duffeck 69c84e0ee6 Expose the fs watcher configuration 2024-05-29 12:14:53 +02:00
André Duffeck 96645322e7 Configure project spaces layout 2024-05-29 12:14:53 +02:00
André Duffeck b231457231 Enable treetime and treesize accounting 2024-05-29 12:14:53 +02:00
André Duffeck aab219a38f Initial support for the posixfs 2024-05-29 12:14:53 +02:00