longhorn: Can't connect to Scaleway Object Storage (S3) for backups

Hi there,

I’m trying to use Scaleway Object Storage as my S3 backup, but I keep getting some strange errors. I’ve Followed the documentations about Minio and the result is this:

I’ve created a secret called scaleway-secret, like this:

apiVersion: v1
kind: Secret
metadata:
  name: scaleway-secret
  namespace: longhorn-system
type: Opaque
data:
  AWS_ACCESS_KEY_ID: xxxx
  AWS_SECRET_ACCESS_KEY: xxxx
  AWS_ENDPOINTS: aHR0cHM6Ly9zMy5ubC1hbXMuc2N3LmNsb3Vk
  AWS_REGION: bmwtYW1z

which basically is the base64 to my configurations:

AWS_ACCESS_KEY_ID: xxxxx
AWS_SECRET_ACCESS_KEY: xxxxx
AWS_REGION: nl-ams
AWS_ENDPOINTS: https://s3.nl-ams.scw.cloud

the keys were altered to preserve security

and with this secret created, I gave longhorn the following configs: captura de tela 2019-03-06 as 15 32 46

But when I click on the Backup menu it returns me this error:

error listing backups: error listing backup volumes: Failed to execute: /var/lib/rancher/longhorn/engine-binaries/rancher-longhorn-engine-v0.4.0/longhorn [backup ls --volume-only s3://bucket-name@nl-ams/], output time="2019-03-06T18:53:59Z" level=error msg="{\n\n}" pkg=s3 time="2019-03-06T18:53:59Z" level=error msg="Fail to list s3: AWS Error: InvalidURI Couldn't parse the specified URI. <nil>\n400 \n" pkg=s3 time="2019-03-06T18:53:59Z" level=error msg="AWS Error: InvalidURI Couldn't parse the specified URI. <nil>\n400 \n" AWS Error: InvalidURI Couldn't parse the specified URI. <nil> 400 , error exit status 1

captura de tela 2019-03-06 as 15 56 46

All configurations seems to be in order, I’ve even tried to take https off from the AWS_ENDPOINTS, but still got the same error. Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

👋 I’ve just tested a basic installation of longhorn to test the S3 integration, it works.

apiVersion: v1
kind: Secret
metadata:
  name: scw-secret
  namespace: longhorn-system
type: Opaque
data:
  AWS_ACCESS_KEY_ID: XXX
  AWS_SECRET_ACCESS_KEY: XXX
  AWS_ENDPOINTS: aHR0cHM6Ly9zMy5mci1wYXIuc2N3LmNsb3Vk
  AWS_REGION: ZnItcGFy
aws s3 --profile par ls --recursive s3://zobity
2019-12-18 11:17:27        264 backupstore/volumes/10/e0/toto/backups/backup_backup-a0b7093f6e1c42b4.cfg
2019-12-18 11:17:27        171 backupstore/volumes/10/e0/toto/volume.cfg
backup target : s3://zobity@fr-par/
credential secret : scw-secret

I did this on the Paris region, but it should be the same for nl-ams. The bucket has to be created in Scaleway’s S3. Are you sure the bucket named bucket-name belongs to you ?