[PBS 4.0.12] Issue with Bucket Selection Dropdown When Creating S3-Endpoint-Datastore

Oct 24, 2023
8
1
3
www.classact.co.jp
Hello.

In PBS 4.0.12, when attempting to register an S3 Datastore from Add: Datastore, the Bucket dropdown does not display correctly.
This issue occurs when the S3 Endpoint is specified in the syntax {{bucket}}.s3.{{region}}.amazonaws.com.

1754824595505.png

It can be set correctly from the CLI.

Code:
root@pbs1:~# proxmox-backup-manager versions
proxmox-backup-server 4.0.12-1 running version: 4.0.12
root@pbs1:~#
root@pbs1:~# proxmox-backup-manager s3 endpoint list
lqqqqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqwqqqqqqqqqqqqqqqqwqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqqqqqqqwqqqqqqqqqqqqk
x id          x endpoint                               x port x region         x access-key           x fingerprint x path-style x
tqqqqqqqqqqqqqnqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqnqqqqqqnqqqqqqqqqqqqqqqqnqqqqqqqqqqqqqqqqqqqqqqnqqqqqqqqqqqqqnqqqqqqqqqqqqu
x s3-endpoint x pbs-bk.s3.ap-northeast-1.amazonaws.com x      x ap-northeast-1 x AKIASHPDKYNE54D4SVGQ x             x            x
mqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqvqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqqqqqqvqqqqqqqqqqqqj
root@pbs1:~#
root@pbs1:~#
root@pbs1:~#
root@pbs1:~# proxmox-backup-manager datastore create my-s3-store /mnt/datastore/my-s3-store-cache --backend type=s3,client=my-s3-endpoint,bucket=pbs-bk
Error: no 'my-s3-endpoint' in config
root@pbs1:~# proxmox-backup-manager datastore create my-s3-store /mnt/datastore/my-s3-store-cache --backend type=s3,client=s3-endpoint,bucket=pbs-bk
Chunkstore create: 1%

(omitted)

Chunkstore create: 99%
Access time update check successful.
TASK OK
root@pbs1:~#

Additionally, when specified in the syntax s3.{{region}}.amazonaws.com, it becomes possible to select from the Add: Datastore - Bucket dropdown, but it fails with a 405 error.

1754824739073.png

1754824756955.png


In PVE 4.0 BETA, you could set the parameters by entering them directly instead of using a pull-down menu, but in 4.0.12 it doesn't seem to work as expected.
 
Hi,
In PBS 4.0.12, when attempting to register an S3 Datastore from Add: Datastore, the Bucket dropdown does not display correctly.
This issue occurs when the S3 Endpoint is specified in the syntax {{bucket}}.s3.{{region}}.amazonaws.com.
Does you access key have the permissions to list buckets? Otherwise this will fail.
I suggest to stick to the template patterns for the aws endpoint configuration, as shown in the docs [0].

In PVE 4.0 BETA, you could set the parameters by entering them directly instead of using a pull-down menu, but in 4.0.12 it doesn't seem to work as expected.
it is still possible to manually edit the bucket name, even if the bucket cannot be listed in the dropdown (this is intended as fallback if your access key has no permissions to list buckets).

[0] https://pbs.proxmox.com/docs/storage.html#s3-datastore-backend-configuration-examples