Project

General

Profile

Actions

Bug #40466

open

s3 returns incorrect region/placement

Added by Torben Hørup almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Using 12.2.8

Have created different pools and placement rules targeting the pools according to http://docs.ceph.com/docs/luminous/radosgw/placement/
One of my placement rules is called "dev"

$ s3cmd mb --region=:dev s3://regiontest
Bucket 's3://regiontest/' created

verify that it is utilizing the right placement rule:
  1. radosgw-admin bucket stats | jq -r '.[] | [ .owner, .bucket, .placement_rule, .usage["rgw.main"].size_kb ] | @csv' | grep regiontest
    "r01365","regiontest","dev",
s3cmd info returns us-east-1:
  1. s3cmd info s3://regiontest
    s3://regiontest/ (bucket):
    Location: us-east-1
    Payer: BucketOwner
    Expiration Rule: none
    Policy: none
    CORS: none
    ACL: r01365: FULL_CONTROL

using s3cmd in debug mode gives me this snippet
DEBUG: format_uri(): /?location
DEBUG: Sending request method_string='GET', uri=u'/?location', <headers removed>, body=(0 bytes)

DEBUG: Response: {'data': '<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;&gt;&lt;/LocationConstraint&gt;',
'headers': {'content-length': '127',
'date': 'Thu, 20 Jun 2019 13:48:50 GMT',
'x-amz-request-id': 'tx00000000000000000321a-005d0b8ec2-18755-default'},
'reason': 'OK',
'status': 200}

No data to display

Actions

Also available in: Atom PDF