Project

General

Profile

Bug #3294

Ceph S3 API test

Added by lollipop king over 11 years ago. Updated about 11 years ago.

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

0%

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

Description

hello,everyone...
nowadays i try to test Ceph s3 API. I have configure the ceph to run and can use it's POSIX API
and I have configured the apache2 and fastcgi... my ServerName is set to 192.168.0.17
when I type http://192.168.0.17 ,I can get the answer like this

<ListAllMyBucketsResult>
<Owner>
<ID>anonymous</ID>
<DisplayName/>
</Owner>
<Buckets/>
</ListAllMyBucketsResult>

But when I use the python API to create a bucket,it returns

boto.exception.BotoServerError: BotoServerError: 500 Internal Server Error
<Error><Code>UnknownError</Code></Error>

import boto
import boto.s3.connection
access_key = 'QWF4AVZEGZC6DS22ZNWH'
secret_key = 'K1NO+RfkpQnj1fqfHFnGWVNp8e+lGlBpgtd53QKq'

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

what is wrong? Thank you for your time...looking for your answers...

History

#1 Updated by Yehuda Sadeh over 11 years ago

Is there anything on the radosgw/apache logs?

#2 Updated by lollipop king over 11 years ago

Yehuda Sadeh wrote:

Is there anything on the radosgw/apache logs?

Absolutely?there is nothing wrong reported in the radosgw.log and /apache2/error.log

#3 Updated by lollipop king over 11 years ago

I have figured it out that the error is due to lacking lib???when I try to compile the ceph,I forget the "--with-radosgw" after “./configure”???so there is no libcls_rgw.so in my /ceph/lib/rados-classes directory ....after fix it ...now the radosgw work right???

#4 Updated by Yehuda Sadeh over 11 years ago

  • Status changed from New to Rejected

Yep.

#5 Updated by tuan ta ba about 11 years ago

I researched this error many times by results are so bad,
Thank to "lollipop king", you are very good :D

--
Ta Ba Tuan
CLOUD COMPUTING
VCCORP GROUP- VIETNAM

Also available in: Atom PDF