From 6c36615efeebff07f121c9b4d541189f7c312c2e Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 10 Feb 2025 19:37:00 +0000 Subject: [PATCH] s3: add Exaba provider --- backend/s3/s3.go | 5 +++++ fstest/testserver/init.d/PORTS.md | 2 ++ fstest/testserver/init.d/TestS3Exaba | 30 ++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100755 fstest/testserver/init.d/TestS3Exaba diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 43c7c4c6e..099cdd17b 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -101,6 +101,9 @@ var providerOption = fs.Option{ }, { Value: "Dreamhost", Help: "Dreamhost DreamObjects", + }, { + Value: "Exaba", + Help: "Exaba Object Storage", }, { Value: "FlashBlade", Help: "Pure Storage FlashBlade Object Storage", @@ -3598,6 +3601,8 @@ func setQuirks(opt *Options) { urlEncodeListings = false virtualHostStyle = false useAlreadyExists = false // untested + case "Exaba": + virtualHostStyle = false case "GCS": // Google break request Signature by mutating accept-encoding HTTP header // https://github.com/rclone/rclone/issues/6670 diff --git a/fstest/testserver/init.d/PORTS.md b/fstest/testserver/init.d/PORTS.md index f599f6fd6..c4962361f 100644 --- a/fstest/testserver/init.d/PORTS.md +++ b/fstest/testserver/init.d/PORTS.md @@ -28,6 +28,8 @@ They should be bound to localhost so they are not accessible externally. | 28632 | TestSwiftAIOsegments | | 28633 | TestSMBKerberos | | 28634 | TestSMBKerberos | +| 28635 | TestS3Exaba | +| 28636 | TestS3Exaba | | 38081 | TestWebdavOwncloud | ## Non localhost tests diff --git a/fstest/testserver/init.d/TestS3Exaba b/fstest/testserver/init.d/TestS3Exaba new file mode 100755 index 000000000..c9a7f92be --- /dev/null +++ b/fstest/testserver/init.d/TestS3Exaba @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -e + +NAME=exaba +USER="Use the webui to find the access_key_id" +PASS="Use the webui to find the secret_access_key" +PORT=28635 +WEBUIPORT=28636 + +. $(dirname "$0")/docker.bash + +start() { + docker run --rm -d --name $NAME \ + -e "CLUSTER_NAME=rclone" \ + -e "CLUSTER_SIZE_GB=20" \ + -p 127.0.0.1:${PORT}:9000 \ + -p 127.0.0.1:${WEBUIPORT}:9006 \ + exaba/exaba + + echo type=s3 + echo provider=Exaba + echo access_key_id=$USER + echo secret_access_key=$PASS + echo endpoint=http://127.0.0.1:${PORT}/ + echo webui=http://127.0.0.1:${WEBUIPORT}/ + echo _connect=127.0.0.1:${PORT} +} + +. $(dirname "$0")/run.bash