From: Aaron <fjw6204@xxxxxxx>
Sent: Jul 23, 2015 6:39 AM
To: dan.mick@xxxxxxxxxxx
Subject: Ceph problem
Sent: Jul 23, 2015 6:39 AM
To: dan.mick@xxxxxxxxxxx
Subject: Ceph problem
hello,
I am a user of ceph, I'm from china
I have two problem on ceph, I need your help
>>> import boto
>>> import boto.s3.connection
>>> access_key = '2EOCDA99UCZQFA1CQRCM'
>>> secret_key = 'avxcywxBPMtiDriwBTOk+cO1zrBikHqoSB0GUtqV'
>>> conn = boto.connect_s3(
... aws_access_key_id = access_key,
... aws_secret_access_key = secret_key,
... host = 'localhost',
... calling_format = boto.s3.connection.OrdinaryCallingFormat(),)
>>> b=conn.list_all_buckets()[0]
>>> list(b.list())
[<Key: my-new-bucket,1/123.txt>, <Key: my-new-bucket,1234.txt>, <Key: my-new-bucket,2.txt>, <Key: my-new-bucket,3.txt>, <Key: my-new-bucket,N01/hello.txt>, <Key: my-new-bucket,aaa>, <Key: my-new-bucket,hello>]
problem 1 : some error show after I run this command
>>> b.get_website_configuration()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 1480, in get_website_configuration
return self.get_website_configuration_with_xml(headers)[0]
File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 1519, in get_website_configuration_with_xml
body = self.get_website_configuration_xml(headers=headers)
File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 1534, in get_website_configuration_xml
response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code></Error>
problem 2 : I need an url start with N07 , but possible Bucket name can't start with upper-case , is there some method let me use a name with N07 ,or can I use name n07 and URL start with N07 ? means URL different with name
>>> conn.create_bucket("N07")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 599, in create_bucket
check_lowercase_bucketname(bucket_name)
File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 59, in check_lowercase_bucketname
raise BotoClientError("Bucket names cannot contain upper-case " \
boto.exception.BotoClientError: BotoClientError: Bucket names cannot contain upper-case characters when using either the sub-domain or virtual hosting calling format.
Thank you very much.
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com