Hi,

I followed inst mentioned in ceph radosgw setup.

I used swift python script to access it. I'm getting error like,

Traceback (most recent call last):
  File "a.py", line 8, in <module>
    authurl='http://192.168.211.70/auth',
  File "/usr/lib/python2.6/site-packages/cloudfiles/__init__.py", line 98,
in get_connection
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/cloudfiles/connection.py", line
86, in __init__
    self._authenticate()
  File "/usr/lib/python2.6/site-packages/cloudfiles/connection.py", line
92, in _authenticate
    (url, self.cdn_url, self.token) = self.auth.authenticate()
  File "/usr/lib/python2.6/site-packages/cloudfiles/authentication.py",
line 68, in authenticate
    response = conn.getresponse()
  File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse
    response.begin()
  File "/usr/lib64/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib64/python2.6/socket.py", line 433, in readline
    data = recv(1)
socket.timeout: timed out



python script:
#----------------------------
import cloudfiles
username = 'userceph1:swift'
api_key = 'VJpKiW4XVjC534czbbgexOS6\/TEpso6p306ML9KZ'

conn = cloudfiles.get_connection(
        username=username,
        api_key=api_key,
        authurl='http://192.168.211.70/auth',
)

container = conn.create_container('my-new-container')

obj = container.create_object('hello.txt')
obj.content_type = 'text/plain'
obj.load_from_filename('./my_hello.txt')

for container in conn.get_all_containers():
        print container.name

#----------------------------------------------


apache error log show,

 [error] [client 192.168.211.70] FastCGI: comm with (dynamic) server
"/var/www/s3gw.fcgi" aborted: (first read) idle timeout (20 sec)
 [error] [client 192.168.211.70] FastCGI: incomplete headers (0 bytes)
received from server "/var/www/s3gw.fcgi"

How do i proceed trouble shooting it. I have a running ceph.
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to