Thanks Shain/ceph-users - this seems to have worked and I now have a running 
gateway:



# ps -ef | grep rados

apache    3056     1  0 03:56 ?        00:00:10 /usr/bin/radosgw -n 
client.radosgw.gateway



Unfortunately still unable to connect to the gateway though:



# swift -V 1.0 -A http://10.40.99.165/auth -U gwuser1:swift -K 
"kVcKPg1QFu73emgrP7w6JrFs3tvZ4+gLISW+703K" post chtest

Auth GET failed: http://10.40.99.165:80/auth/ 403 Forbidden



The http server logs don't really help much either (IP removed):

...

...

xx.xxx.xxx.xxx - - [09/Jul/2013:06:44:33 -0400] "GET /auth/ HTTP/1.1" 403 207 
"-" "-"



The rados gateway logs don't seem to have anything regarding this connection. 
httpd.conf as follows:



...

...

<VirtualHost *:80>

    ServerAdmin chris.howa...@citi.com

    DocumentRoot /var/www

    ServerName e8c3-dl360g7-09.nam.nsroot.net

#    ErrorLog logs/dummy-host.example.com-error_log

#    CustomLog logs/dummy-host.example.com-access_log common

    RewriteEngine On

    RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*) 
/s3gw.fcgi?page=$1&params=$2&%{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>

FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock

    </IfModule>

    AllowEncodedSlashes On

    ErrorLog /var/log/httpd/error.log

    CustomLog /var/log/httpd/access.log combined

    ServerSignature Off



</VirtualHost>



# cat /var/www/s3gw.fcgi

#!/bin/sh

exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway



Many thanks for all your assistance thus far.



Chris



-----Original Message-----
From: Shain Miley [mailto:smi...@npr.org]
Sent: 08 July 2013 21:36
To: Howarth, Chris [CCC-OT_IT]
Cc: Gregory Farnum; ceph-us...@ceph.com
Subject: RE: [ceph-users] Getting started with RADOS Gateway



It is that command...however if you are following the docs (like I did)...then 
you will see that your key is NOT '/etc/ceph/ceph.keyring' it is 
'/etc/ceph/ceph.client.admin.keyring'.  So try:





sudo ceph -k /etc/ceph/ceph.client.admin.keyring  auth add 
client.radosgw.gateway -i /etc/ceph/keyring.radosgw.gateway





The documentation should be updated.



Shain





Shain Miley | Manager of Systems and Infrastructure, Digital Media | 
smi...@npr.org<mailto:smi...@npr.org> | 202.513.3649




_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to