Project

General

Profile

Actions

Documentation #18889

closed

rgw: S3 create bucket should not do response in json

Added by okwap okwap about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Tags:
Backport:
jewel,kraken
Reviewed:
Affected Versions:
Pull request ID:

Description

rgw s3 cannot work with boto3, due to create bucket returns json instead of xml.

boto3 error:

botocore.parsers.ResponseParserError: Unable to parse response (not well-formed (invalid token): line 1, column 0), invalid XML received:
{"entry_point_object_ver":{"tag":"__3hTtMdsXlx-OJ9e_3RrkQC","ver":1},"object_ver":{"tag":"_jhpZpHMzyUsIvMSTqDws4T_","ver":1},"bucket_info":{"bucket":{"name":"python-sdk-sample-4b46707c-6408-4de8-b8a5-d3d8816ee5df","pool":".rgw.buckets","data_extra_pool":"","index_pool":".rgw.buckets","marker":"dev.6607669.7","bucket_id":"dev.6607669.7"},"creation_time":1486954351,"owner":"johndoe","flags":0,"region":"default","placement_rule":"","has_instance_obj":"true","quota":{"enabled":false,"max_size_kb":-1,"max_objects":-1},"num_shards":0,"bi_shard_hash_type":0}}
petertc@petertc-VirtualBox:~/aws-python-sample$ echo $no_proxy

packets:

T 10.0.2.15:43350 -> 10.144.225.175:8080 [AP]
PUT /my-new-bucket/ HTTP/1.1..Host: 10.144.225.175:8080..Accept-Encoding: identity..Date: Mon, 13 Feb 2017 03:15:09 GMT..Content-Length: 0..Authorization: AWS XS3SDAYG61ODT9K4Y6QL:QjC3I5C0s5SAs1J4Qv5
bziF+c3c=..User-Agent: Boto/2.45.0 Python/2.7.12 Linux/4.4.0-31-generic.... #
T 10.144.225.175:8080 -> 10.0.2.15:43350 [A]
...... #
T 10.144.225.175:8080 -> 10.0.2.15:43350 [AP]
HTTP/1.1 200 OK..x-amz-request-id: tx000000000000000001657-0058a124ac-64d335-dev..Content-Length: 517..Date: Mon, 13 Feb 2017 03:14:52 GMT.... ##
T 10.144.225.175:8080 -> 10.0.2.15:43350 [AP] {"entry_point_object_ver":{"tag":"_1JjHz-Vq_JVjwLagDyKLVaP","ver":1},"object_ver":{"tag":"_r-VMOTmvdDtPzT84aLzcN1A","ver":1},"bucket_info":{"bucket":{"name":"my-new-bucket","pool":".rgw.buckets","dat
a_extra_pool":"","index_pool":".rgw.buckets","marker":"dev.6607669.3","bucket_id":"dev.6607669.3"},"creation_time":1486715428,"owner":"johndoe","flags":0,"region":"default","placement_rule":"","has_i
nstance_obj":"true","quota":{"enabled":false,"max_size_kb":-1,"max_objects":-1},"num_shards":0,"bi_shard_hash_type":0}}


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #19171: jewel: rgw: S3 create bucket should not do response in jsonResolvedNathan CutlerActions
Copied to rgw - Backport #19172: kraken: rgw: S3 create bucket should not do response in jsonResolvedNathan CutlerActions
Actions

Also available in: Atom PDF