<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am integrating ceph firefly radosgw with openstack juno keystone, the operating system used on the ceph <br>nodes and on the openstack node is Ubuntu 14.04.<br><br></div>I am able to create containers and upload files using the swift client to ceph. <br></div><br>But when I try to download files, I am getting the following error,<br><br>ppmuser@ppm-dc-c3sv3-ju:~$ swift --verbose --debug -V 1 -A <a href="http://10.x.x.126/auth">http://10.x.x.126/auth</a> -U swift:swift -K <Key_here> download demo-container1 file_12345.txt<br><br>INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.x.x.126<br>DEBUG:urllib3.connectionpool:Setting read timeout to None<br>DEBUG:urllib3.connectionpool:"GET /auth HTTP/1.1" 204 0<br>DEBUG:swiftclient:REQ: curl -i <a href="http://10.x.x.126/auth">http://10.x.x.126/auth</a> -X GET<br>DEBUG:swiftclient:RESP STATUS: 204 No Content<br>DEBUG:swiftclient:RESP HEADERS: [('x-auth-token', 'AUTH_rgwtk0b00000073776966743a73776966740484a024256146dc5719915468deb431889a0ff3c6514ac8ae2388abdfbaac6d262c3e3e'), ('x-storage-token', 'AUTH_rgwtk0b00000073776966743a73776966740484a024256146dc5719915468deb431889a0ff3c6514ac8ae2388abdfbaac6d262c3e3e'), ('date', 'Tue, 16 Dec 2014 05:49:11 GMT'), ('x-storage-url', '<a href="http://10.x.x.126/swift/v1'">http://10.x.x.126/swift/v1'</a>), ('server', 'Apache/2.4.7 (Ubuntu)'), ('content-type', 'application/json')]<br>INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.x.x.126<br>DEBUG:urllib3.connectionpool:Setting read timeout to None<br>DEBUG:urllib3.connectionpool:"GET /swift/v1/demo-container1/file_12345.txt HTTP/1.1" 200 14<br>DEBUG:swiftclient:REQ: curl -i <a href="http://10.x.x.126/swift/v1/demo-container1/file_12345.txt">http://10.x.x.126/swift/v1/demo-container1/file_12345.txt</a> -X GET -H "X-Auth-Token: AUTH_rgwtk0b00000073776966743a73776966740484a024256146dc5719915468deb431889a0ff3c6514ac8ae2388abdfbaac6d262c3e3e"<br>DEBUG:swiftclient:RESP STATUS: 200 OK<br>DEBUG:swiftclient:RESP HEADERS: [('content-length', '14'), ('accept-ranges', 'bytes'), ('server', 'Apache/2.4.7 (Ubuntu)'), ('last-modified', 'Mon, 15 Dec 2014 13:35:37 GMT'), ('etag', '94b371af646d4c53d8f3f8ff7be74dbb'), ('date', 'Tue, 16 Dec 2014 05:49:11 GMT'), ('x-object-meta-mtime', '1418650375.550963')]<br><br>Error downloading object 'demo-container1/file_12345.txt': 'Error downloading file_12345.txt: read_length != content_length, 0 != 14'<br><br>ppmuser@ppm-dc-c3sv3-ju:~<br><br><br></div>The apache2 error and access logs on the radosgw ceph node is as follows,<br><br>root@ppm-c240-ceph3:~# tail -f /var/log/apache2/error.log<br><br>[Tue Dec 16 01:10:20.735061 2014] [fastcgi:error] [pid 31426:tid 140231210624768] [client 10.x.x.175:55902] FastCGI: comm with server "/var/www/s3gw.fcgi" aborted: idle timeout (30 sec)<br>[Tue Dec 16 01:10:20.735134 2014] [fastcgi:error] [pid 31426:tid 140231210624768] [client 10.x.x.175:55902] FastCGI: incomplete headers (0 bytes) received from server "/var/www/s3gw.fcgi"<br>[Tue Dec 16 01:10:20.735161 2014] [http:error] [pid 31426:tid 140231210624768] [client 10.x.x.175:55902] not unsetting Content-Length on HEAD response (rgw changes)\n<br>[Tue Dec 16 01:10:20.857215 2014] [:warn] [pid 31426:tid 140231202232064] FastCGI: 10.x.x.175 HEAD <a href="http://ppm-c240-ceph3.cisco.com/swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93">http://ppm-c240-ceph3.cisco.com/swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93</a> auth<br>[Tue Dec 16 01:10:50.887381 2014] [fastcgi:error] [pid 31426:tid 140231202232064] [client 10.x.x.175:55910] FastCGI: comm with server "/var/www/s3gw.fcgi" aborted: idle timeout (30 sec)<br>[Tue Dec 16 01:10:50.887454 2014] [fastcgi:error] [pid 31426:tid 140231202232064] [client 10.x.x.175:55910] FastCGI: incomplete headers (0 bytes) received from server "/var/www/s3gw.fcgi"<br>[Tue Dec 16 01:10:50.887481 2014] [http:error] [pid 31426:tid 140231202232064] [client 10.x.x.175:55910] not unsetting Content-Length on HEAD response (rgw changes)\n<br>[Tue Dec 16 01:10:50.898281 2014] [:warn] [pid 31426:tid 140231193839360] FastCGI: 10.x.x.175 GET <a href="http://ppm-c240-ceph3.cisco.com/swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93">http://ppm-c240-ceph3.cisco.com/swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93</a> auth<br>[Tue Dec 16 01:11:20.928476 2014] [fastcgi:error] [pid 31426:tid 140231193839360] [client 10.x.x.175:55911] FastCGI: comm with server "/var/www/s3gw.fcgi" aborted: idle timeout (30 sec)<br>[Tue Dec 16 01:11:20.928556 2014] [fastcgi:error] [pid 31426:tid 140231193839360] [client 10.x.x.175:55911] FastCGI: incomplete headers (0 bytes) received from server "/var/www/s3gw.fcgi"<br><br>root@ppm-c240-ceph3:~# tail -f /var/log/apache2/access.log<br><br>10.81.83.175 - - [16/Dec/2014:01:00:20 -0500] "HEAD /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93 HTTP/1.1" 500 189 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:00:50 -0500] "GET /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93?format=json HTTP/1.1" 500 719 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:08:22 -0500] "GET /auth HTTP/1.1" 204 431 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:08:22 -0500] "GET /swift/v1/demo-container1?format=json HTTP/1.1" 200 411 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:08:22 -0500] "GET /swift/v1/demo-container1?format=json&marker=file_12345.txt HTTP/1.1" 200 174 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:08:50 -0500] "HEAD /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93 HTTP/1.1" 500 189 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:09:20 -0500] "GET /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93?format=json HTTP/1.1" 500 719 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:09:50 -0500] "HEAD /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93 HTTP/1.1" 500 189 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:10:20 -0500] "HEAD /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93 HTTP/1.1" 500 189 "-" "python-swiftclient-2.3.0"<br>10.81.83.175 - - [16/Dec/2014:01:10:50 -0500] "GET /swift/v1/AUTH_25bb0caaff834efdafa1c1fcbb6aaf93?format=json HTTP/1.1" 500 719 "-" "python-swiftclient-2.3.0"<br><br><br><div>The radosgw logs is as follows,<br><br>root@ppm-c240-ceph3:/var/log/radosgw# tail -f ceph-client.admin<br><br>2014-12-09 11:39:19.862854 7fdbfa1257c0 0 librados: client.admin initialization error (2) No such file or directory<br>2014-12-09 11:39:19.863429 7fdbfa1257c0 -1 Couldn't init storage provider (RADOS)<br>2014-12-09 11:41:25.894934 7ffa8fe087c0 0 ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3), process radosgw, pid 5843<br>2014-12-09 11:41:25.922673 7ffa8fe087c0 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication<br>2014-12-09 11:41:25.922807 7ffa8fe087c0 0 librados: client.admin initialization error (2) No such file or directory<br>2014-12-09 11:41:25.924901 7ffa8fe087c0 -1 Couldn't init storage provider (RADOS)<br>2014-12-09 11:42:12.110334 7f145f77d7c0 0 ceph version 0.80.7 (6c0127fcb58008793d3c8b62d925bc91963672a3), process radosgw, pid 5862<br>2014-12-09 11:42:12.139115 7f145f77d7c0 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication<br>2014-12-09 11:42:12.139215 7f145f77d7c0 0 librados: client.admin initialization error (2) No such file or directory<br>2014-12-09 11:42:12.141559 7f145f77d7c0 -1 Couldn't init storage provider (RADOS)<br><br><br></div><div>Any pointers as to what could be the cause of the error in downloading files from the ceph cluster using the openstack juno swift client would be highly appreciated.<br></div><div><div><div><div><div><br><br clear="all"></div><div>Regards,<br></div><div>--- <br><div class="gmail_signature">Vivek Varghese Cherian <br></div>
</div></div></div></div></div></div>