Skip to content

Instantly share code, notes, and snippets.

@ytjohn
Last active January 25, 2016 21:03
Show Gist options
  • Select an option

  • Save ytjohn/da854151d8d360b927d0 to your computer and use it in GitHub Desktop.

Select an option

Save ytjohn/da854151d8d360b927d0 to your computer and use it in GitHub Desktop.
rain lab
[global]
osd pool default size = 2
fsid = 4ebe7995-6a33-42be-bd4d-20f51d02ae45
mon_initial_members = rain02-r01-01
mon_host = 172.29.4.148
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
[client.radosgw.gateway]
host = rain02-r01-01
keyring = /etc/ceph/ceph.client.radosgw.keyring
rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
log file = /var/log/radosgw/client.radosgw.gateway.log
# http://thread.gmane.org/gmane.comp.file-systems.ceph.user/26070/focus=26072
# http://tracker.ceph.com/issues/12830
rgw content length compat = true
FastCgiExternalServer /var/www/s3gw.fcgi -socket /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
<VirtualHost *:80>
ServerName rain.osaas.lab
ServerAlias *.rain.osaas.lab
ServerAdmin [email protected]
DocumentRoot /var/www
RewriteEngine On
RewriteRule ^/(.*) /s3gw.fcgi?%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
<IfModule mod_fastcgi.c>
<Directory /var/www>
Options +ExecCGI
AllowOverride All
SetHandler fastcgi-script
Order allow,deny
Allow from all
AuthBasicAuthoritative Off
</Directory>
</IfModule>
AllowEncodedSlashes On
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
ServerSignature Off
</VirtualHost>
s3curl: exec curl -v -H 'Date: Mon, 25 Jan 2016 19:34:06 +0000' -H 'Authorization: AWS iphone_lab:i/l3AJ0C5pc/nSUUcwn7943ag10=' -L -H 'content-type: ' -T 1mb.img --header 'Transfer-Encoding: chunked' http://172.29.4.148/chunkedbucket2ip/imb.img
* Trying 172.29.4.148...
* Connected to 172.29.4.148 (172.29.4.148) port 80 (#0)
> PUT /chunkedbucket2ip/imb.img HTTP/1.1
> Host: 172.29.4.148
> User-Agent: curl/7.43.0
> Accept: */*
> Date: Mon, 25 Jan 2016 19:34:06 +0000
> Authorization: AWS iphone_lab:i/l3AJ0C5pc/nSUUcwn7943ag10=
> Transfer-Encoding: chunked
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< HTTP/1.1 411 Length Required
< Date: Mon, 25 Jan 2016 19:34:06 GMT
< Server: Apache/2.4.7 (Ubuntu)
< x-amz-request-id: tx00000000000000001fda9-0056a678ae-10da-default
< Accept-Ranges: bytes
< Content-Length: 156
< Connection: close
< Content-Type: application/xml
<
* Closing connection 0
<?xml version="1.0" encoding="UTF-8"?><Error><Code>MissingContentLength</Code><RequestId>tx00000000000000001fda9-0056a678ae-10da-default</RequestId></Error>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment