Project

General

Profile

Actions

Bug #73626

closed
SK SK

rgw/cloud-transition: Transitioning data to AWS non-default region is failing

Bug #73626: rgw/cloud-transition: Transitioning data to AWS non-default region is failing

Added by Soumya Koduri about 1 year ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, squid, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-4079-g7941054bf4
Released In:
v21.2.0~1720
Upkeep Timestamp:
2026-11-04T01:07:30+00:00

Description

Description of problem:

Transitioning the ceph data to Amazon s3 is failing. CLOUDTIER is configured to transit the RGW objects to AWS s3 cloud, we verified the region, end_points, access& secret key. But still we see the following errors for corresponding configs.

Bucket exists on aws s3 ==============================================================
Config:
"endpoint": "http://s3.amazonaws.com",
"access_key": "xxx",
"secret": "xxx",
"region": "eu-west-1",
"host_style": "path",
"target_storage_class": "",
"target_path": "axdeseccs",
Error:

2025-10-03T10:01:13.433+0000 7fd6ac58b640 0 lifecycle: ERROR: Creating target bucket failed with error: AuthorizationHeaderMalformed

==============================================================
Config:
"endpoint": "http://axdeseccs.s3.amazonaws.com",
"access_key": "xxx",
"secret": "xxx",
"region": "eu-west-1",
"host_style": "path",
"target_storage_class": "",
"target_path": "axdeseccs",
Error:

2025-10-03T10:03:44.979+0000 7f5c1c2f7640 0 lifecycle: ERROR: Creating target bucket failed with error: AccessDenied

==============================================================
Config:
"endpoint": "http://s3.eu-west-1.amazonaws.com",
"access_key": "xxx",
"secret": "xxx",
"region": "eu-west-1",
"host_style": "path",
"target_storage_class": "",
"target_path": "axdeseccs",
Error:

2025-10-03T10:07:37.834+0000 7fbe6b3d7640 0 lifecycle: ERROR: Creating target bucket failed with error: IllegalLocationConstraintException

It works when using virtual hosting URL though -

eg.,
"tier_targets": [ {
"key": "CLOUDTIER",
"val": {
"tier_type": "cloud-s3",
"storage_class": "CLOUDTIER",
"retain_head_object": true,
"s3": {
"endpoint": "http://josgutie-rgw-transition-test-02.s3-eu-west-1.amazonaws.com",
"access_key": "XXXX",
"secret": "XXXXXX",
"region": "eu-west-1",
"host_style": "path",
"target_storage_class": "",
"target_path": "josgutie-rgw-transition-test-02",
"acl_mappings": [],
"multipart_sync_threshold": 44432,
"multipart_min_part_size": 44432
},
"allow_read_through": false,
"read_through_restore_days": 1,
"restore_storage_class": "STANDARD"
}


Related issues 3 (2 open — 1 closed)

Copied to rgw - Backport #73783: reef: rgw/cloud-transition: Transitioning data to AWS non-default region is failingRejectedSoumya Koduri

Actions
Copied to rgw - Backport #73784: tentacle: rgw/cloud-transition: Transitioning data to AWS non-default region is failingFix Under ReviewSoumya Koduri

Actions
Copied to rgw - Backport #73785: squid: rgw/cloud-transition: Transitioning data to AWS non-default region is failingNewSoumya Koduri

Actions

SK Updated by Soumya Koduri about 1 year ago Actions #1

AWS expects `LocationConstraint` to be passed as an additional parameter while creating bucket to non-default region which is missing currently in the code,

From https://docs.aws.amazon.com/cli/latest/reference/s3api/create-bucket.html,

"Regions outside of us-east-1 require the appropriate LocationConstraint to be specified in order to create the bucket in the desired region."

SK Updated by Soumya Koduri about 1 year ago Actions #2

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 66038

UB Updated by Upkeep Bot about 1 year ago Actions #3

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 7941054bf47aa82da47319e1966152218058b291
  • Fixed In set to v20.3.0-4079-g7941054bf4
  • Upkeep Timestamp set to 2025-11-11T08:31:42+00:00

SK Updated by Soumya Koduri about 1 year ago Actions #4

  • Status changed from Resolved to Pending Backport
  • Backport set to tentacle, squid, reef

UB Updated by Upkeep Bot about 1 year ago Actions #5

  • Copied to Backport #73783: reef: rgw/cloud-transition: Transitioning data to AWS non-default region is failing added

UB Updated by Upkeep Bot about 1 year ago Actions #6

  • Copied to Backport #73784: tentacle: rgw/cloud-transition: Transitioning data to AWS non-default region is failing added

UB Updated by Upkeep Bot about 1 year ago Actions #7

  • Copied to Backport #73785: squid: rgw/cloud-transition: Transitioning data to AWS non-default region is failing added

UB Updated by Upkeep Bot about 1 year ago Actions #8

  • Tags (freeform) set to backport_processed

SK Updated by Soumya Koduri 7 months ago Actions #9

  • Tags set to cloud-transition, cloud-restore

UB Updated by Upkeep Bot 3 months ago Actions #10

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-11T08:31:42+00:00 to 2026-08-27T18:23:03+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #11

  • Released In set to v21.2.0~1719
  • Upkeep Timestamp changed from 2026-08-27T18:23:03+00:00 to 2026-10-24T01:12:58+00:00

UB Updated by Upkeep Bot 29 days ago Actions #12

  • Released In changed from v21.2.0~1719 to v21.2.0~1720
  • Upkeep Timestamp changed from 2026-10-24T01:12:58+00:00 to 2026-11-04T01:07:30+00:00
Actions

Also available in: PDF Atom