ceph-rgw s3 error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello experts,

I am trying to access object gateway through python s3 API, but
getting the follwoing error.

  File "s3test.py", line 14, in <module>
    bucket = conn.create_bucket('my-bucket-1')
  File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line
590, in create_bucket
    response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 416 Requested Range
Not Satisfiable
<?xml version="1.0"
encoding="UTF-8"?><Error><Code>InvalidRange</Code><BucketName>my-bucket-east-1</BucketName><RequestId>tx000000000000000000004-005aa2dd0c-1018-default</RequestId><HostId>1018-default-default</HostId></Error>


Python code:
import boto
import boto.s3.connection

access_key = '2BWU97MPG67CZSM7U25E'
secret_key = '8blaORQ1bTe3PIP2XDB7CTpSxemGaoQLDi2J96MB'

conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
host = 'x.x.x.x',port = 7480,
is_secure=False,
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)
bucket = conn.create_bucket('my-bucket-1')
for bucket in conn.get_all_buckets():
        print "{name}\t{created}".format(
                name = bucket.name,
                created = bucket.creation_date,
)

Could you please help me if I am missing anything.

Ceph version: 12.2.4
Python-boto version:  2.27.0-1.el7

Thanks,
Russell
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux