Before this change, uploading to an existing bucket on Ceph (radosgw)
could fail with:
BucketAlreadyExists: 409 Conflict
when rclone attempted to create the destination bucket (which it does
by default unless --s3-no-check-bucket is set).
The Ceph rgw S3 implementation never returns BucketAlreadyOwnedByYou;
it returns BucketAlreadyExists for every CreateBucket on an existing
bucket, even one the caller owns. With the use_already_exists quirk
set to true, rclone wraps BucketAlreadyExists as a non-retriable error
and aborts the transfer.
The Ceph provider used to set useAlreadyExists = true explicitly. When
the s3 providers were converted to YAML files in f28c83c, Ceph did not
set use_already_exists so it picked up the default of true (via
set(&opt.UseAlreadyExists, true, provider.Quirks.UseAlreadyExists)),
which matched the previous behaviour but is the wrong setting for
Ceph.
This sets use_already_exists: false for the Ceph provider so rclone
ignores BucketAlreadyExists on CreateBucket and continues with the
upload.
Side effect: this partially reverts #7871 for the Ceph provider. If a
user tries to create a bucket on Ceph that is actually owned by
someone else, rclone will no longer fail fast at CreateBucket time;
the subsequent object PUT will fail instead. This is unavoidable on
Ceph since the server does not distinguish "already owned by you" from
"owned by someone else".
22 lines
422 B
YAML
22 lines
422 B
YAML
name: Ceph
|
|
description: Ceph Object Storage
|
|
region: {}
|
|
endpoint: {}
|
|
location_constraint: {}
|
|
acl: {}
|
|
server_side_encryption:
|
|
'': None
|
|
AES256: AES256
|
|
aws:kms: aws:kms
|
|
bucket_acl: true
|
|
sse_customer_algorithm: true
|
|
sse_customer_key: true
|
|
sse_customer_key_base64: true
|
|
sse_customer_key_md5: true
|
|
sse_kms_key_id: true
|
|
quirks:
|
|
list_version: 1
|
|
force_path_style: true
|
|
list_url_encode: false
|
|
use_already_exists: false
|